Getting Started

You have installed Lint.jl and now you want to use it to find potential problems in your code. There are 3 functions you can use to lint your code.

You have to include Lint before you can use it:

using Lint


lintpkg is used for linting an entire package.


If your package always lints clean, you may want to keep it that way in a test:

@test isempty(lintpkg("MyPackage"))


lintfile is used for linting a file.


lintfile will follow any include statements to resolve any variables. But will only return warnings for the file you are linting.


lintstr is used for linting a string.

lintstr("println(\"hello world!\")")