Run some linters such as clj-kondo , kibit , eastwood and show results as warning.
steps:
- uses: actions/checkout@v2
- uses: xcoo/[email protected]
with:
linters: "\"all\""
github_token: ${{ secrets.GITHUB_TOKEN }}
runner: ":leiningen"
base_sha: ${{ github.event.pull_request.base.sha||github.event.before }}
eastwood_linters: "[:all]"
linter_options: "{}"
if you want to select linters,set variable 'linters' like this.
linters: "[\"clj-kondo\" \"kibit\" \"eastwood\" \"cljfmt\"]"
linter_options
is the options for clj-kondo and eastwood.
linter_options: "{:clj-kondo {:linters {:redundant-let {:level :info}}}\
:eastwood {:exclude-namespaces [tmp-clj.core2]}}"