|
| 1 | +# Snapshot report for `demo/test/lint-output.js` |
| 2 | + |
| 3 | +The actual snapshot is saved in `lint-output.js.snap`. |
| 4 | + |
| 5 | +Generated by [AVA](https://ava.li). |
| 6 | + |
| 7 | +## Should have consistent rule output |
| 8 | + |
| 9 | +> Snapshot 1 |
| 10 | +
|
| 11 | + `␊ |
| 12 | + example.js␊ |
| 13 | + 6:0 warning Inline eslint-disable found bestpractices/no-eslint-disable␊ |
| 14 | + 8:1 warning Unexpected 'FIXME' comment no-warning-comments␊ |
| 15 | + 9:1 warning Unexpected 'TODO' comment no-warning-comments␊ |
| 16 | + 10:1 warning Unexpected 'HACK' comment no-warning-comments␊ |
| 17 | + 11:1 warning Unexpected 'HERE BE DRAGONS' comment no-warning-comments␊ |
| 18 | + 21:1 warning Missing JSDoc @description declaration jsdoc/require-description␊ |
| 19 | + 21:1 warning JSDoc @returns declaration present but return expression not available in function jsdoc/require-returns-check␊ |
| 20 | + 21:1 warning JSDoc syntax error valid-jsdoc␊ |
| 21 | + 23:0 warning Expected @param names to be "params". Got "a, b" jsdoc/check-param-names␊ |
| 22 | + 23:0 warning Missing JSDoc @param "a" description jsdoc/require-param-description␊ |
| 23 | + 24:0 warning Missing JSDoc @param "b" type jsdoc/require-param-type␊ |
| 24 | + 24:0 warning Missing JSDoc @param "b" description jsdoc/require-param-description␊ |
| 25 | + 25:0 warning Missing JSDoc @returns type jsdoc/require-returns-type␊ |
| 26 | + 25:0 warning Missing JSDoc @returns description jsdoc/require-returns-description␊ |
| 27 | + 30:5 error 'variable' is assigned a value but never used no-unused-vars␊ |
| 28 | + 30:16 error This conditional operation returns the same value whether the condition is "true" or "false" sonarjs/no-all-duplicated-branches␊ |
| 29 | + 30:17 error Unexpected constant condition no-constant-condition␊ |
| 30 | + 30:25 error Unnecessary use of boolean literals in conditional expression no-unneeded-ternary␊ |
| 31 | + 32:5 error Correct one of the identical sub-expressions on both sides of operator "&&" sonarjs/no-identical-expressions␊ |
| 32 | + 32:16 warning Unexpected use of undefined no-undefined␊ |
| 33 | + 32:40 warning Unexpected use of undefined no-undefined␊ |
| 34 | + 33:3 error This function expects 1 argument, but 2 were provided sonarjs/no-extra-arguments␊ |
| 35 | + 34:28 error Module path/to/legacyModule is deprecated. Use module x instead deprecate/import␊ |
| 36 | + 36:3 error Function deprecatedFunction is deprecated. Use function x from package y instead deprecate/function␊ |
| 37 | + 36:3 error 'deprecatedFunction' is not defined no-undef␊ |
| 38 | + 37:3 error '$' is not defined no-undef␊ |
| 39 | + 37:3 error Member expression $.each is deprecated. Use native forEach instead deprecate/member-expression␊ |
| 40 | + 38:3 error Unexpected 'debugger' statement no-debugger␊ |
| 41 | + ␊ |
| 42 | + example.json␊ |
| 43 | + 4:5 error Property keys must be doublequoted json/undefined␊ |
| 44 | + 4:13 error Value expected json/valueexpected␊ |
| 45 | + 5:11 error Colon expected json/colonexpected␊ |
| 46 | + 6:5 error Expected comma json/commaexpected␊ |
| 47 | + 5:5 warning Duplicate object key json/duplicatekey␊ |
| 48 | + 6:19 error Trailing comma json/trailingcomma␊ |
| 49 | + 8:2 error End of file expected json/undefined␊ |
| 50 | + ␊ |
| 51 | + ✖ 35 problems (18 errors, 17 warnings)␊ |
| 52 | + ` |
0 commit comments