-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Generic LineEndings sniff replaces tabs with spaces with --tab-width is set #1095
Labels
Comments
The problem was actually the fixing of the line endings:
|
gsherwood
changed the title
Spaces not replaced with tabs after fix from PEAR.Functions.FunctionCallSignature.Indent
Generic LineEndings sniff replaces tabs with spaces with --tab-width is set
Aug 1, 2016
Fixed now. Thanks for reporting it. |
Forgot to say thanks for the clear bug report. Made it really easy to replicate and track down. |
You are welcome. Thanks for the fix. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Spaces not replaced with tabs after fix from
PEAR.Functions.FunctionCallSignature.Indent
while usingGeneric.WhiteSpace.DisallowSpaceIndent
and<arg name="tab-width" value="4"/>
Running PHP_CodeSniffer version 2.6.2 (stable)
Possibly related to similar issues reported in #1056
I have a ruleset.xml subset that I can consistently reproduce this issue with
NOTE: the tested file must also have
End of line character is invalid; expected "\n" but found "\r\n"
error (my eolChar error is on line 1)I'm testing against Joomla administrator\components\com_categories\models\categories.php and getting
297 | ERROR | [x] Multi-line function call not indented correctly; expected 8 spaces but found 12 (PEAR.Functions.FunctionCallSignature.Indent)
after the fix is applied I get spaces not tabs (the Generic.Files.LineEndings is required to reproduce)
The text was updated successfully, but these errors were encountered: