Skip to content

Instantly share code, notes, and snippets.

@lijunle
Last active September 21, 2015 12:58
Show Gist options
  • Save lijunle/a11fe2ecc0d8ae4f6ac1 to your computer and use it in GitHub Desktop.
Save lijunle/a11fe2ecc0d8ae4f6ac1 to your computer and use it in GitHub Desktop.
ESLint Result
var fs = require('fs');
fs.readFile('./eslint-result.json', {encoding: 'utf-8'}, function (error, data) {
var fileList = JSON.parse(data);
var violations = {};
var total = 0;
fileList.forEach(function (file) {
var filePath = file.filePath;
file.messages.forEach(function (message) {
var ruleId = message.ruleId;
var msg = message.message;
var key = ruleId + ': ' + msg;
violations[key] = violations[key] || [];
violations[key].push({
filePath: filePath,
line: message.line,
column: message.column
});
total++;
});
});
var keys = Object.keys(violations).sort();
console.log('Total violated rules: ' + keys.length + ', places: ' + total);
console.log();
keys.forEach(function (key) {
if (process.argv[2] === 'full') {
console.log('### ' + key);
console.log();
violations[key].forEach(function (violation, index) {
var idx = index + 1;
console.log(idx + '. ' + violation.filePath + '\t' + violation.line + ':' + violation.column);
});
console.log();
} else {
console.log('- [ ] ' + key + ' (' + violations[key].length + ')');
}
});
});

Total violated rules: 34, places: 265

comma-dangle: Missing trailing comma.

  1. /home/ubuntu/workspace/depcheck-es6/src/cli.js 47:53
  2. /home/ubuntu/workspace/depcheck-es6/src/index.js 109:33
  3. /home/ubuntu/workspace/depcheck-es6/src/index.js 117:17
  4. /home/ubuntu/workspace/depcheck-es6/src/index.js 135:25
  5. /home/ubuntu/workspace/depcheck-es6/test/index.js 165:30
  6. /home/ubuntu/workspace/depcheck-es6/test/index.js 166:10
  7. /home/ubuntu/workspace/depcheck-es6/test/index.js 167:8

comma-spacing: There should be no space before ','.

  1. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 10:14
  2. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 10:14

func-names: Missing function expression name.

  1. /home/ubuntu/workspace/depcheck-es6/src/cli.js 27:25
  2. /home/ubuntu/workspace/depcheck-es6/src/cli.js 29:57
  3. /home/ubuntu/workspace/depcheck-es6/src/cli.js 48:6
  4. /home/ubuntu/workspace/depcheck-es6/src/cli.js 60:37
  5. /home/ubuntu/workspace/depcheck-es6/src/cli.js 67:40
  6. /home/ubuntu/workspace/depcheck-es6/src/index.js 42:26
  7. /home/ubuntu/workspace/depcheck-es6/src/index.js 67:26
  8. /home/ubuntu/workspace/depcheck-es6/src/index.js 75:21
  9. /home/ubuntu/workspace/depcheck-es6/src/index.js 81:47
  10. /home/ubuntu/workspace/depcheck-es6/src/index.js 90:20
  11. /home/ubuntu/workspace/depcheck-es6/src/index.js 91:59
  12. /home/ubuntu/workspace/depcheck-es6/src/index.js 93:32
  13. /home/ubuntu/workspace/depcheck-es6/src/index.js 114:22
  14. /home/ubuntu/workspace/depcheck-es6/src/index.js 143:41
  15. /home/ubuntu/workspace/depcheck-es6/test/index.js 21:10
  16. /home/ubuntu/workspace/depcheck-es6/test/index.js 27:22

indent: Expected indentation of 2 space characters but found 4.

  1. /home/ubuntu/workspace/depcheck-es6/src/index.js 136:5

indent: Expected indentation of 4 space characters but found 6.

  1. /home/ubuntu/workspace/depcheck-es6/src/index.js 130:7
  2. /home/ubuntu/workspace/depcheck-es6/src/index.js 131:7
  3. /home/ubuntu/workspace/depcheck-es6/src/index.js 132:7
  4. /home/ubuntu/workspace/depcheck-es6/src/index.js 133:7
  5. /home/ubuntu/workspace/depcheck-es6/src/index.js 134:7
  6. /home/ubuntu/workspace/depcheck-es6/src/index.js 135:7

