Giter Site home page Giter Site logo

sharma-it / spell-checker-for-ci-cd Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 24 KB

A simple spell checking CI job that uses Codespell to check for common spelling mistakes in your code and other text files. This tool is particularly useful for monorepo projects and can be easily integrated with GitHub Actions or adapted to other CI/CD pipelines.

Home Page: https://github.com/codespell-project/actions-codespell

Shell 100.00%
cicd continuous-deployment continuous-integration spellcheck spellchecker

spell-checker-for-ci-cd's Introduction

Spell Checker for CI/CD

This project provides a simple way to set up a spell checking CI job for your project or application. It uses codespell to check for common spelling mistakes in your code and other text files. https://github.com/codespell-project/actions-codespell does exist, however this projects provides a more comprehensive way to use Codespell as a CI check, as it also includes a way to, and documents how to set-up and run Codespell locally, as you'll need to do so to automatically write changes that Codespell recommends. You may also want to opt to integrate a spell checking dependency such as cspell with eslint, but even that has it's limitations such as not being able to scan markdown files.

Dependencies

  • Python - high-level, general-purpose programming language
  • pnpm - Fast, disk space efficient package manager. Can be installed with either npm or yarn
  • codespell - Spell checker for source code. Has to be installed with pip

Usage

This project is built for a monorepo structure and uses a GitHub Action for running the checks. However, it can be adapted to other development styles and repository structures.

Setup

  1. Move all the files and scripts in this repository to the repository of your project.
  2. For further instructions, refer to tooling/codespell/docs/usage.md.

This will set up a GitHub Action that runs the spell checker on every push and pull request. The action will check all files in your repository, excluding certain directories and file types specified in the respective script and words in the ignore-these-words.txt.

Contributing

If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

spell-checker-for-ci-cd's People

Contributors

sharma-it avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.