暫無描述

jsl.conf 3.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # JavaScriptLint configuration file for CoffeeScript.
  2. +no_return_value # function {0} does not always return a value
  3. +duplicate_formal # duplicate formal argument {0}
  4. -equal_as_assign # test for equality (==) mistyped as assignment (=)?{0}
  5. +var_hides_arg # variable {0} hides argument
  6. +redeclared_var # redeclaration of {0} {1}
  7. -anon_no_return_value # anonymous function does not always return a value
  8. +missing_semicolon # missing semicolon
  9. +meaningless_block # meaningless block; curly braces have no impact
  10. -comma_separated_stmts # multiple statements separated by commas (use semicolons?)
  11. +unreachable_code # unreachable code
  12. +missing_break # missing break statement
  13. -missing_break_for_last_case # missing break statement for last case in switch
  14. -comparison_type_conv # comparisons against null, 0, true, false, or an empty string allowing implicit type conversion (use === or !==)
  15. -inc_dec_within_stmt # increment (++) and decrement (--) operators used as part of greater statement
  16. -useless_void # use of the void type may be unnecessary (void is always undefined)
  17. +multiple_plus_minus # unknown order of operations for successive plus (e.g. x+++y) or minus (e.g. x---y) signs
  18. +use_of_label # use of label
  19. -block_without_braces # block statement without curly braces
  20. +leading_decimal_point # leading decimal point may indicate a number or an object member
  21. +trailing_decimal_point # trailing decimal point may indicate a number or an object member
  22. +octal_number # leading zeros make an octal number
  23. +nested_comment # nested comment
  24. +misplaced_regex # regular expressions should be preceded by a left parenthesis, assignment, colon, or comma
  25. +ambiguous_newline # unexpected end of line; it is ambiguous whether these lines are part of the same statement
  26. +empty_statement # empty statement or extra semicolon
  27. -missing_option_explicit # the "option explicit" control comment is missing
  28. +partial_option_explicit # the "option explicit" control comment, if used, must be in the first script tag
  29. +dup_option_explicit # duplicate "option explicit" control comment
  30. +useless_assign # useless assignment
  31. +ambiguous_nested_stmt # block statements containing block statements should use curly braces to resolve ambiguity
  32. +ambiguous_else_stmt # the else statement could be matched with one of multiple if statements (use curly braces to indicate intent)
  33. -missing_default_case # missing default case in switch statement
  34. +duplicate_case_in_switch # duplicate case in switch statements
  35. +default_not_at_end # the default case is not at the end of the switch statement
  36. +legacy_cc_not_understood # couldn't understand control comment using /*@keyword@*/ syntax
  37. +jsl_cc_not_understood # couldn't understand control comment using /*jsl:keyword*/ syntax
  38. +useless_comparison # useless comparison; comparing identical expressions
  39. +with_statement # with statement hides undeclared variables; use temporary variable instead
  40. +trailing_comma_in_array # extra comma is not recommended in array initializers
  41. +assign_to_function_call # assignment to a function call
  42. +parseint_missing_radix # parseInt missing radix parameter
  43. +lambda_assign_requires_semicolon