Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jetbrains/resharper-cyclomatic-complexity
ReSharper plugin to measure cyclomatic complexity as you type
https://github.com/jetbrains/resharper-cyclomatic-complexity
cyclomatic-complexity jetbrains plugin resharper resharper-plugin
Last synced: 5 days ago
JSON representation
ReSharper plugin to measure cyclomatic complexity as you type
- Host: GitHub
- URL: https://github.com/jetbrains/resharper-cyclomatic-complexity
- Owner: JetBrains
- License: apache-2.0
- Created: 2015-08-26T08:44:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-01-17T15:10:33.000Z (about 1 month ago)
- Last Synced: 2025-02-16T20:55:30.414Z (5 days ago)
- Topics: cyclomatic-complexity, jetbrains, plugin, resharper, resharper-plugin
- Language: C#
- Size: 6.86 MB
- Stars: 123
- Watchers: 24
- Forks: 15
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
[](https://plugins.jetbrains.com/plugin/10395-cyclomatic-complexity)
[](https://resharper-plugins.jetbrains.com/packages/PowerToys.CyclomaticComplexity/)# Cyclomatic complexity plugin for ReSharper
This is a ReSharper plugin that measures [cyclomatic complexity](https://en.wikipedia.org/wiki/Cyclomatic_complexity) as you type. If the complexity of a method, function or property exceeds a configurable threshold, the method, function or property is marked with a warning highlight ("squiggly"). Supported languages are C#, VB, JavaScript, TypeScript and C++.
It can be installed by going to **ReSharper → Extensions Manager** and searching for "Cyclomatic Complexity".
Cyclomatic complexity is a metric intended to show the complexity of your code. It measures the number of paths through a code block - the more branches and conditional statements, the higher the metric. As the code gets more complex, the metric gets higher. A higher value is a good indicator that a method is getting too complex, and is becoming a maintainability risk, and should be refactored. You can read more about [cyclomatic complexity at wikipedia](https://en.wikipedia.org/wiki/Cyclomatic_complexity).
The complexity of a method, function or other code member is always available as a tooltip on the method name:

When the complexity reaches a configurable threshold, the tooltip is shown as a warning:

And the complexity threshold can be configured in the options, per language:
