Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Repository files navigation

https://secure.travis-ci.org/treyhunner/editorconfig-tools.png?branch=masterhttps://coveralls.io/repos/treyhunner/editorconfig-tools/badge.png?branch=master

Goals of this project

  • 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

Examples

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 *

Project Status

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.

Running Tests

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

Related Projects

About

Experimental: Tools for verifying/fixing code style based on EditorConfig file (not completed yet)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp