Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
file-text

GitHub Action

Spellchecker CLI

v1.1.0

Spellchecker CLI

file-text

Spellchecker CLI

Spellcheck files in your repository

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Spellchecker CLI

uses: tbroadley/[email protected]

Learn more about this action in tbroadley/spellchecker-cli-action

Choose a version

Spellchecker CLI Action

Run Spellchecker CLI in GitHub Actions workflows.

Use Case

Catch spelling mistakes in your open-source software project's documentation as part of its continuous integration process.

Usage

Here is an example workflow definition. It uses actions/checkout to check out your repository's code, then tbroadley/spellchecker-cli-action to spellcheck it.

on: push
jobs:
  spellcheck:
    runs-on: ubuntu-latest
    name: Spellcheck
    steps:
      - uses: actions/checkout@v3
      - uses: tbroadley/spellchecker-cli-action@v1

Inputs

See Spellchecker CLI for more details about these inputs.

Name Description Required? Default Value
files A list of files or globs to spellcheck, separated by spaces. false "**/*.txt **/*.md"
language The language of the files. See Spellchecker CLI for details about default and available languages. false "en-US"
dictionaries A list of files to combine into a personal dictionary, separated by spaces. false ""
noGitignore Don't respect ignore files (.gitignore, .ignore, etc). false false
ignore A list of regexes, separated by spaces. Spelling mistakes that match any of these regexes (after being wrapped with ^ and $) will be ignored. false ""
plugins A list of retext plugins to use, separated by spaces. See Spellchecker CLI for details about available plugins. false "spell indefinite-article repeated-words syntax-mentions syntax-urls"]
noSuggestions Do not print suggested replacements for misspelled words. This option will improve Spellchecker CLI's runtime when many errors are detected. false false
quiet Do not output anything for files that contain no spelling mistakes. false false
frontmatterKeys A list of frontmatter keys whose values should be spellchecked, separated by spaces. By default, no values are spellchecked. Only valid when the frontmatter plugin is used. false ""
reports A list of report files to generate, separated by spaces. The type of the report is based on the extension of the file. (Supported: .junit.xml and .json) false ""
config A path to a config file. false ''

Here's an example that uses inputs:

- uses: tbroadley/spellchecker-cli-action@v1
  with:
    files:
      - **/*.md
      - "!build/*.md"
    quiet: true