Linting stage in CI pipeline - which to use and how?

FireCrumb
Sun, 08 May 2022 07:17:33 +0000
General Usage

Hello, I have a CI/CD pipeline in GitLab, and I want to run a lintig stage to fail the build on detected bugs. What is the proper way to do this?

Found Lint.jl but it’s abandoned (last update 2019)

Found StaticLint.jl but the usage documentation is lacking - doesn’t say how to run linting for project and analyze results.

Found JET.jl vs Julia in VS Code but not sure if it’s the right tool and how to integrate that into a build.

Found these posts:

What is the current approach for linting in Juno Juno

linter-julia is actually not in Juno’s ecosystem at all – its implementation is pretty old and imho I don’t recommend using it for now. We’re planning to implement our own linter based on CSTParser.jl, but it’s not our top priority and so I can’t provide an estimate. So in conclusion there is no (static-)linter in Juno for now, but with Juno’s interactive code execution feature you can easily find syntactical misses. If you really want a linter, vscode-julia extension will do that fine.

Tooling for Julia command-line scripts Package Management

Prompted by Jeremy Howard’s reply to @viralbshah’s question about 2022 goals for Julia, one thing I would like to figure out how to make it easier to write and deploy command-line scripts written in Julia. I think the key things to figure out are: How should such a script be packaged? The obvious answer I can think of is as a regular Julia package, with a bin subdirectory containing the necessary scripts. This pattern is already used by some packages, but there are certain conventions that s…

But neither of them mentions a way to run a command that will give a result of whether build should pass or there are serious errors detected.

14 posts - 3 participants