Skip to content

Commit

Permalink
feat: shellharden, fixit stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
llllvvuu committed Nov 3, 2023
1 parent f9aecb1 commit c88c51c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ languages:
- <<: *slither
sh:
- <<: *shellcheck
- <<: *shellharden
- <<: *shfmt
tex:
- <<: *chktex
Expand Down
8 changes: 6 additions & 2 deletions tool-definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ tools:
format-stdin: false
fixit: &fixit
# pip install --pre "fixit >1"
lint-command: 'fixit lint ${INPUT}'
lint-command: 'fixit lint - ${INPUT}'
lint-formats:
- '%f@%l:%c %m'
lint-ignore-exit-code: true
lint-severity: 2 # Display at "warning" level (Fixit 2 Violations don't specify severity)
lint-source: 'fixit2'
lint-stdin: false
lint-stdin: true
root-markers:
- 'pyproject.toml'
- 'requirements.txt'
Expand Down Expand Up @@ -158,6 +158,10 @@ tools:
- '-:%l:%c: %trror: %m'
- '-:%l:%c: %tarning: %m'
- '-:%l:%c: %tote: %m'
shellharden: &shellharden
# cargo install shellharden
format-command: "shellharden --transform ''"
format-stdin: true
shfmt: &shfmt
# go install mvdan.cc/sh/v3/cmd/shfmt@latest
format-command: "shfmt -filename ${INPUT} -"
Expand Down

0 comments on commit c88c51c

Please sign in to comment.