- Notifications
You must be signed in to change notification settings - Fork5
Experimental: Tools for verifying/fixing code style based on EditorConfig file (not completed yet)
License
NotificationsYou must be signed in to change notification settings
treyhunner/editorconfig-tools
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
- Create tool to infer format for
.editorconfig
file from current code - Create tool to validate current code from existing
.editorconfig
files - Create tool to fix style errors in code from existing
.editorconfig
files
Here is an example of the command-line API we want to support:
$ cat .editorconfig[*]indent_style = spaceindent_size = 4$ check_editorconfig test/lf_*.txttests/lf_invalid_crlf.txt: Incorrect line ending found: crlftests/lf_invalid_crlf.txt: No final newline foundtests/lf_invalid_cr.txt: Incorrect line ending found: cr$ check_editorconfig --generate *[*]indent_style = spaceindent_size = 4end_of_line = lfcharset = utf-8insert_final_newline = truetrim_trailing_whitespace = true[Makefile]indent_style = tabindent_size = tab$ check_editorconfig --fix *Makefile: Converted tabs to spaces$ check_editorconfig *
This project is not yet completed. Feel free to play with the existing code,but don't expect it to work well (or at all) yet.
Tox is used to run tests with supported Python interpreters and measure codecoverage. To install tox:
pip install tox
To run tests using tox:
tox
About
Experimental: Tools for verifying/fixing code style based on EditorConfig file (not completed yet)
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.