no-console: Unexpected console statement.

  1. /home/ubuntu/workspace/depcheck-es6/src/cli.js 17:3
  2. /home/ubuntu/workspace/depcheck-es6/src/cli.js 33:9
  3. /home/ubuntu/workspace/depcheck-es6/src/cli.js 39:5
  4. /home/ubuntu/workspace/depcheck-es6/src/cli.js 50:7
  5. /home/ubuntu/workspace/depcheck-es6/src/cli.js 55:7
  6. /home/ubuntu/workspace/depcheck-es6/src/cli.js 59:9
  7. /home/ubuntu/workspace/depcheck-es6/src/cli.js 61:11
  8. /home/ubuntu/workspace/depcheck-es6/src/cli.js 65:9
  9. /home/ubuntu/workspace/depcheck-es6/src/cli.js 66:9
  10. /home/ubuntu/workspace/depcheck-es6/src/cli.js 68:11
  11. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad/index.js 1:1
  12. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bin_js/index.js 1:1
  13. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/empty_dep/index.js 1:1

no-empty: Empty block statement.

  1. /home/ubuntu/workspace/depcheck-es6/src/index.js 152:17

no-param-reassign: Assignment to function parameter 'deps'.

  1. /home/ubuntu/workspace/depcheck-es6/src/index.js 84:9
  2. /home/ubuntu/workspace/depcheck-es6/src/index.js 96:11

no-param-reassign: Assignment to function parameter 'devDeps'.

  1. /home/ubuntu/workspace/depcheck-es6/src/index.js 85:9
  2. /home/ubuntu/workspace/depcheck-es6/src/index.js 97:11

no-shadow: path is already declared in the upper scope.

  1. /home/ubuntu/workspace/depcheck-es6/src/index.js 99:15
  2. /home/ubuntu/workspace/depcheck-es6/src/index.js 114:32

no-unused-vars: "a" is defined but never used

  1. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 11:10
  2. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 11:10

no-unused-vars: "bar" is defined but never used

  1. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 10:16
  2. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 10:16

no-unused-vars: "barfoo" is defined but never used

  1. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 9:20
  2. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 9:20

no-unused-vars: "c" is defined but never used

  1. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 11:18
  2. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 11:18

no-unused-vars: "d" is defined but never used

  1. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 12:8
  2. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 12:8

no-unused-vars: "e" is defined but never used

  1. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 12:13
  2. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 12:13

no-unused-vars: "foo" is defined but never used

  1. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 10:10
  2. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 10:10

no-unused-vars: "h" is defined but never used

  1. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 13:8
  2. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 13:8

no-unused-vars: "i" is defined but never used

  1. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 13:16
  2. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 13:16

no-unused-vars: "j" is defined but never used

  1. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 14:8
  2. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 14:8

no-unused-vars: "member" is defined but never used

  1. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 8:10
  2. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 8:10

no-unused-vars: "name" is defined but never used

  1. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 6:8
  2. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 6:8

no-unused-vars: "optimist" is defined but never used

  1. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/dev/index.js 1:5
  2. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good/index.js 1:5

no-unused-vars: "pkg" is defined but never used

  1. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/nested/index.js 1:5

no-unused-vars: "star" is defined but never used

  1. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 7:13
  2. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 7:13

no-use-before-define: filterDependencies was used before it was defined

  1. /home/ubuntu/workspace/depcheck-es6/src/index.js 127:14
  2. /home/ubuntu/workspace/depcheck-es6/src/index.js 128:17

no-use-before-define: run was used before it was defined

  1. /home/ubuntu/workspace/depcheck-es6/src/cli.js 31:9

no-var: Unexpected var, use let or const instead.

  1. /home/ubuntu/workspace/depcheck-es6/src/cli.js 5:1
  2. /home/ubuntu/workspace/depcheck-es6/src/cli.js 14:1
  3. /home/ubuntu/workspace/depcheck-es6/src/cli.js 21:1
  4. /home/ubuntu/workspace/depcheck-es6/src/cli.js 22:1
  5. /home/ubuntu/workspace/depcheck-es6/src/cli.js 23:1
  6. /home/ubuntu/workspace/depcheck-es6/src/cli.js 24:1
  7. /home/ubuntu/workspace/depcheck-es6/src/cli.js 25:1
  8. /home/ubuntu/workspace/depcheck-es6/src/index.js 17:3
  9. /home/ubuntu/workspace/depcheck-es6/src/index.js 23:3
  10. /home/ubuntu/workspace/depcheck-es6/src/index.js 33:3
  11. /home/ubuntu/workspace/depcheck-es6/src/index.js 38:3
  12. /home/ubuntu/workspace/depcheck-es6/src/index.js 39:3
  13. /home/ubuntu/workspace/depcheck-es6/src/index.js 57:3
  14. /home/ubuntu/workspace/depcheck-es6/src/index.js 58:3
  15. /home/ubuntu/workspace/depcheck-es6/src/index.js 59:3
  16. /home/ubuntu/workspace/depcheck-es6/src/index.js 60:3
  17. /home/ubuntu/workspace/depcheck-es6/src/index.js 61:3
  18. /home/ubuntu/workspace/depcheck-es6/src/index.js 77:7
  19. /home/ubuntu/workspace/depcheck-es6/src/index.js 99:11
  20. /home/ubuntu/workspace/depcheck-es6/src/index.js 100:11
  21. /home/ubuntu/workspace/depcheck-es6/src/index.js 126:3
  22. /home/ubuntu/workspace/depcheck-es6/src/index.js 127:3
  23. /home/ubuntu/workspace/depcheck-es6/src/index.js 128:3
  24. /home/ubuntu/workspace/depcheck-es6/src/index.js 129:3
  25. /home/ubuntu/workspace/depcheck-es6/src/index.js 150:7
  26. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/dev/index.js 1:1
  27. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good/index.js 1:1
  28. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/nested/index.js 1:1
  29. /home/ubuntu/workspace/depcheck-es6/test/index.js 10:3
  30. /home/ubuntu/workspace/depcheck-es6/test/index.js 11:3
  31. /home/ubuntu/workspace/depcheck-es6/test/index.js 29:5
  32. /home/ubuntu/workspace/depcheck-es6/test/index.js 38:5
  33. /home/ubuntu/workspace/depcheck-es6/test/index.js 48:5
  34. /home/ubuntu/workspace/depcheck-es6/test/index.js 57:5
  35. /home/ubuntu/workspace/depcheck-es6/test/index.js 69:5
  36. /home/ubuntu/workspace/depcheck-es6/test/index.js 78:5
  37. /home/ubuntu/workspace/depcheck-es6/test/index.js 87:5
  38. /home/ubuntu/workspace/depcheck-es6/test/index.js 96:5
  39. /home/ubuntu/workspace/depcheck-es6/test/index.js 106:5
  40. /home/ubuntu/workspace/depcheck-es6/test/index.js 115:5
  41. /home/ubuntu/workspace/depcheck-es6/test/index.js 120:7
  42. /home/ubuntu/workspace/depcheck-es6/test/index.js 124:7
  43. /home/ubuntu/workspace/depcheck-es6/test/index.js 132:5
  44. /home/ubuntu/workspace/depcheck-es6/test/index.js 141:5
  45. /home/ubuntu/workspace/depcheck-es6/test/index.js 150:5
  46. /home/ubuntu/workspace/depcheck-es6/test/index.js 159:5
  47. /home/ubuntu/workspace/depcheck-es6/test/index.js 175:5
  48. /home/ubuntu/workspace/depcheck-es6/test/index.js 184:5
  49. /home/ubuntu/workspace/depcheck-es6/test/index.js 185:5
  50. /home/ubuntu/workspace/depcheck-es6/test/index.js 192:9
  51. /home/ubuntu/workspace/depcheck-es6/test/index.js 196:9
  52. /home/ubuntu/workspace/depcheck-es6/test/index.js 205:5
  53. /home/ubuntu/workspace/depcheck-es6/test/index.js 214:5

padded-blocks: Block must not be padded by blank lines.

  1. /home/ubuntu/workspace/depcheck-es6/src/index.js 91:86
  2. /home/ubuntu/workspace/depcheck-es6/src/index.js 124:41

