-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: how to check for non-mixed tab or space indentation with wtf ? #20
Comments
Not sure that I understand. Can you give an example of text files which are/aren't matching this kind of condition? |
I'm using wtf to do checks on a C/C++ -source tree. |
Do these options not cover what you're trying to do?
Warn-only:
Replace tabs with 4 spaces:
|
Ah - I failed to understand that the -x option could be used for the scenario that I described above. From the help/description I got the impression that it was only meant for changing files - and as I only wanted to check/detect if a condition was present without changing the files - I wrote off that option from the beginning. Thanks for your swift response and help 👍 - I'm closing this issue right away :-) |
Sorry for reopening this issue As mentioned earlier - I'm now able to get WTF to do what I needed. But I think that there is some inconsistency in the reporting of what WTF have done or seen Background: As mentioned earlier - I'm validating a C/C++ source tree where only space is allowed in the indentation - not tabs In the case of mixed indentation WTF (with option -S) already reports a warning of every line (number) that is found - that is perfect for my use case :-) Running WTF with options "-0 -S -x 1" enables me to also detect lines that have only (non-mixed) tab indentation. Now I know that raising the verbose level to >= 2 (-vv) will somewhat fix this. I do realize that this is a special corner case - but I find WTF super flexible in every other way - except for this little "issue" that I've found PS: I've made a fix/patch for this "issue" - are you interested in pull requests ? :-) |
Yep! |
PR #21 created :-) |
Is there a way to make wtf check for specific non-mixed tab or space indentation ?
The text was updated successfully, but these errors were encountered: