티스토리 뷰

etc

JSLint

Sumin Lim 2012. 7. 19. 15:53
반응형



JSLint

  1. 'hasOwnProperty' is a really bad name.
  2. 'new' should not be used as a statement.
  3. '{a}' is a statement label.
  4. '{a}' is already defined.
  5. '{a}' is not a statement label.
  6. '{a}' is not allowed.
  7. '{a}' is not defined.
  8. '{a}' is out of scope.
  9. '{a}' used out of scope.
  10. '{a}' was used before it was defined.
  11. A constructor name should start with an uppercase letter.
  12. A dot following a number can be confused with a decimal point.
  13. A leading decimal point can be confused with a dot: '.{a}'.
  14. All 'debugger' statements should be removed.
  15. Attribute '{a}' not all lower case.
  16. Attribute '{a}' repeated.
  17. Avoid HTML event handlers.
  18. Bad assignment.
  19. Bad constructor.
  20. Bad for in variable '{a}'.
  21. Bad identifier {a}.
  22. Bad identifier.
  23. Bad input type.
  24. Bad invocation.
  25. Bad line breaking before '{a}'.
  26. Bad operand.
  27. Bad url string.
  28. Be careful when making functions within a loop. Consider putting the function in a closure.
  29. Confusing minusses.
  30. Confusing plusses.
  31. Confusing use of '{a}'.
  32. Do not assign to the exception parameter.
  33. Do not use {a} as a constructor.
  34. Do not wrap function literals in parens unless they are to be immediately invoked.
  35. Duplicate id='{a}'.
  36. Duplicate key '{a}'.
  37. Duplicate member '{a}'.
  38. Excepted a style attribute, and instead saw '{a}'.
  39. Expected '{a}' and instead saw '{b}'.
  40. Expected '{a}' to have an indentation at {b} instead at {c}.
  41. Expected '{a}' to match '{b}' from line {c} and instead saw '{d}'.
  42. Expected a 'break' statement before 'case'.
  43. Expected a 'break' statement before 'default'.
  44. Expected a class, and instead saw #.{a}.
  45. Expected a conditional expression and instead saw an assignment.
  46. Expected a lang code, and instead saw :{a}.
  47. Expected a linear unit and instead saw '{a}'.
  48. Expected a name and instead saw '{a}'.
  49. Expected a non-standard style attribute and instead saw '{a}'.
  50. Expected a number and instead saw '{a}'.
  51. Expected a percentage and instead saw '{a}'
  52. Expected a positive number and instead saw '{a}'
  53. Expected a pseudo, and instead saw :{a}.
  54. Expected a small number and instead saw '{a}'
  55. Expected a string and instead saw '{a}'.
  56. Expected a string and instead saw {a}.
  57. Expected a string, and instead saw {a}.
  58. Expected a style pattern, and instead saw '{a}'.
  59. Expected a tagName, and instead saw {a}.
  60. Expected an assignment or function call and instead saw an expression.
  61. Expected an at-rule, and instead saw @{a}.
  62. Expected an attribute value and instead saw '{a}'.
  63. Expected an attribute, and instead saw [{a}].
  64. Expected an id, and instead saw #{a}.
  65. Expected an identifier and instead saw '{a}' (a reserved word).
  66. Expected an identifier and instead saw '{a}'.
  67. Expected an identifier in an assignment and instead saw a function invocation.
  68. Expected an identifier in an assignment, and instead saw a function invocation.
  69. Extra comma.
  70. Function statements cannot be placed in blocks. Use a function expression or move the statement to the top of the outer function.
  71. Implied eval is evil. Pass a function instead of a string.
  72. Inner functions should be listed at the top of the outer function.
  73. JavaScript URL.
  74. Label '{a}' looks like a javascript url.
  75. Label '{a}' on {b} statement.
  76. Line breaking error '{a}'.
  77. Math is not a function.
  78. Misplaced ';'.
  79. Missing "use strict" statement.
  80. Missing '()' invoking a constructor.
  81. Missing 'new' prefix when invoking a constructor.
  82. Missing '{a}'.
  83. Missing name in function statement.
  84. Missing radix parameter.
  85. Missing space after '{a}'.
  86. Missing url.
  87. Move the invocation into the parens that contain the function.
  88. Nested not.
  89. Read only.
  90. Redefinition of '{a}'.
  91. Strict violation.
  92. Stupid key '{a}'.
  93. The Function constructor is eval.
  94. The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.
  95. This 'switch' should be an 'if'.
  96. Too many var statements.
  97. Unexpected '{a}'.
  98. Unexpected --.
  99. Unexpected /*member '{a}'.
  100. Unexpected <.
  101. Unexpected >.
  102. Unexpected character '{a}' in {b}.
  103. Unexpected comma.
  104. Unexpected expression '{a}'.
  105. Unexpected space after '-'.
  106. Unexpected space after '{a}'.
  107. Unexpected token '{a}'.
  108. Unexpected use of '{a}'.
  109. Unmatched '{a}'.
  110. Unnecessary semicolon.
  111. Unreachable '{a}' after '{b}'.
  112. Unrecognized style attribute '{a}'.
  113. Use '{a}' to compare with '{b}'.
  114. Use the array literal notation [].
  115. Use the isNaN function to compare with NaN.
  116. Use the object literal notation {}.
  117. Weird construction. Delete 'new'.
  118. Wrap the /regexp/ literal in parens to disambiguate the slash operator.
  119. Wrap the entire immediate function invocation in parens.
  120. ['{a}'] is better written in dot notation.
  121. document.write can be a form of eval.
  122. eval is evil.
  123. lang is deprecated.
  124. type is unnecessary.

반응형

'etc' 카테고리의 다른 글

JSTools  (0) 2012.07.19
JS tool  (0) 2012.07.19
twitter.com  (0) 2012.07.06
블루투스 채팅  (0) 2012.07.05
로컬개발환경  (0) 2012.07.05
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/07   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
글 보관함