Join M. Scott Ford for an in-depth discussion in this video Adjust thresholds, part of Agile Software Development: Code Quality.
- [Instructor] We've talked a bit … about default threshold values. … And I personally think that the defaults, in Code Climate, … are really good ones. … However, if these thresholds don't work for your team, … then you need a way to change them. … There's no way to do that from the web interface. … Instead, we have to turn to a configuration file, … CodeClimate.yml. … Let's suppose that your team wants to use … a value of 10 as the threshold … for both cognitive complexity and cyclomatic complexity. … Over in the django project, … I have created a sample Code Climate configuration file, … which does just that. … It sets the method complexity, … which is used for cognitive complexity, to 10. … And for radon, it sets the threshold to C. … You'll notice that the value for radon is a little strange. … It turns out that radon has ranges that it uses. … The A range is one to five, B is six to 10, … and the C range is 11 to 20. … So, by specifying our threshold as C, … we're saying that we want an error …
Author
Released
3/28/2019- Code quality metrics and tools
- Exploring code complexity
- Adjusting complexity thresholds
- Analyzing hotspots and churn
- Visualizing code coverage
- Finding duplication
- Securing dependencies
- Maintaining a consistent coding style
Skill Level Intermediate
Duration
Views
Related Courses
-
Agile Software Development
with Shashi Shekhar1h 53m Beginner -
Agile Software Development: Refactoring
with Richard Kasperowski1h 31m Intermediate
-
Introduction
-
1. Code Quality
-
What is code quality?1m 28s
-
-
2. Complexity
-
What is complexity?2m 39s
-
Adjust thresholds3m 36s
-
-
3. Hotspots and Churn
-
What are hotspots and churn?2m 22s
-
-
4. Code Coverage
-
What is code coverage?2m 56s
-
Windows setup2m 9s
-
macOS X setup3m 19s
-
-
5. Duplication
-
What is duplication?2m 10s
-
-
6. Securing Your Dependencies
-
Why secure dependencies?1m 51s
-
Setting up Snyk1m 24s
-
-
7. Consistent Coding Style
-
Why consistent coding style?1m 40s
-
Setting up Flask2m 1s
-
-
Conclusion
-
Next steps36s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Adjust thresholds