Skip to content

Run codespell with reviewdog

Actions
🐶 Run codespell with reviewdog on pull requests to improve code review experience
v0.3
Latest
Star (1)

action-codespell

This GitHub action runs codespell with reviewdog.

It is based on action-misspell from haya14busa. While misspell might be faster, it hasn't been updated for some time and also the word-list is compiled in making it quite unflexible.

Inputs

github_token

Required. Must be in form of github_token: ${{ secrets.github_token }}'. Defaults to ${{ github.token }}

level

Optional. Report level for reviewdog [info,warning,error]. It's same as -level flag of reviewdog.

reporter

Optional. Reporter of reviewdog command [github-pr-check,github-pr-review]. It's same as -reporter flag of reviewdog.

Configuration

The codespell action can be configured with these files in the main repository:

  • .codespell_skip contains one path or pattern per line (paths starting with ./) which will be skipped during the check.
  • .codespell_exclude contains source lines which will not be checked.
  • .codespell_ignore contains on word per line which should be ignored.

Example usage

name: reviewdog
on: [pull_request]
jobs:
  codespell:
    name: runner / codespell
    runs-on: ubuntu-latest
    steps:
      - name: Check out code.
        uses: actions/checkout@v1
      - name: codespell
        uses: plettich/action-codespell@master
        with:
          github_token: ${{ secrets.github_token }}

TODO

  • update word list
  • add own wordlist (exclusive or additional)
  • use pyproject.toml for configuration

Run codespell with reviewdog is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

🐶 Run codespell with reviewdog on pull requests to improve code review experience
v0.3
Latest

Run codespell with reviewdog is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.