Skip to content

Commit

Permalink
Add fingerprint to detect generated code in .NET
Browse files Browse the repository at this point in the history
  • Loading branch information
vchircu committed Jul 5, 2023
1 parent 135e2ae commit 7d66d30
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions config/fingerprints/generated_code.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"useProjectPrefix": true,
"technologies": [
{
"category": "GeneratedCode",
"name": "DotNet",
"languages": [
"c#", "vbnet", "f#"
],
"extensions": [],
"fingerprints": [
"<auto-generated>"
],
"wrapAsImports": false
}
]
}
2 changes: 1 addition & 1 deletion instrument.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ commands:
# unix: ./insider.sh indent

parameters:
findConfig: 'config/fingerprints/code_smells.json config/fingerprints/libraries.json'
findConfig: 'config/fingerprints/code_smells.json config/fingerprints/libraries.json config/fingerprints/generated_code.json'
inspectConfig: 'config/rules'
max-heap: 8g

Expand Down

0 comments on commit 7d66d30

Please sign in to comment.