CodeScene for VS Code
This extension analyses your code, and warns you if there are issues that makes it more difficult to maintain. This is a free, standalone version of CodeScene's code health analysis. It very likely supports your language. See the full list of supported languages below.
It performs the analysis in the background automatically and reports any issues right next to your code. See the screenshots to see how it's presented.
Aside from reporting individual issues, we also display a Code Health score of 1-10 for each file. Code Health is an aggregated metric based on 25+ factors scanned from the source code. The Code Health factors correlate with increased maintenance costs and an increased risk for defects.
A healthy codebase enables a fast time-to-market with, on average, 124% faster development time. Healthy code also contains 15 times fewer defects than unhealthy code.
For further details on the business impact of code health, see the Code Red research paper.
Code Health Factors
Here are some examples of the factors that we measure:
You can find more detailed information for each Code Health issue by drilling down in the editor.
You may also look at our main CodeScene docs on code health for more info.
Connect to your CodeScene subscription to enable the Change Coupling analysis. Looking at the Change Coupling will help you understand how files change together over time. It can be useful for navigating between related files, and can also make it easier to pinpoint other files that might need updating when working on a certain file. See more about Change Coupling on codescene.com.
Issues are displayed above the affected functions. Clicking on them shows an explanation.
Issues are registered as warnings and collected in the Problems tab
A score based on the CodeScene code health concept is shown at the top of the file
CodeScene supports most popular languages. Here is the full list:
Note on custom code health rules: this is the same mechanism as the full CodeScene product. Adding this file to your repo affects analyses by CodeScene as well.