NAV Skills AL Lint
The NAV Skills extension is designed for AL and Dynamics NAV. It allows you to refactor code into a new function or codeunit and let's you test an object against guidelines for clean code.
The extension will check your code as you are working on it. It checks the open file and shows warnings.
Provides two commands
Some AL code
Hungarian Notation Options
By default the extension will check the following abbreviations Record,Rec Integer,Int Code,Cod Function,Func Codeunit,Cdu Page,Pag Text,Txt Field,Fld
Which can be changed by modifying the HungarianNotationOptions setting like this "Record,Rec;Integer,Int;Code,Cod;Function,Func;Codeunit,Cdu;Page,Pag;Text,Txt;Field,Fld"
Status Bar Explanation
The status bar will show which function you are editing and its hallstead complexity and cyclomatic complexity.
If the text is green, you are good. Orange and Red should explain itsself.
Next up is the refactoring command and then uploading the summary to a report
Fixed a number of issues reported on GitHub.
Check on underscore in variables
First version of refactoring is implemented. The function is always called "foo" and does not yet check if the selection makes sense or depends on variables. Fixed issue with system variables Rec and xRec not being recognised as Hungarian Notation. Added fields to the model with Hungarian Notation check. Check for using WITH statement in Tables and Pages. Warning if local and local variables have the same name. Text Constants throw warning if they have the old notation (TextXXX). Temporary Table Variables must have TEMP, BUFFER, ARGS or ARGUMENTS in the name. Check for reserved words, e.g. a function name called "Action" or a field called "SetRange". Complex Type variables that are declared with object id instead of name give warning. Cleaned up the Type Script a bit here and there.
WARNING: You can not yet disable the new features.
Implemented setting and fixed reported issues.