{"id":19858632,"url":"https://github.com/nnichols/clojure-lint-action","last_synced_at":"2025-10-29T04:21:01.439Z","repository":{"id":43424624,"uuid":"383901833","full_name":"nnichols/clojure-lint-action","owner":"nnichols","description":"A GitHub Action that lints clojure files with clj-kondo and generates comments with reviewdog on pull requests to improve the code review experience.","archived":false,"fork":false,"pushed_at":"2025-01-03T22:16:36.000Z","size":23,"stargazers_count":21,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-27T05:49:05.620Z","etag":null,"topics":["action","clojure","github-actions","kondo","lint","linter"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nnichols.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"nnichols"}},"created_at":"2021-07-07T19:13:37.000Z","updated_at":"2025-01-03T22:16:40.000Z","dependencies_parsed_at":"2024-05-04T15:29:14.977Z","dependency_job_id":"aeed2a96-fa63-4274-966c-29212191618f","html_url":"https://github.com/nnichols/clojure-lint-action","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"8ab2dd33ee05a0f468ce25bbeadd03b2b7118a90"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnichols%2Fclojure-lint-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnichols%2Fclojure-lint-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnichols%2Fclojure-lint-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnichols%2Fclojure-lint-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nnichols","download_url":"https://codeload.github.com/nnichols/clojure-lint-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251972469,"owners_count":21673612,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["action","clojure","github-actions","kondo","lint","linter"],"created_at":"2024-11-12T14:24:11.076Z","updated_at":"2025-10-29T04:21:01.415Z","avatar_url":"https://github.com/nnichols.png","language":"Shell","funding_links":["https://github.com/sponsors/nnichols"],"categories":[],"sub_categories":[],"readme":"# Clojure Lint Action\n\nA GitHub Action to lint clojure files with [clj-kondo](https://github.com/clj-kondo/clj-kondo) and [reviewdog](https://github.com/reviewdog/reviewdog) on pull requests to improve the code review experience.\n\n![Screenshot 2024-12-03 100026](https://github.com/user-attachments/assets/60c717ce-6dc8-45d4-955d-8b1feed11a99 \"An example Pull Request comment generated by this action\")\n\n## Example Usage\n\nThe clojure-lint-action is used in almost every Wall Brew repository.\nIf you'd like to see a sample GitHub workflow using this linter, please check out [spoon](https://github.com/Wall-Brew-Co/spoon/blob/1ec5a26e49561f6c653bbba666a024a9924cf831/.github/workflows/lint.yml#L33 \"An example workflow file using this action.\")\nThat action was used as a CI/CD check in this [Pull Request.](https://github.com/Wall-Brew-Co/spoon/pull/14 \"An example PR with 2 linter warnings written as comments\")\n\n## Inputs\n\n### `github_token`\n\nOptional.\n`${{ github.token }}` is used by default.\n\n### `level`\n\nOptional.\nReport level for reviewdog- must be one of `[info, warning, error]`.\nIt's same as `-level` flag of reviewdog.\n\n### `reporter`\n\nReporter of reviewdog command.\nMust be one of `[github-pr-check, github-pr-review, github-check]`.\nDefault is github-pr-check.\ngithub-pr-review can use Markdown and add a link to rule page in reviewdog reports.\n\n### `filter_mode`\n\nOptional.\nFiltering mode for the reviewdog command.\nMust be one of `[added, diff_context, file, nofilter]`.\nDefault is added.\n\n### `fail_on_error`\n\nOptional.\nSets and exceptional exit code for reviewdog when errors are found.\nMust be one of `[true, false]`.\nDefault is `false`.\n\n### `reviewdog_flags`\n\nOptional.\nAdditional reviewdog flags.\n\n### `path`\n\nOptional.\nBase directory to run clj-kondo.\nSame as `[path]` of `find` command.\nDefault: `.`\n\n### `pattern`\n\nOptional.\nFile patterns of target files.\nSame as `-name [pattern]` of `find` command.\nDefault: `*.clj*` (To capture `*.clj`, `*.cljs`, `*.cljc`, and `*.cljx`)\n\n### `exclude`\n\nOptional.\nExclude patterns of target files.\nSame as `-not -path [exclude]` of `find` command.\ne.g. `./git/*`\n\n### `clj_kondo_config`\n\nOptional.\nFlags to pass to clj-kondo's `--config` option, which may either be in-line options or a path to a config file.\nDefault: `'{:output {:pattern \"{{filename}}:{{row}}:{{col}}: {{message}}\"}}'`\n\n## Example usage\n\n### [.github/workflows/reviewdog.yml](.github/workflows/reviewdog.yml)\n\nTo receive automatic Pull Request comments with linter results:\n\n```yml\nname: Lint Clojure\non: [pull_request]\njobs:\n  clj-kondo:\n    name: runner / clj-kondo\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3.0.2\n      - name: clj-kondo\n        uses: nnichols/clojure-lint-action@v6\n        with:\n          github_token: ${{ secrets.github_token }}\n          reporter: github-pr-review\n```\n\n## Licensing\n\nCopyright © [Nick Nichols](https://nnichols.github.io/)\n\nDistributed under the [MIT License](https://github.com/nnichols/clojure-lint-action/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnnichols%2Fclojure-lint-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnnichols%2Fclojure-lint-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnnichols%2Fclojure-lint-action/lists"}