fda1062195
Adds a few files that should be skipped to the .jscsrc, since they are beyond our control (external libs, generated coverage reports etc.) This also reduces the error count to around 2k Closes-Bug: 1463791 Change-Id: Iac87e41edd797c2a8318dcaceefe0651bd22dd61
59 lines
1.4 KiB
Plaintext
59 lines
1.4 KiB
Plaintext
{
|
|
"excludeFiles": [
|
|
".venv/**",
|
|
"bower_components/**",
|
|
"horizon/.coverage-karma/**",
|
|
"lib/**",
|
|
"node_modules/**",
|
|
"openstack_dashboard/.coverage-karma/**"
|
|
],
|
|
"requireCurlyBraces": [
|
|
"if",
|
|
"else",
|
|
"for",
|
|
"while",
|
|
"do",
|
|
"try",
|
|
"catch"
|
|
],
|
|
"requireOperatorBeforeLineBreak": true,
|
|
"requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties",
|
|
"maximumLineLength": {
|
|
"value": 100,
|
|
"allowComments": true,
|
|
"allowRegex": true
|
|
},
|
|
"validateIndentation": 2,
|
|
"disallowMultipleLineStrings": true,
|
|
"disallowMixedSpacesAndTabs": true,
|
|
"disallowTrailingWhitespace": true,
|
|
"disallowSpaceAfterPrefixUnaryOperators": true,
|
|
"disallowMultipleVarDecl": "exceptUndefined",
|
|
"requireSpaceAfterKeywords": [
|
|
"if",
|
|
"else",
|
|
"for",
|
|
"while",
|
|
"do",
|
|
"switch",
|
|
"return",
|
|
"try",
|
|
"catch"
|
|
],
|
|
"requireSpaceBeforeBinaryOperators": [
|
|
"=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=",
|
|
"&=", "|=", "^=", "+=",
|
|
|
|
"+", "-", "*", "/", "%", "<<", ">>", ">>>", "&",
|
|
"|", "^", "&&", "||", "===", "==", ">=",
|
|
"<=", "<", ">", "!=", "!=="
|
|
],
|
|
"requireSpaceAfterBinaryOperators": true,
|
|
"requireSpacesInConditionalExpression": true,
|
|
"requireSpaceBeforeBlockStatements": true,
|
|
"requireLineFeedAtFileEnd": true,
|
|
"disallowMultipleLineBreaks": true,
|
|
"disallowTrailingComma": true,
|
|
"requireParenthesesAroundIIFE": true
|
|
}
|