All Projects → TypoCI → spellcheck-action

TypoCI / spellcheck-action

Licence: MIT license
GitHub Action for checking code & Pull Requests for spelling mistakes

Programming Languages

ruby
36898 projects - #4 most used programming language
Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to spellcheck-action

qodana-action
⚙️ Scan your Java, Kotlin, PHP, Python, JavaScript, TypeScript projects at GitHub with Qodana
Stars: ✭ 112 (+220%)
Mutual labels:  code-quality, github-action
Github-Android-Action
Android Github Action that builds Android project, runs unit tests and generates debug APK, builds for Github Actions hackathon
Stars: ✭ 29 (-17.14%)
Mutual labels:  github-action, actionshackathon
ticket-check-action
Verify that pull request titles start with a ticket ID
Stars: ✭ 29 (-17.14%)
Mutual labels:  github-action
clojure-dependency-update-action
A simple GitHub Actions job to create Pull Requests for outdated dependencies in clojure projects
Stars: ✭ 37 (+5.71%)
Mutual labels:  github-action
codeowners-validator
The GitHub CODEOWNERS file validator
Stars: ✭ 142 (+305.71%)
Mutual labels:  github-action
action-netlify-deploy
🙌 Netlify deployments via GitHub actions
Stars: ✭ 32 (-8.57%)
Mutual labels:  github-action
editorconfig-checker.javascript
A tool to verify that your files are in harmony with your .editorconfig
Stars: ✭ 59 (+68.57%)
Mutual labels:  code-quality
find-comment
A GitHub action to find an issue or pull request comment
Stars: ✭ 81 (+131.43%)
Mutual labels:  github-action
googlejavaformat-action
GitHub Action that formats Java files following Google Style guidelines
Stars: ✭ 66 (+88.57%)
Mutual labels:  github-action
sonar-groovy
SonarQube plugin for Groovy
Stars: ✭ 42 (+20%)
Mutual labels:  code-quality
chainalert-github-action
scans popular packages and alerts in cases there is suspicion of an account takeover
Stars: ✭ 38 (+8.57%)
Mutual labels:  github-action
scheduler
Laravel on my way
Stars: ✭ 20 (-42.86%)
Mutual labels:  code-quality
org-audit-action
GitHub Action that provides an Organization Membership Audit
Stars: ✭ 34 (-2.86%)
Mutual labels:  github-action
aws-secrets-manager-actions
🔒 GitHub Action for AWS Secrets Manager
Stars: ✭ 53 (+51.43%)
Mutual labels:  github-action
wemake-frontend-styleguide
Set of the strictest linters for your next frontend app
Stars: ✭ 67 (+91.43%)
Mutual labels:  code-quality
create-or-update-project-card
A GitHub action to create or update a project card
Stars: ✭ 36 (+2.86%)
Mutual labels:  github-action
changed-files
Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.
Stars: ✭ 733 (+1994.29%)
Mutual labels:  github-action
elodin-old
Quality and Optimisation tools for CSS in JavaScript
Stars: ✭ 15 (-57.14%)
Mutual labels:  code-quality
composer-normalize-action
+ 🎵 Provides a GitHub action for running ergebnis/composer-normalize.
Stars: ✭ 25 (-28.57%)
Mutual labels:  github-action
safe-rules
详细的C/C++编程规范指南,由360质量工程部编著,适用于桌面、服务端及嵌入式软件系统。
Stars: ✭ 425 (+1114.29%)
Mutual labels:  code-quality

Typo CI Logo - It's a sword surrounded by brackets

Typo CI - Spellcheck Action

Checks for spelling mistakes within code via a GitHub Action

RSpec passing

👉 If you'd like to use this Action without having to add any files to your repository, consider the Typo CI GitHub App 👈

Installation

Copy add the following to .github/workflows/spellcheck.yml:

# Add to: .github/workflows/spellcheck.yml
name: Typo CI

on:
  push:
    branches-ignore:
      - master
jobs:
  spellcheck:
    name: Typo CI (GitHub Action)
    runs-on: ubuntu-latest
    timeout-minutes: 4
    if: "!contains(github.event.head_commit.message, '[ci skip]')"
    steps:
    - name: TypoCheck
      uses: typoci/spellcheck-action@master
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Configuration

You can tweak how Typo CI analyses your code by adding a .typo-ci.yml file to the root of your repository (You can also add it within your .github folder). Here is a sample file:

# This is a sample .typo-ci.yml file, it's used to configure how Typo CI will behave.
# Add it to the root of your project and push it to github.
---

# What language dictionaries should it use? By default Typo CI will select 'en' & 'en_GB'
# Currently Typo CI supports:
# de
# en
# en_GB
# es
# fr
# it
# nl
# pt
# pt_BR
# tr
dictionaries:
  - en
  - en_GB

# Any files/folders we should ignore?
excluded_files:
  - "vendor/**/*"
  - "node_modules/**/*"
  - "*.key"
  - "*.enc"
  - "*.min.css"
  - "*.css.map"
  - "*.min.js"
  - "*.js.map"
  - "*.mk"
  - "package-lock.json"
  - "yarn.lock"
  - "Gemfile.lock"
  - ".typo-ci.yml"
  - ".github/.typo-ci.yml"

# Any words we should ignore?
excluded_words:
  - typoci

# Would you like filenames to also be spellchecked?
spellcheck_filenames: true

Dictionaries

Development Languages

To help the spell checker detect words that are valid in the programming world, I've created a collection of language specific dictionaries which are stored in db/dict/contextual.

These are pragmatically generated by analysing open source projects.

Spoken Language Dictionaries

The en, en_GB & pt_BR dictionaries were built from https://github.com/en-wl/wordlist and they are stored in db/dict/imported.

Other languages have been imported via NPM from wooorm/dictionaries.

Testing

  • Run docker-compose run --rm web bin/setup & docker-compose run --rm web rspec.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].