Skip to content

Commit c94019d

Browse files
committed
tabs -> spaces
1 parent 930108c commit c94019d

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed
8 KB
Binary file not shown.

lib/checkstyle_output_token.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ def initialize(token_data)
1111
end
1212

1313
def to_suppression
14-
"\t<suppress checks=\"#{offense}\" files=\"#{file_name}\"/>"
14+
" <suppress checks=\"#{offense}\" files=\"#{file_name}\"/>"
1515
end
1616
end

test/checkstyle_output_token_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ def test_initialize
1010
assert_equal 'WARNING', token.severity
1111
assert_equal 'file.java', token.file_name
1212
assert_equal 'WhitespaceAround', token.offense
13-
assert_equal "\t<suppress checks=\"WhitespaceAround\" files=\"file.java\"/>", token.to_suppression
13+
assert_equal " <suppress checks=\"WhitespaceAround\" files=\"file.java\"/>", token.to_suppression
1414
end
1515
end

test/suppression_generator_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ def test_generate
2121

2222
expected_result =
2323
"<?xml version=\"1.0\"?>\n<!DOCTYPE suppressions PUBLIC \"-//Checkstyle//DTD SuppressionFilter" \
24-
" Configuration 1.2//EN\"\n \"https://checkstyle.org/dtds/suppressions_1_2.dtd\">\n\n<suppressions>\n\n\t" \
25-
"<suppress checks=\"OverloadMethodsDeclarationOrder\" files=\"src/main/java/com/test/DEF.java\"/>\n\t<suppress" \
26-
" checks=\"ParameterNumber\" files=\"src/main/java/com/test/ABC.java\"/>\n\t<suppress checks=\"ReturnCount\" " \
27-
"files=\"src/main/java/com/test/ABC.java\"/>\n\t<suppress checks=\"NPathComplexity\" files=\"src/main/java/com" \
24+
" Configuration 1.2//EN\"\n \"https://checkstyle.org/dtds/suppressions_1_2.dtd\">\n\n<suppressions>\n\n " \
25+
"<suppress checks=\"OverloadMethodsDeclarationOrder\" files=\"src/main/java/com/test/DEF.java\"/>\n <suppress" \
26+
" checks=\"ParameterNumber\" files=\"src/main/java/com/test/ABC.java\"/>\n <suppress checks=\"ReturnCount\" " \
27+
"files=\"src/main/java/com/test/ABC.java\"/>\n <suppress checks=\"NPathComplexity\" files=\"src/main/java/com" \
2828
"/test/ABC.java\"/>\n\n</suppressions>\n"
2929
File.expects(:write).with(@suppressions_file_name, expected_result)
3030

test/suppressions_populator_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ def test_populate
2020
2121
<suppressions>
2222
23-
\t<suppress checks="Offense1" files="file1.java"/>
24-
\t<suppress checks="Offense2" files="file2.java"/>
25-
\t<suppress checks="Offense3" files="file3.java"/>
23+
<suppress checks="Offense1" files="file1.java"/>
24+
<suppress checks="Offense2" files="file2.java"/>
25+
<suppress checks="Offense3" files="file3.java"/>
2626
2727
</suppressions>
2828
EXPECTED_RESULT

0 commit comments

Comments
 (0)