al-codeactions icon indicating copy to clipboard operation
al-codeactions copied to clipboard

Fix warnings from BusinessCentral.LinterCop

Open jwikman opened this issue 2 years ago • 3 comments

The auto-fixing of some CodeCop rules are a great idea!

I just enabled the useful initiative BusinessCentral.LinterCop and of course a lot of new warnings appeared! :)

Some of the warnings have a very distinct solution, that could be a perfect fit for your Fix Cop Warnings feature. Candidates at a first glance:

  • LC0001
  • LC0004
  • LC0005

A list of all available rules are found at https://github.com/StefanMaron/BusinessCentral.LinterCop#rules

jwikman avatar Nov 04 '21 08:11 jwikman

Also LC0011 could be auto-fixed by adding Access = Public; to the object.

jwikman avatar Nov 04 '21 09:11 jwikman

Hi Johannes, very good idea. I already thought of it as well. I'm currently quite busy, so it might take up to 3 weeks. But I'll try to get my hands down on it earlier.

DavidFeldhoff avatar Nov 04 '21 11:11 DavidFeldhoff

No worries, I'm in the same situation where other stuff (work and a life with family😁) needs to have higher priority than the VSCode Extensions.

Anyway, glad to hear that you agree!

jwikman avatar Nov 04 '21 12:11 jwikman