quotes: Strings must use singlequote.

  1. /home/ubuntu/workspace/depcheck-es6/src/cli.js 46:5
  2. /home/ubuntu/workspace/depcheck-es6/src/cli.js 47:5
  3. /home/ubuntu/workspace/depcheck-es6/src/cli.js 47:39
  4. /home/ubuntu/workspace/depcheck-es6/src/cli.js 47:49
  5. /home/ubuntu/workspace/depcheck-es6/src/index.js 1:16
  6. /home/ubuntu/workspace/depcheck-es6/src/index.js 2:18
  7. /home/ubuntu/workspace/depcheck-es6/src/index.js 5:21
  8. /home/ubuntu/workspace/depcheck-es6/src/index.js 33:43
  9. /home/ubuntu/workspace/depcheck-es6/src/index.js 59:31
  10. /home/ubuntu/workspace/depcheck-es6/src/index.js 67:13
  11. /home/ubuntu/workspace/depcheck-es6/src/index.js 75:13
  12. /home/ubuntu/workspace/depcheck-es6/src/index.js 76:36
  13. /home/ubuntu/workspace/depcheck-es6/src/index.js 90:13
  14. /home/ubuntu/workspace/depcheck-es6/src/index.js 114:13
  15. /home/ubuntu/workspace/depcheck-es6/src/index.js 150:47
  16. /home/ubuntu/workspace/depcheck-es6/src/index.js 150:75
  17. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_deep/test/sandbox/index.js 1:9
  18. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 5:8
  19. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 6:18
  20. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 7:23
  21. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 8:24
  22. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 9:34
  23. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 10:27
  24. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 11:27
  25. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 12:22
  26. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 13:23
  27. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_es6/index.js 14:15
  28. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/dev/index.js 1:24
  29. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/empty_dep/index.js 1:13
  30. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 5:8
  31. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 6:18
  32. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 7:23
  33. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 8:24
  34. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 9:34
  35. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 10:27
  36. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 11:27
  37. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 12:22
  38. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 13:23
  39. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good_es6/index.js 14:15
  40. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/good/index.js 1:24
  41. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/nested/index.js 1:19
  42. /home/ubuntu/workspace/depcheck-es6/test/index.js 3:20
  43. /home/ubuntu/workspace/depcheck-es6/test/index.js 4:22
  44. /home/ubuntu/workspace/depcheck-es6/test/index.js 5:16
  45. /home/ubuntu/workspace/depcheck-es6/test/index.js 6:18
  46. /home/ubuntu/workspace/depcheck-es6/test/index.js 27:10
  47. /home/ubuntu/workspace/depcheck-es6/test/index.js 28:6
  48. /home/ubuntu/workspace/depcheck-es6/test/index.js 29:37
  49. /home/ubuntu/workspace/depcheck-es6/test/index.js 31:30
  50. /home/ubuntu/workspace/depcheck-es6/test/index.js 37:6
  51. /home/ubuntu/workspace/depcheck-es6/test/index.js 38:37
  52. /home/ubuntu/workspace/depcheck-es6/test/index.js 40:30
  53. /home/ubuntu/workspace/depcheck-es6/test/index.js 42:44
  54. /home/ubuntu/workspace/depcheck-es6/test/index.js 47:6
  55. /home/ubuntu/workspace/depcheck-es6/test/index.js 48:37
  56. /home/ubuntu/workspace/depcheck-es6/test/index.js 50:30
  57. /home/ubuntu/workspace/depcheck-es6/test/index.js 56:6
  58. /home/ubuntu/workspace/depcheck-es6/test/index.js 57:37
  59. /home/ubuntu/workspace/depcheck-es6/test/index.js 59:30
  60. /home/ubuntu/workspace/depcheck-es6/test/index.js 63:44
  61. /home/ubuntu/workspace/depcheck-es6/test/index.js 68:6
  62. /home/ubuntu/workspace/depcheck-es6/test/index.js 69:37
  63. /home/ubuntu/workspace/depcheck-es6/test/index.js 71:30
  64. /home/ubuntu/workspace/depcheck-es6/test/index.js 77:6
  65. /home/ubuntu/workspace/depcheck-es6/test/index.js 78:37
  66. /home/ubuntu/workspace/depcheck-es6/test/index.js 80:30
  67. /home/ubuntu/workspace/depcheck-es6/test/index.js 86:6
  68. /home/ubuntu/workspace/depcheck-es6/test/index.js 87:37
  69. /home/ubuntu/workspace/depcheck-es6/test/index.js 89:30
  70. /home/ubuntu/workspace/depcheck-es6/test/index.js 95:6
  71. /home/ubuntu/workspace/depcheck-es6/test/index.js 96:37
  72. /home/ubuntu/workspace/depcheck-es6/test/index.js 98:30
  73. /home/ubuntu/workspace/depcheck-es6/test/index.js 105:6
  74. /home/ubuntu/workspace/depcheck-es6/test/index.js 106:37
  75. /home/ubuntu/workspace/depcheck-es6/test/index.js 108:30
  76. /home/ubuntu/workspace/depcheck-es6/test/index.js 114:6
  77. /home/ubuntu/workspace/depcheck-es6/test/index.js 115:37
  78. /home/ubuntu/workspace/depcheck-es6/test/index.js 131:6
  79. /home/ubuntu/workspace/depcheck-es6/test/index.js 132:37
  80. /home/ubuntu/workspace/depcheck-es6/test/index.js 140:6
  81. /home/ubuntu/workspace/depcheck-es6/test/index.js 141:37
  82. /home/ubuntu/workspace/depcheck-es6/test/index.js 149:6
  83. /home/ubuntu/workspace/depcheck-es6/test/index.js 150:37
  84. /home/ubuntu/workspace/depcheck-es6/test/index.js 158:6
  85. /home/ubuntu/workspace/depcheck-es6/test/index.js 159:37
  86. /home/ubuntu/workspace/depcheck-es6/test/index.js 162:7
  87. /home/ubuntu/workspace/depcheck-es6/test/index.js 163:9
  88. /home/ubuntu/workspace/depcheck-es6/test/index.js 164:11
  89. /home/ubuntu/workspace/depcheck-es6/test/index.js 164:23
  90. /home/ubuntu/workspace/depcheck-es6/test/index.js 165:11
  91. /home/ubuntu/workspace/depcheck-es6/test/index.js 165:22
  92. /home/ubuntu/workspace/depcheck-es6/test/index.js 174:6
  93. /home/ubuntu/workspace/depcheck-es6/test/index.js 175:37
  94. /home/ubuntu/workspace/depcheck-es6/test/index.js 184:37
  95. /home/ubuntu/workspace/depcheck-es6/test/index.js 204:6
  96. /home/ubuntu/workspace/depcheck-es6/test/index.js 205:37
  97. /home/ubuntu/workspace/depcheck-es6/test/index.js 214:37

