generated from codacy/codacy-public-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from codacy/first-version
- Loading branch information
Showing
18 changed files
with
2,082 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"tools": [ | ||
{ | ||
"name": "lizard", | ||
"patterns": [ | ||
{ | ||
"patternId": "ccn-medium", | ||
"parameters": [ | ||
{ | ||
"name": "threshold", | ||
"value": 3 | ||
} | ||
] | ||
}, | ||
{ | ||
"patternId": "ccn-critical", | ||
"parameters": [ | ||
{ | ||
"name": "threshold", | ||
"value": 8 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"files": [ | ||
"/src/dist/src/configCreator.js", | ||
"/src/dist/src/engineImpl.js", | ||
"/src/dist/src/lizard.js", | ||
"/src/dist/src/lizardIssuesEngine.js", | ||
"/src/dist/src/logging.js" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
.vscode | ||
tsconfig.tsbuildinfo | ||
/node_modules | ||
/dist | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
{ | ||
"name": "lizard", | ||
"version": "1.17.10", | ||
"patterns": [ | ||
{ | ||
"patternId": "nloc-minor", | ||
"level": "Info", | ||
"category": "CodeComplexity", | ||
"title": "Minor NLOC control - Number of Lines of Code (without comments)", | ||
"description": "Check the number of lines of code (without comments) in a function. If the threshold is not met, raise a Minor issue. The default threshold is 20.", | ||
"timeToFix": 5, | ||
"parameters": [ | ||
{ | ||
"name": "threshold", | ||
"default": 20 | ||
} | ||
], | ||
"enabled": false | ||
}, | ||
{ | ||
"patternId": "nloc-medium", | ||
"level": "Warning", | ||
"category": "CodeComplexity", | ||
"title": "Medium NLOC control - Number of Lines of Code (without comments)", | ||
"description": "Check the number of lines of code (without comments) in a function. If the threshold is not met, raise a Medium issue. The default threshold is 50.", | ||
"timeToFix": 5, | ||
"parameters": [ | ||
{ | ||
"name": "threshold", | ||
"default": 50 | ||
} | ||
], | ||
"enabled": true | ||
}, | ||
{ | ||
"patternId": "nloc-critical", | ||
"level": "Error", | ||
"category": "CodeComplexity", | ||
"title": "Critical NLOC control - Number of Lines of Code (without comments)", | ||
"description": "Check the number of lines of code (without comments) in a function or logic block. If the threshold is not met, raise a Critical issue. The default threshold is 100.", | ||
"timeToFix": 5, | ||
"parameters": [ | ||
{ | ||
"name": "threshold", | ||
"default": 100 | ||
} | ||
], | ||
"enabled": true | ||
}, | ||
{ | ||
"patternId": "ccn-minor", | ||
"level": "Info", | ||
"category": "CodeComplexity", | ||
"title": "Minor Cyclomatic Complexity control", | ||
"description": "Check the Cyclomatic Complexity value of a function or logic block. If the threshold is not met, raise a Minor issue. The default threshold is 4.", | ||
"timeToFix": 5, | ||
"parameters": [ | ||
{ | ||
"name": "threshold", | ||
"default": 4 | ||
} | ||
], | ||
"enabled": false | ||
}, | ||
{ | ||
"patternId": "ccn-medium", | ||
"level": "Warning", | ||
"category": "CodeComplexity", | ||
"title": "Medium Cyclomatic Complexity control", | ||
"description": "Check the Cyclomatic Complexity value of a function or logic block. If the threshold is not met, raise a Medium issue. The default threshold is 7.", | ||
"timeToFix": 5, | ||
"parameters": [ | ||
{ | ||
"name": "threshold", | ||
"default": 7 | ||
} | ||
], | ||
"enabled": true | ||
}, | ||
{ | ||
"patternId": "ccn-critical", | ||
"level": "Error", | ||
"category": "CodeComplexity", | ||
"title": "Critical Cyclomatic Complexity control", | ||
"description": "Check the Cyclomatic Complexity value of a function or logic block. If the threshold is not met, raise a Critical issue. The default threshold is 10.", | ||
"timeToFix": 5, | ||
"parameters": [ | ||
{ | ||
"name": "threshold", | ||
"default": 10 | ||
} | ||
], | ||
"enabled": true | ||
}, | ||
{ | ||
"patternId": "parameter-count-minor", | ||
"level": "Info", | ||
"category": "CodeComplexity", | ||
"title": "Minor Parameter count control", | ||
"description": "Check the number of parameters sent to a function. If the threshold is not met, raise a Minor issue. The default threshold is 3.", | ||
"timeToFix": 5, | ||
"parameters": [ | ||
{ | ||
"name": "threshold", | ||
"default": 3 | ||
} | ||
], | ||
"enabled": false | ||
}, | ||
{ | ||
"patternId": "parameter-count-medium", | ||
"level": "Warning", | ||
"category": "CodeComplexity", | ||
"title": "Medium Parameter count control", | ||
"description": "Check the number of parameters sent to a function. If the threshold is not met, raise a Medium issue. The default threshold is 5.", | ||
"timeToFix": 5, | ||
"parameters": [ | ||
{ | ||
"name": "threshold", | ||
"default": 5 | ||
} | ||
], | ||
"enabled": true | ||
}, | ||
{ | ||
"patternId": "parameter-count-critical", | ||
"level": "Error", | ||
"category": "CodeComplexity", | ||
"title": "Critical Parameter count control", | ||
"description": "Check the number of parameters sent to a function. If the threshold is not met, raise a Critical issue. The default threshold is 9.", | ||
"timeToFix": 5, | ||
"parameters": [ | ||
{ | ||
"name": "threshold", | ||
"default": 9 | ||
} | ||
], | ||
"enabled": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Lizard is an extensible Cyclomatic Complexity Analyzer for many programming languages. [Learn more](https://github.com/terryyin/lizard) |
Oops, something went wrong.