Al: al.codeAnalyzers

Created on 23 Mar 2018  路  10Comments  路  Source: microsoft/AL

I noticed the new settings for code analysis:
image

However, when I enable them, like the screenshot, it doesn't do anything.. . I can't enable it like I used to (enableCodeAnalysis setting), so at this point, no code analysis?

question

Most helpful comment

Remember, there are no stupid questions. And I have a follow-up. What is the detailed difference between the three options:

  • CodeCop is an analyzer that enforces the official AL Coding Guidelines.
  • PerTenantExtensionCop is an analyzer that enforces rules that must be respected by extensions meant to be installed for individual tenants.
  • AppSourceCop is an analyzer that enforces rules that must be respected by extensions meant to be published to Microsoft AppSource.

Is there a list of which ruleset's are in each analyzer?

All 10 comments

Is "al.enableCodeAnalysis" : true ? You need both settings for this to work. enableCodeAnalysis will enable analyzers, al.codeAnalyzers is used for choosing which ones to enable. You should not have all three of them at the same time because that might give you conflicting diagnostics.

Sorry, I didn't see that one ... you are right. It works now!

Is there a (short) explanation for all three?

We have some documentation on them in Using the Code Analysis Tool

I missed that as well ..
Thanks!
I'll stop asking stupid questions now ;-)

Remember, there are no stupid questions. And I have a follow-up. What is the detailed difference between the three options:

  • CodeCop is an analyzer that enforces the official AL Coding Guidelines.
  • PerTenantExtensionCop is an analyzer that enforces rules that must be respected by extensions meant to be installed for individual tenants.
  • AppSourceCop is an analyzer that enforces rules that must be respected by extensions meant to be published to Microsoft AppSource.

Is there a list of which ruleset's are in each analyzer?

I have indeed the same question - in other words - is there a document that lists the rules/guilelines?

We do not have a document listing each rule yet but will provide it in the near future. In the meanwhile I saw that waldo might have a nice blog post to share on this topic:)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RonKoppelaar picture RonKoppelaar  路  3Comments

lvanvugt picture lvanvugt  路  3Comments

ghost picture ghost  路  3Comments

malue19 picture malue19  路  3Comments

kine picture kine  路  3Comments