Skip to content

Add clj-kondo action, fix linting errors #4

Add clj-kondo action, fix linting errors

Add clj-kondo action, fix linting errors #4

Workflow file for this run

name: Linter
on:
pull_request:
push:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install CLJ-Kondo
uses: DeLaGuardo/setup-clojure@master
with:
clj-kondo: latest
- name: Cache kondo directory
uses: actions/cache@v2
with:
path: ~/.clj-kondo/.cache
key: ${{ runner.os }}-kondo
restore-keys: ${{ runner.os }}-kondo
- name: Lint dependencies
run: clj-kondo --lint "$(lein classpath)" --dependencies
- name: Lint project files
run: clj-kondo --lint src test --config '{:output {:pattern "::{{level}} file={{filename}},line={{row}},col={{col}}::{{message}}"}}'