Skip to content

Code Quality reporting

@ldecicco this adds the built-in code quality checker that ships with GitLab (docs here). I don't know exactly what criteria it is using to do the static code analysis (I don't think it is specific to R) but it should annotate the diff which is better than nothing.

If we wanted to run styler via a pipeline here, let me know and I could poke around at that. After a brief search I think it'd be a manual solution where we write the yaml markdown to call the appropriate R and shell commands to run the styler and then commit and push the changes via the pipeline. I'm not sure how we might run lintr beyond manually writing the R commands into the yaml and then reading the output, maybe we could have the output write to a text file or log that gets associated with the PR or commit.

Merge request reports