aboutsummaryrefslogtreecommitdiffstats
path: root/.jscs.json.todo
diff options
context:
space:
mode:
authorIgor Minar2014-01-30 10:51:10 -0800
committerIgor Minar2014-01-30 11:39:53 -0800
commit7f4edaff6e50bdfc524e7dc70ed96663fd7dcea2 (patch)
treefe2be224551a6554c18a7f496a9e348ad983de70 /.jscs.json.todo
parent6dcfccb32c79019f16a2c97ad50cbcc81f61095c (diff)
downloadangular.js-7f4edaff6e50bdfc524e7dc70ed96663fd7dcea2.tar.bz2
chore(build): add jscs code style check to our build
Closes #6062
Diffstat (limited to '.jscs.json.todo')
-rw-r--r--.jscs.json.todo22
1 files changed, 22 insertions, 0 deletions
diff --git a/.jscs.json.todo b/.jscs.json.todo
new file mode 100644
index 00000000..6f6f0416
--- /dev/null
+++ b/.jscs.json.todo
@@ -0,0 +1,22 @@
+// This is an incomplete TODO list of checks we want to start enforcing
+//
+// The goal is to enable these checks one by one by moving them to .jscs.json along with commits
+// that correct the existing code base issues and make the new check pass.
+
+{
+ "requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
+ "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
+ "disallowLeftStickedOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
+ "disallowRightStickedOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
+ "requireRightStickedOperators": ["!"],
+ "requireLeftStickedOperators": [","],
+ "disallowImplicitTypeConversion": ["string"],
+ "disallowMultipleLineBreaks": true,
+ "disallowKeywordsOnNewLine": ["else"],
+ "disallowTrailingWhitespace": true,
+ "requireLineFeedAtFileEnd": true,
+ "validateJSDoc": {
+ "checkParamNames": true,
+ "requireParamTypes": true
+ }
+}