wagenrace / happy-kostadin

Check for CRLF and LF endings in your code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Happy Kostadin

If you have files with CRLF line endings it can create problems.

Install

pip install happy-kostadin

Using

Happy_kostadin is a CLI tool. Navigate to the project you want to check and run the following:

happy_kostadin

If you want to specify a path you can use the -p flag.

happy_kostadin -p your\path\here

Select what files to include

happy_kostadin uses the pyproject.toml in the folder it ran from. If in there there is the following it will only look for files ending the allowed post-fixes.

[tool.happy_kostadin]
allowed-post-fixes = [
  ".py",
  ".md",
  ".gitignore",
]

If this not present all files will scanned.

Credits

  • Tom Nijhof

About

Check for CRLF and LF endings in your code

License:Apache License 2.0


Languages

Language:Python 99.2%Language:Shell 0.8%