Skip to content

Commit

Permalink
feat: creating new dummy checks
Browse files Browse the repository at this point in the history
  • Loading branch information
simojo committed Nov 11, 2023
1 parent c76241b commit 637c190
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config_url_and_local_checks_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
chasten:
# point to a combination of checks files and local files
checks-file:
- https://raw.githubusercontent.com/AstuteSource/chasten/master/.chasten/checks.yml
- https://raw.githubusercontent.com/AstuteSource/chasten-configuration/master/dummy_checks.yml
- checks.yml
- https://raw.githubusercontent.com/AstuteSource/chasten/master/.chasten/checks.yml
- https://raw.githubusercontent.com/AstuteSource/chasten-configuration/master/dummy_checks.yml
- checks.yml
2 changes: 1 addition & 1 deletion config_url_checks_file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
chasten:
# point to a checks file
checks-file:
- https://raw.githubusercontent.com/AstuteSource/chasten/master/.chasten/checks.yml
- https://raw.githubusercontent.com/AstuteSource/chasten-configuration/master/dummy_checks.yml
36 changes: 36 additions & 0 deletions dummy_checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
checks:
- name: "class-definition"
code: "CDF"
id: "C001"
pattern: './/ClassDef'
count:
min: 1
max: null
- name: "all-function-definition"
code: "AFD"
id: "F001"
pattern: './/FunctionDef'
count:
min: 1
max: null
- name: "dummy-test-non-test-function-definition"
code: "NTF"
id: "F002"
pattern: './/FunctionDef[not(contains(@name, "test_"))]'
count:
min: null
max: null
- name: "dummy-test-single-nested-if"
code: "SNI"
id: "CL001"
pattern: './/FunctionDef/body//If'
count:
min: null
max: null
- name: "dummy-test-double-nested-if"
code: "DNI"
id: "CL002"
pattern: './/FunctionDef/body//If[ancestor::If and not(parent::orelse)]'
count:
min: null
max: null

0 comments on commit 637c190

Please sign in to comment.