semi: Missing semicolon.

  1. /home/ubuntu/workspace/depcheck-es6/test/index.js 24:4

space-before-function-paren: Unexpected space before function parentheses.

  1. /home/ubuntu/workspace/depcheck-es6/src/cli.js 27:33
  2. /home/ubuntu/workspace/depcheck-es6/src/cli.js 29:65
  3. /home/ubuntu/workspace/depcheck-es6/src/cli.js 48:14
  4. /home/ubuntu/workspace/depcheck-es6/src/cli.js 60:45
  5. /home/ubuntu/workspace/depcheck-es6/src/cli.js 67:48
  6. /home/ubuntu/workspace/depcheck-es6/src/index.js 67:34
  7. /home/ubuntu/workspace/depcheck-es6/src/index.js 75:29
  8. /home/ubuntu/workspace/depcheck-es6/src/index.js 81:55
  9. /home/ubuntu/workspace/depcheck-es6/src/index.js 90:28
  10. /home/ubuntu/workspace/depcheck-es6/src/index.js 114:30
  11. /home/ubuntu/workspace/depcheck-es6/test/index.js 21:18
  12. /home/ubuntu/workspace/depcheck-es6/test/index.js 27:30

undefined: Unexpected token

  1. /home/ubuntu/workspace/depcheck-es6/test/fake_modules/bad_js/index.js 8:1

vars-on-top: All "var" declarations must be at the top of the function scope.

  1. /home/ubuntu/workspace/depcheck-es6/src/cli.js 21:1
  2. /home/ubuntu/workspace/depcheck-es6/src/cli.js 22:1
  3. /home/ubuntu/workspace/depcheck-es6/src/cli.js 23:1
  4. /home/ubuntu/workspace/depcheck-es6/src/cli.js 24:1
  5. /home/ubuntu/workspace/depcheck-es6/src/cli.js 25:1
  6. /home/ubuntu/workspace/depcheck-es6/src/index.js 38:3
  7. /home/ubuntu/workspace/depcheck-es6/src/index.js 39:3
  8. /home/ubuntu/workspace/depcheck-es6/src/index.js 77:7
  9. /home/ubuntu/workspace/depcheck-es6/src/index.js 99:11
  10. /home/ubuntu/workspace/depcheck-es6/src/index.js 100:11
  11. /home/ubuntu/workspace/depcheck-es6/src/index.js 150:7
  12. /home/ubuntu/workspace/depcheck-es6/test/index.js 120:7
  13. /home/ubuntu/workspace/depcheck-es6/test/index.js 124:7
  14. /home/ubuntu/workspace/depcheck-es6/test/index.js 192:9
  15. /home/ubuntu/workspace/depcheck-es6/test/index.js 196:9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment