GithubHelp home page GithubHelp logo

isabella232 / resharper-cyclomatic-complexity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jetbrains/resharper-cyclomatic-complexity

0.0 0.0 0.0 4.87 MB

ReSharper plugin to measure cyclomatic complexity as you type

License: Apache License 2.0

C# 84.44% C++ 2.20% JavaScript 4.08% TypeScript 3.07% PowerShell 5.25% Kotlin 0.96%

resharper-cyclomatic-complexity's Introduction

official JetBrains project

Rider ReSharper

Cyclomatic complexity plugin for ReSharper

This is a ReSharper plugin that measures 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.

The complexity of a method, function or other code member is always available as a tooltip on the method name:

Complexity displayed as an info tooltip

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

Complexity exceeds the configurable threshold

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

Options

resharper-cyclomatic-complexity's People

Contributors

citizenmatt avatar ebrucucen avatar matkoch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.