문서의 선택한 두 판 사이의 차이를 보여줍니다.
javascript:lint [2012/05/25 11:27] kwon37xi 새로 만듦 |
javascript:lint [2012/08/01 16:39] (현재) kwon37xi |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== Javascript Lint ====== | ====== Javascript Lint ====== | ||
- | * [[http:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
+ | * 세미콜론만 잡아내는 설정파일< | ||
+ | # | ||
+ | # Configuration File for JavaScript Lint 0.3.0 | ||
+ | # Developed by Matthias Miller (http:// | ||
+ | # | ||
+ | # This configuration file can be used to lint a collection of scripts, or to enable | ||
+ | # or disable warnings for scripts that are linted via the command line. | ||
+ | # | ||
+ | |||
+ | ### Warnings | ||
+ | # Enable or disable warnings based on requirements. | ||
+ | # Use " | ||
+ | # | ||
+ | -no_return_value | ||
+ | -duplicate_formal | ||
+ | -equal_as_assign | ||
+ | -var_hides_arg | ||
+ | -redeclared_var | ||
+ | -anon_no_return_value | ||
+ | +missing_semicolon | ||
+ | -meaningless_block | ||
+ | -comma_separated_stmts | ||
+ | -unreachable_code | ||
+ | -missing_break | ||
+ | -missing_break_for_last_case | ||
+ | -comparison_type_conv | ||
+ | -inc_dec_within_stmt | ||
+ | -useless_void | ||
+ | -multiple_plus_minus | ||
+ | +use_of_label | ||
+ | -block_without_braces | ||
+ | -leading_decimal_point | ||
+ | -trailing_decimal_point | ||
+ | -octal_number | ||
+ | -nested_comment | ||
+ | -misplaced_regex | ||
+ | -ambiguous_newline | ||
+ | -empty_statement | ||
+ | -missing_option_explicit | ||
+ | -partial_option_explicit | ||
+ | -dup_option_explicit | ||
+ | -useless_assign | ||
+ | -ambiguous_nested_stmt | ||
+ | -ambiguous_else_stmt | ||
+ | -missing_default_case | ||
+ | -duplicate_case_in_switch | ||
+ | -default_not_at_end | ||
+ | -legacy_cc_not_understood | ||
+ | -jsl_cc_not_understood | ||
+ | -useless_comparison | ||
+ | -with_statement | ||
+ | -trailing_comma_in_array | ||
+ | -assign_to_function_call | ||
+ | -parseint_missing_radix | ||
+ | |||
+ | |||
+ | ### Output format | ||
+ | # Customize the format of the error message. | ||
+ | # __FILE__ indicates current file path | ||
+ | # __FILENAME__ indicates current file name | ||
+ | # __LINE__ indicates current line | ||
+ | # __ERROR__ indicates error message | ||
+ | # | ||
+ | # Visual Studio syntax (default): | ||
+ | +output-format __FILE__(__LINE__): | ||
+ | # Alternative syntax: | ||
+ | # | ||
+ | |||
+ | |||
+ | ### Context | ||
+ | # Show the in-line position of the error. | ||
+ | # Use " | ||
+ | # | ||
+ | +context | ||
+ | |||
+ | |||
+ | ### Semicolons | ||
+ | # By default, assignments of an anonymous function to a variable or | ||
+ | # property (such as a function prototype) must be followed by a semicolon. | ||
+ | # | ||
+ | +lambda_assign_requires_semicolon | ||
+ | |||
+ | |||
+ | ### Control Comments | ||
+ | # Both JavaScript Lint and the JScript interpreter confuse each other with the syntax for | ||
+ | # the / | ||
+ | # enabled in JScript with @cc_on@). The / | ||
+ | # although legacy control comments are enabled by default for backward compatibility. | ||
+ | # | ||
+ | +legacy_control_comments | ||
+ | |||
+ | |||
+ | ### JScript Function Extensions | ||
+ | # JScript allows member functions to be defined like this: | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # It also allows events to be attached like this: | ||
+ | # | ||
+ | # | ||
+ | # This is a Microsoft-only JavaScript extension. Enable this setting to allow them. | ||
+ | # | ||
+ | -jscript_function_extensions | ||
+ | |||
+ | |||
+ | ### Defining identifiers | ||
+ | # By default, " | ||
+ | # To enable this for all files, use " | ||
+ | -always_use_option_explicit | ||
+ | |||
+ | # Define certain identifiers of which the lint is not aware. | ||
+ | # (Use this in conjunction with the " | ||
+ | # | ||
+ | # Common uses for webpages might be: | ||
+ | #+define window | ||
+ | #+define document | ||
+ | |||
+ | |||
+ | ### Interactive | ||
+ | # Prompt for a keystroke before exiting. | ||
+ | # | ||
+ | |||
+ | ### Files | ||
+ | # Specify which files to lint | ||
+ | # Use " | ||
+ | # To add a set of files, use " | ||
+ | # or " | ||
+ | # | ||
+ | +process jsl-test.js | ||
+ | </ |