Al: CodeCop Rule: AA0100 Do not have identifiers with quotes in the name

Created on 8 Apr 2020  路  3Comments  路  Source: microsoft/AL

Describe the bug
We are currently updating our extension to BC16 in the ${CodeCop} declared under code analyzer it is showing multiple warnings. Below is one "AL0100 Do not have identifiers with quotes in the name"

To Reproduce
Steps to reproduce the behavior:

  1. AL Language extension is installed (5.0.254558)
  2. Create a page extension of standard page "Customer Card" (21)
  3. Modify the existing field """Balance (LCY)"" - ABS(""Post Dated Checks (LCY)"")"
  4. A warning saying "Do not have identifiers with quotes in the name" will appear

Screenshots
image

Standard Code BC16
image

Versions:
AL Language 5.0.254558
Business Central : 16.0.11209.0 (Preview)

CodeCop bug in-progress static-code-analysis

Most helpful comment

It should be ok to refer to to something with a quote in.
Warning should only appear on the actual definition.

All 3 comments

Well, even Microsoft is not yet compliant with their own rules :)
If this warning annoys you, you can disable it in a ruleset file until Microsoft fix the control name.

https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-rule-set-syntax-for-code-analysis-tools

It should be ok to refer to to something with a quote in.
Warning should only appear on the actual definition.

fixed in master

Was this page helpful?
0 / 5 - 0 ratings