-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #271 from usethesource/fix/whitespace
Normalize whitespace
- Loading branch information
Showing
230 changed files
with
24,876 additions
and
24,762 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
max_line_length = 80 | ||
|
||
[*.sh] | ||
end_of_line = lf | ||
|
||
[*.java] | ||
indent_size = 4 | ||
max_line_length = 120 | ||
|
||
|
||
[*.yaml] | ||
indent_size = 2 | ||
|
||
[*.yml] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Run this command to always ignore formatting commits in `git blame` | ||
# git config blame.ignoreRevsFile .git-blame-ignore-revs | ||
|
||
# replaced tabs with spaces | ||
8efd5a7227658bbcc5b46ba647d15edf42dc0302 | ||
|
||
# removed trailing whitespace | ||
63917fec5f518cd66ebbf56903d5167ac1c815ab | ||
|
||
# normalize indentation | ||
4ca06f1346d13d6e275d891de918cc6bae85c3d8 | ||
f3301743a5e4ca39b415e4f1fa32c66a39ef37b5 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE module PUBLIC | ||
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" | ||
"https://checkstyle.org/dtds/configuration_1_3.dtd"> | ||
<module name="Checker"> | ||
<!-- this checker only defines the things we really do not want, not all the warnings that checkstyle would also allow --> | ||
<module name="SuppressWarningsFilter"/> | ||
<property name="charset" value="UTF-8"/> | ||
<property name="severity" value="error"/> | ||
<property name="fileExtensions" value="java, properties, rsc, xml"/> | ||
|
||
<!-- allow suppression of errors for certain files --> | ||
<module name="SuppressionFilter"> | ||
<property name="file" value="checkstyle-suppressions.xml" /> | ||
<property name="optional" value="true"/> | ||
</module> | ||
|
||
|
||
<!-- Whitespace --> | ||
<module name="FileTabCharacter"> <!-- no tabs --> | ||
<property name="eachLine" value="true"/> | ||
</module> | ||
<module name="RegexpSingleline"> | ||
<property name="format" value="[^\s]\s+$"/> <!-- we only care about statements with trailing whitespace, empty lines with some whitespace we're not gointg to be picky about --> | ||
|
||
<property name="message" value="Remove trailing whitespace" /> | ||
<property name="fileExtensions" value="xml, java, rsc"/> | ||
</module> | ||
|
||
<!-- java style things --> | ||
<module name="TreeWalker"> | ||
<module name="OuterTypeFilename"/> <!-- make sure the name of the file is the same as the class --> | ||
<module name="AvoidEscapedUnicodeCharacters"> | ||
<!-- avoid escapes of unicode chars where we can just write the unicode char in a string --> | ||
<property name="allowEscapesForControlCharacters" value="true"/> | ||
<property name="allowByTailComment" value="true"/> | ||
<property name="allowNonPrintableEscapes" value="true"/> | ||
</module> | ||
<module name="NeedBraces"> <!-- make sure that {} are always required, also for single line statements --> | ||
<property name="tokens" value="LITERAL_DO, LITERAL_ELSE, LITERAL_FOR, LITERAL_IF, LITERAL_WHILE"/> | ||
</module> | ||
<module name="OneStatementPerLine"/> | ||
<module name="FallThrough"/> <!-- can be relieved by explicitly adding a comment that mentions fall[s]?through--> | ||
<module name="ModifierOrder"/> | ||
<module name="NoFinalizer"/> | ||
|
||
<module name="Indentation"> <!-- make sure indents happen at a predictable pattern--> | ||
<property name="basicOffset" value="4"/> | ||
<property name="braceAdjustment" value="4"/> | ||
<property name="caseIndent" value="4"/> | ||
<property name="throwsIndent" value="4"/> | ||
<property name="lineWrappingIndentation" value="4"/> | ||
<property name="arrayInitIndent" value="4"/> | ||
</module> | ||
|
||
</module> | ||
|
||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.