Annotation of checkyesss/src/jsl.conf, revision 1.2

1.2     ! treitmay    1: #
        !             2: # JavaScript Lint 0.2.4 Configuration File
        !             3: #
        !             4: # This file can be used to lint a collection of scripts, or to enable
        !             5: # or disable warnings for scripts that are linted via the command line.
        !             6: #
        !             7: 
        !             8: ### Warnings
        !             9: # Enable or disable warnings based on requirements.
        !            10: # Use "+WarningName" to display or "-WarningName" to suppress.
        !            11: #
        !            12: +no_return_value              # function {0} does not always return a value
        !            13: +duplicate_formal             # duplicate formal argument {0}
        !            14: +equal_as_assign              # test for equality (==) mistyped as assignment (=)?{0}
        !            15: +var_hides_arg                # variable {0} hides argument
        !            16: +redeclared_var               # redeclaration of {0} {1}
        !            17: +anon_no_return_value         # anonymous function does not always return a value
        !            18: +missing_semicolon            # missing semicolon
        !            19: +meaningless_block            # meaningless block; curly braces have no impact
        !            20: +comma_separated_stmts        # multiple statements separated by commas (use semicolons?)
        !            21: +unreachable_code             # unreachable code
        !            22: +missing_break                # missing break statement
        !            23: +missing_break_for_last_case  # missing break statement for last case in switch
        !            24: -comparison_type_conv         # (default: +) comparisons against null, 0, or an empty string allowing implicit type conversion (use === or !==)
        !            25: -inc_dec_within_stmt          # (default: +) increment (++) and decrement (--) operators used as part of greater statement
        !            26: +useless_void                 # use of the void type may be unnecessary (void is always undefined)
        !            27: +multiple_plus_minus          # unknown order of operations for successive plus (e.g. x+++y) or minus (e.g. x---y) signs
        !            28: +use_of_label                 # use of label
        !            29: -block_without_braces         # block statement without curly braces
        !            30: +leading_decimal_point        # leading decimal point may indicate a number or an object member
        !            31: +trailing_decimal_point       # trailing decimal point may indicate a number or an object member
        !            32: -octal_number                 # (default: +) leading zeros make an octal number
        !            33: -nested_comment               # (default: +) nested comment
        !            34: +misplaced_regex              # regular expressions should be preceded by a left parenthesis, assignment, colon, or comma
        !            35: +ambiguous_newline            # unexpected end of line; it is ambiguous whether these lines are part of the same statement
        !            36: +empty_statement              # empty statement or extra semicolon
        !            37: -missing_option_explicit      # the "option explicit" control comment is missing
        !            38: +partial_option_explicit      # the "option explicit" control comment, if used, must be in the first script tag
        !            39: +dup_option_explicit          # duplicate "option explicit" control comment
        !            40: +useless_assign               # useless assignment
        !            41: +ambiguous_nested_stmt        # block statements containing block statements should use curly braces to resolve ambiguity
        !            42: +ambiguous_else_stmt          # the else statement could be matched with one of multiple if statements (use curly braces to indicate intent)
        !            43: +missing_default_case         # missing default case in switch statement
        !            44: +duplicate_case_in_switch     # duplicate case in switch statements
        !            45: +default_not_at_end           # the default case is not at the end of the switch statement
        !            46: +legacy_cc_not_understood     # couldn't understand control comment using /*@keyword@*/ syntax
        !            47: +jsl_cc_not_understood        # couldn't understand control comment using /*jsl:keyword*/ syntax
        !            48: +useless_comparison           # useless comparison; comparing identical expressions
        !            49: 
        !            50: 
        !            51: ### Output format
        !            52: # Customize the format of the error message.
        !            53: #    __FILE__ indicates current file path
        !            54: #    __FILENAME__ indicates current file name
        !            55: #    __LINE__ indicates current line
        !            56: #    __ERROR__ indicates error message
        !            57: #
        !            58: # Visual Studio syntax (default):
        !            59: +output-format __FILE__(__LINE__): __ERROR__
        !            60: # Alternative syntax:
        !            61: #+output-format __FILE__:__LINE__: __ERROR__
        !            62: 
        !            63: 
        !            64: ### Context
        !            65: # Show the in-line position of the error.
        !            66: # Use "+context" to display or "-context" to suppress.
        !            67: #
        !            68: +context
        !            69: 
        !            70: 
        !            71: ### Semicolons
        !            72: # By default, assignments of an anonymous function to a variable or
        !            73: # property (such as a function prototype) must be followed by a semicolon.
        !            74: #
        !            75: +lambda_assign_requires_semicolon
        !            76: 
        !            77: 
        !            78: ### Control Comments
        !            79: # Both JavaScript Lint and the JScript interpreter confuse each other with the syntax for
        !            80: # the /*@keyword@*/ control comments and JScript conditional comments. (The latter is
        !            81: # enabled in JScript with @cc_on@). The /*jsl:keyword*/ syntax is preferred for this reason,
        !            82: # although legacy control comments are enabled by default for backward compatibility.
        !            83: #
        !            84: +legacy_control_comments
        !            85: 
        !            86: 
        !            87: ### Defining identifiers
        !            88: # By default, "option explicit" is enabled on a per-file basis.
        !            89: # To enable this for all files, use "+always_use_option_explicit"
        !            90: -always_use_option_explicit
        !            91: 
        !            92: # Define certain identifiers of which the lint is not aware.
        !            93: # (Use this in conjunction with the "undeclared identifier" warning.)
        !            94: #
        !            95: # Common uses for webpages might be:
        !            96: #+define window
        !            97: #+define document
        !            98: 
        !            99: 
        !           100: ### Files
        !           101: # Specify which files to lint
        !           102: # Use "+recurse" to enable recursion (disabled by default).
        !           103: # To add a set of files, use "+process FileName", "+process Folder\Path\*.js",
        !           104: # or "+process Folder\Path\*.htm".
        !           105: #
        !           106: #+process jsl-test.js

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>