BusinessCentral.LinterCop icon indicating copy to clipboard operation
BusinessCentral.LinterCop copied to clipboard

Community driven code linter for AL (MS Dynamics 365 Business Central)

Results 108 BusinessCentral.LinterCop issues
Sort by recently updated
recently updated
newest added

Since the LinterCop update yesterday our App Pipeline fails during compilation with: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'position') The "funny" thing is that...

Noticed that there are no Wiki pages for the new rules LC0021, LC0022, LC0023. When there are wiki pages the hyperlinks should be updated as well. :)

Related to issue: https://github.com/StefanMaron/BusinessCentral.LinterCop/issues/190. Because this could be experienced as a breaking change I've provided a setting in the LinterCop.json to enable the current behavior. When an external application uses...

With the latest update there is a "Fieldgroup brick/dropdown is missing on table" info. I think that's a good addition. But for setup tables this "requirement" should be removed (I...

I was curious how Microsoft code actions (e.g. fix "Implicit With") were implemented and if we could also extend them easily by just implementing a base class or interface. It...

When approving pull requests, it is not easy to see if there is a conflict between data type on related tables. E.g. on Sales Header I add the following fields...

The LC0010 documentation states the Lintercop.json needs to be part of the 'project' root. When opening the project roots folder, the LC0010 is calculated correctly. However, when opening a code-workspace...

Launching specific codeunit which depends on record template shows warning LC0012. Example: Codeunit.Run(recTemplate."Posting Codeunit ID") or Codeunit.Run(CodeunitID) _(typical for posting)_

Hi, just wondering if you could assist in understanding how this get calculated. I have taken the formula from https://docs.microsoft.com/en-us/visualstudio/code-quality/code-metrics-maintainability-index-range-and-meaning?view=vs-2022 and put it in a spreadsheet (attached). [Maintainability Index.xlsx](https://github.com/StefanMaron/BusinessCentral.LinterCop/files/9498217/Maintainability.Index.xlsx) I...

question

There are a couple of spelling mistakes in the entries for the LinterCop.json ``` { "cyclomaticComplexetyThreshold": 6, "maintainablityIndexThreshold": 55, "enableRule0011ForTableFields": true } ``` cyclomaticComplexetyThreshold should be cyclomaticComplex**i**tyThreshold and maintainablityIndexThreshold should...