Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reviewdog/action-misspell

Run misspell with reviewdog
https://github.com/reviewdog/action-misspell

misspell reviewdog

Last synced: about 2 months ago
JSON representation

Run misspell with reviewdog

Awesome Lists containing this project

README

        

# GitHub Action: Run misspell with reviewdog

[![Docker Image CI](https://github.com/reviewdog/action-misspell/workflows/Docker%20Image%20CI/badge.svg)](https://github.com/reviewdog/action-misspell/actions)
[![depup](https://github.com/reviewdog/action-misspell/workflows/depup/badge.svg)](https://github.com/reviewdog/action-misspell/actions?query=workflow%3Adepup)
[![release](https://github.com/reviewdog/action-misspell/workflows/release/badge.svg)](https://github.com/reviewdog/action-misspell/actions?query=workflow%3Arelease)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/reviewdog/action-misspell?logo=github&sort=semver)](https://github.com/reviewdog/action-misspell/releases)
[![action-bumpr supported](https://img.shields.io/badge/bumpr-supported-ff69b4?logo=github&link=https://github.com/haya14busa/action-bumpr)](https://github.com/haya14busa/action-bumpr)

This action runs [misspell](https://github.com/golangci/misspell) with
[reviewdog](https://github.com/reviewdog/reviewdog) on pull requests to improve
code review experience.

[![sample annotation](https://user-images.githubusercontent.com/3797062/64926127-b8b0bc00-d834-11e9-97d5-5b6aa06dc573.png)](https://github.com/reviewdog/action-misspell/pull/1/files)

## Inputs

### `github_token`

Optional. `${{ github.token }}` is used by default.

### `locale`

Optional. -locale flag of misspell. [`US`/`UK`]

### `level`

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

### `reporter`

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

### `ignore`

Optional. Ignore (`-i`) a list of comma-separated words. [`armor`] / [`armor,color`].

### `path`

Optional. Base directory to run misspell. Same as `[path]` of `find` command. Default: `.`

Directories are separated by lines. e.g.:
```yml
path: |
doc
src
```

### `pattern`

Optional. File patterns of target files. Same as `-name [pattern]` of `find` command. Default: `*`

Patterns are separated by lines. e.g.:
```yml
pattern: |
*.py
*.sh
```

### `exclude`

Optional. Exclude patterns of target files. Same as `-not -path [exclude]` of `find` command.
e.g. `./.git/*`

Patterns are separated by lines. e.g.:
```yml
exclude: |
./.git/*
./.cache/*
```

### `filter_mode`

Optional. Filtering mode for the reviewdog command [`added`,`diff_context`,`file`,`nofilter`]. Default: `added`.

### `fail_on_error`

Optional. Exit code for reviewdog when errors are found [`true`,`false`]. Default: `false`.

## Example usage

### [.github/workflows/reviewdog.yml](.github/workflows/reviewdog.yml)

```yml
name: reviewdog
on: [pull_request]
jobs:
misspell:
name: runner / misspell
runs-on: ubuntu-latest
steps:
- name: Check out code.
uses: actions/checkout@v4
- name: misspell
uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.github_token }}
locale: "US"
```