Hello everyone,
today there is a new D-Scanner release, key features include:
- proper diagnostic ranges (underlining code / end locations for issues)
- also includes file byte index instead of only line:column in the JSON formats (for IDE integration)
- pretty printing format, with colored output
- new easier way to call D-Scanner for humans:
dscanner lint source/
https://github.com/dlang-community/D-Scanner/releases/tag/v0.15.0
Looking forward to feedback for the output style and warnings.
Adding your own diagnostics to D-Scanner is quite easy, give it a try if you have ideas! You have full access to the AST of the input file, as well as a very basic symbol index to attempt to lookup symbols in the entire project (although it's not always accurate yet, especially since D-Scanner usually isn't configured to use the correct import paths)