Skip to content

Commit

Permalink
add rest of xpaths
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesF25 authored Dec 7, 2023
1 parent 76546b3 commit de867a0
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .chasten/Zhu_.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,53 @@
checks:
- name: "Void Function"
code: "VF"
id: "C001"
pattern: 'count(//Function//For|If|Return|Assign)'
count:
min: 1
max: 100
- name: "Nested Depth (Set value)"
code: "ND"
id: "F001"
pattern: '//FunctionDef//FunctionDef/ancestor::*'
count:
min: 1
max: 100
- name: "Number of conditions (if, if-else, and switch) in a Function"
code: "#Cond"
id: "F002"
pattern: '//FunctionDef//If/following-sibling::If | //FunctionDef//If/following-sibling::Elif | //FunctionDef//If/following-sibling::Else'
count:
min: 1
max: 100
- name: "The number of nested conditions (e.g., if{if{}}) in a Function"
code: "IFIF"
id: "CL001"
pattern: '//FunctionDef//If/descendant::If'
count:
min: 1
max: 100
- name: "The number of nested condition-loops (e.g., if{for{}}) in a Function"
code: "IFOR"
id: "CL002"
pattern: '//FunctionDef//For//if'
count:
min: 1
max: 100
- name: "The number of nested loop-conditions (e.g., for{if{}}) in a Function"
code: "VFF"
id: "C002"
pattern: '//FunctionDef[//(If/following-sibling::For | For/following-sibling::If)]'
count:
min: 1
max: 100
- name: "The number of nested loop-conditions (e.g., for{for{}}) in a Function"
code: "FF"
id: "F001"
pattern: '//FunctionDef//For[.//For]'
count:
min: 1
max: 100
- name : "number-of-assertions"
code: "NOA"
id: "NOA001"
Expand Down

0 comments on commit de867a0

Please sign in to comment.