Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Finley8 committed Dec 12, 2023
1 parent de867a0 commit fbab2e4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 39 deletions.
36 changes: 35 additions & 1 deletion .chasten/Zhu_.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,38 @@ checks:
count:
min: null
max: null

- name: "is-void"
code: "IVI"
id: "V001"
pattern: "//method[@returnType='void']"
count:
min: null
max: null
- name: "non-void-percent"
code: "NVP"
id: "V002"
pattern: "count(/class/method[@returnType != 'void'])"
count:
min: null
max: null
- name: "getter-percent"
code: "GPT"
id: "GP001"
pattern: "concat(count(//method[starts-with(@name, 'get') or starts-with(@name, 'is')]), '/', count(//method[starts-with(@name, 'get') or starts-with(@name, 'is')]))"
count:
min: null
max: null
- name: "is-public"
code: "IPP"
id: "IP001"
pattern: "//method[@access='public']"
count:
min: null
max: null
- name: "is-static"
code: "IST"
id: "IS001"
pattern: "//method[(@static) or @static='true']"
count:
min: null
max: null
39 changes: 1 addition & 38 deletions .chasten/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,41 +33,4 @@ checks:
pattern: './/FunctionDef/body//If[ancestor::If and not(parent::orelse)]'
count:
min: 1
max: 15

- name: "is-void"
code: "IVI"
id: "V001"
pattern: "//method[@returnType='void']"
count:
min: null
max: null
- name: "non-void-percent"
code: "NVP"
id: "V002"
pattern: "count(/class/method[@returnType != 'void'])"
count:
min: null
max: null
- name: "getter-percent"
code: "GPT"
id: "GP001"
pattern: "concat(count(//method[starts-with(@name, 'get') or starts-with(@name, 'is')]), '/', count(//method[starts-with(@name, 'get') or starts-with(@name, 'is')]))"
count:
min: null
max: null
- name: "is-public"
code: "IPP"
id: "IP001"
pattern: "//method[@access='public']"
count:
min: null
max: null
- name: "is-static"
code: "IST"
id: "IS001"
pattern: "//method[(@static) or @static='true']"
count:
min: null
max: null

max: 15

0 comments on commit fbab2e4

Please sign in to comment.