Checking code quality in a CI/CD pipeline
One of the many scanners that GitLab makes available to CI/CD pipelines is a special feature that makes sure your project’s code adheres to certain quality standards. GitLab calls this feature, unsurprisingly, Code Quality. If you’ve used any sort of linting tool before, you can think of this feature as a turbocharged linter.
The Code Quality feature relies on an outside service called Code Climate. Although this service can scan code written in all the major computer languages, it can’t handle every language out there. You can refer to Code Climate’s official documentation to see a list of supported languages, but rest assured that it works just fine with Java, Python, Ruby, JavaScript, and most other commonly used languages.
What sorts of problems does the Code Quality feature look for? The general categories it’s interested in include performance, style, complexity, security, and smells (i.e., patterns...