From the course: Agile Software Development: Code Quality

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Enabling cyclomatic complexity

Enabling cyclomatic complexity - SonarQube Tutorial

From the course: Agile Software Development: Code Quality

Start my 1-month free trial

Enabling cyclomatic complexity

- [Instructor] By default Code Climate only provides results using the cognitive complexity metric. Cognitive complexity's still pretty new. So I find it's best to compare and contrast to a cyclomatic complexity. Cyclomatic complexity's been around for longer, and is more widely implemented. If you'd like to also see cyclomatic complexity when using Code Climate, then you'll need to enable a plugin, which computes that metric for you. I'll show you how to turn on cyclomatic complexity checks for a Python project, by using a Code climate engine, which wraps the CLI tool right on. Go back to my GitHub account over at github.com/mscottford-demo. Click on the django project and then fork it into your GitHub account. And then, go back over to Code Climate and add django as a repository by clicking Add Repo. And again, like before when we were working with angular, this is going to take a few minutes for Code Climate to collect all the data it needs. So now we click on See the Results and…

Contents