jednano / eclint

Validate or fix code that doesn't adhere to EditorConfig settings or infer settings from existing code.
MIT License
305 stars 28 forks source link

Recursive path fails if no extension is provided #41

Closed carlosasj closed 8 years ago

carlosasj commented 8 years ago

I have a Django Project with all sort of files, and I want to check all my files especially for end_of_line. If i run eclint check **/*.html so it find all my html files in all paths (no matter how depth it is), but I can't figure out how to check all files, without have to specify the extension.

For example:

Run things like eclint check **/*.* have same results as above.

What am I doing wrong?


.editorconfig

# http://editorconfig.org

root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true

[*.py]
indent_style = space
indent_size = 4

[*.{html,js}]
indent_style = tab

[*.{yml,scss}]
indent_style = space
indent_size = 2
$ eclint -v
1.1.5
$ npm -v
3.8.7
$ node -v
v5.11.0
jednano commented 8 years ago

I think you want eclint check **. Does that work for you?

carlosasj commented 8 years ago

@jedmao I forgot to include that example: if I run eclint check ** it (also) only checks my root folder

jednano commented 8 years ago

Well, eclint just uses glob syntax, so whatever works for that. Oh! You might want to try wrapping your globs in quotes though! eclint check "**".

carlosasj commented 8 years ago

THAT'S IT!!! I didn't tried with quotes, and it worked!!! Thanks for your time! :smile:

jednano commented 8 years ago

@carlosasj I'm curious. Are you running Bash on Windows? What's your OS? I have to use quotes on Windows, but I'm wondering about other operating systems.

carlosasj commented 8 years ago

No, I tried on Manjaro 15 and Ubuntu 15, both with same results (same fails with the tests of the first post, and with success with your last suggestion).