julia: static analyzer/linter for the command line

Viewed 372

im looking for a shell command-line tool to lint julia scripts (a static analyzer), eg.

local:~ $ linter(myjuliascript.jl)

which will produce its output to terminal => text with linter results = either

// messages inlined with text of myjuliascript.jl or
...
...
// messages indicating line numbers of myjuliascript.jl
...
...

i found this, https://github.com/tonyhffong/Lint.jl, but it does not look promising (does not compile).

question: do you know of any good-quality command-line tool with which to lint julia scripts?

id rather avoid plugins to IDE's, since im a little tired of IDEs; often they are too much kung-fu-fighting with too little benefit. eg. tried to get the VS code julia linter working, no luck; VS code, julia linter doesn't work (on mac)

1 Answers

The closest thing currently available appears to be https://github.com/julia-vscode/StaticLint.jl. While you could technically call this from the command line if so desired using, julia -e, the interface would not seem to be very conducive to that sort of usage.

Related