Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool 1 (Analysis that is not in starter list): Integrated Complexity-Report into our CI/CD pipeline #44

Open
wants to merge 1 commit into
base: f24
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .complexrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"output": "complexity_report.md",
"format": "markdown",
"allfiles": false,
"ignoreerrors": true,
"filepattern": "\\.js$",
"dirpattern": "(src)"
}
29 changes: 29 additions & 0 deletions complexity_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Mean per-function logical LOC: 18
Mean per-function parameter count: 3
Mean per-function cyclomatic complexity: 1
Mean per-function Halstead effort: 10734.042662663262
Mean per-module maintainability index: 92.43435721883823
First-order density: 0%
Change cost: 100%
Core size: 0%

src/routes/api.js

Physical LOC: 45
Logical LOC: 23
Mean parameter count: 3
Cyclomatic complexity: 1
Cyclomatic complexity density: 4.3478260869565215%
Maintainability index: 92.43435721883823
Dependency count: 4

Function: module.exports
Line No.: 8
Physical LOC: 38
Logical LOC: 18
Parameter count: 3
Cyclomatic complexity: 1
Cyclomatic complexity density: 5.555555555555555%
Halstead difficulty: 6.411290322580645
Halstead volume: 1674.2406165663451
Halstead effort: 10734.042662663262