Skip to content

Commit

Permalink
Merge pull request #265 from EcoExtreML/fix_82
Browse files Browse the repository at this point in the history
Add mh_metric to GA workflow to check for global and persistent variables
  • Loading branch information
SarahAlidoost authored Oct 4, 2024
2 parents e394e19 + 5f82de2 commit 5bd8d1b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ jobs:
run: mh_lint src/ --brief
- name: Check style against standards
run: mh_style src/ --brief
- name: Check global and persistent variables
run: mh_metric src/ --brief --ci
8 changes: 8 additions & 0 deletions miss_hit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ suppress_rule: "naming_functions"
suppress_rule: "naming_parameters"
suppress_rule: "naming_scripts"
suppress_rule: "operator_after_continuation"
metric "globals": limit 0
metric "persistent": limit 0
metric "file_length": disable
metric "function_length": disable
metric "npath": disable
metric "cnest": disable
metric "parameters": disable
metric "cyc": disable

0 comments on commit 5bd8d1b

Please sign in to comment.