al-codeactions
al-codeactions copied to clipboard
Fix warnings from BusinessCentral.LinterCop
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
Also LC0011 could be auto-fixed by adding Access = Public;
to the object.
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.
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!