Skip to content

Commit

Permalink
add encoding rule (Pablissimo#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanFAURE committed Jul 10, 2017
1 parent 18ba6ad commit 6540012
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion samples/basic-setup/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"check-operator",
"check-separator",
"check-type"
]
],
"encoding": true
}
}
3 changes: 2 additions & 1 deletion samples/using-existing-tslint-output/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"check-operator",
"check-separator",
"check-type"
]
],
"encoding": true
}
}
6 changes: 6 additions & 0 deletions src/main/resources/tslint/tslint-rules.properties
Original file line number Diff line number Diff line change
Expand Up @@ -754,3 +754,9 @@ whitespace.name=Inappropriate whitespace between tokens
whitespace.severity=MINOR
whitespace.debtFunc=CONSTANT_ISSUE
whitespace.debtScalar=5min
encoding=true
encoding.name=Enforces UTF-8 file encoding
encoding.severity=MINOR
encoding.debtFunc=CONSTANT_ISSUE
encoding.debtScalar=1min
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public void setUp() throws Exception {
"completed-docs",
"curly",
"cyclomatic-complexity",
"encoding"
"eofline",
"file-header",
"forin",
Expand Down

0 comments on commit 6540012

Please sign in to comment.