Git Product home page Git Product logo

vlajos / misspell-fixer Goto Github PK

View Code? Open in Web Editor NEW
191.0 9.0 24.0 502 KB

Simple tool for fixing common misspellings, typos in source code

Home Page: https://github.com/vlajos/misspell-fixer

License: Other

Makefile 0.27% Perl 0.13% Shell 5.18% sed 94.35% Dockerfile 0.06%
common-misspellings misspell-fixer typo spelling-correction spell-checker spellcheck spell-check spelling-checker spelling-corrector linter

misspell-fixer's People

Contributors

alexbudmsft avatar alexesprit avatar biogeek avatar edwardbetts avatar glensc avatar homebysix avatar jashua212 avatar jsoref avatar jwilk avatar ka7 avatar moisseev avatar ojwb avatar sanvila avatar sobolevn avatar srinivas32 avatar szepeviktor avatar tony avatar vlajos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

misspell-fixer's Issues

Option to ignore gitignored files

I love the project, thanks a lot! I just ran it on one of my projects and saw some Permission denied errors for temporary, gitignored cache files.

As I don't really care for typos in files that aren't part of my repository, it'd be great to have a flag to just ignore them.

Feature request: Split words by CamelCase

This mostly identical to #34. The current script implementations seems to skip such strings. But a typo can be hidden in the middle of the SomeBigCamelCaseStrng and nobody can ever notice that :)

Allow specifying a custom path for .misspell-fixer.ignore

We are running misspell-fixer as part of a Github Action. As such, I'd like to keep all configuration for these actions within our .github folder, and specify a path of .github/.misspell-fixer.ignore for the ignore file. Reading the documentation (and after a cursory look at the source code), it doesn't seem possible to specify a different location for this file. I'd love for there to be a command line argument to override the default path to this configuration file.

Ignore video files

We have a few small video files used for testing, in particular these are .mov and .mp4 format. The misspell-fixer changed these files. I guess that runs a risk of corrupting the files though.

Exceptions

Please consider adding an option for exceptions like .min.css and .min.js.
Köszönöm!

cp errors out on OSX

isspell_fixer: actual file: ../w3c/resource-hints//index.html
misspell_fixer: temp file: ../w3c/resource-hints//index.html.72361
cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
misspell_fixer: nothing changed
misspell_fixer: actual file: ../w3c/resource-hints//README.md
misspell_fixer: temp file: ../w3c/resource-hints//README.md.72367
cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
misspell_fixer: nothing changed
misspell_fixer: Done.

Blame old (default) bash, but.. still, would be nice if it worked :)

Feature request: Split words by "_" (MY_CONSTNT -> MY CONSTNT)

Right now script seems to miss checks for the strings like My_Sting_With_Underscore.

It would be a great addition (especially when you want to check the code base for misprints) to the current implementation if such strings could be detected and split and then concatenated back :)

Thanks!

"locla"

I usually type locla.
Could we add loclalocal?

Preserve CRLF eol

I run misspell_fixer.sh on Win32 using either MinGW or Cygwin environment. It would be nice if CRLF line endings are preserved (and not changed to LF automatically). What I do now is to run unix2dos for every changed file afterwards.

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.