json-glib: update to 1.10.6
[oi-userland.git] / components / developer / jsl / patches / jsl-02-conf.patch
blobd7f270aa4a45f9d8bc29d4028c43ea3371bb5c95
1 --- jsl-0.3.0/example.conf.orig 1970-01-01 01:00:00.000000000 +0100
2 +++ jsl-0.3.0/example.conf 2012-10-12 17:58:17.871818945 +0100
3 @@ -0,0 +1,133 @@
4 +#
5 +# Configuration File for JavaScript Lint 0.3.0
6 +# Developed by Matthuas Miller (http://JavaScriptLint.com)
7 +#
8 +# This configuration file can be used to lint a collection of scripts, or to
9 +# enable or disable warnings for scripts that are linted via the command line.
11 +# To run:
12 +# jsl conf example.conf
14 +### Warnings
15 +# Enable or disable warnings based on requirements.
16 +# Use "+WarningName" to display or "-WarningName" to suppress.
18 ++no_return_value # function {0} does not always return a value
19 ++duplicate_formal # duplicate formal argument {0}
20 ++equal_as_assign # test for equality (==) mistyped as assignment (=)?{0}
21 ++var_hides_arg # variable {0} hides argument
22 ++redeclared_var # redeclaration of {0} {1}
23 ++anon_no_return_value # anonymous function does not always return a value
24 ++missing_semicolon # missing semicolon
25 ++meaningless_block # meaningless block; curly braces have no impact
26 ++comma_separated_stmts # multiple statements separated by commas (use semicolons?)
27 ++unreachable_code # unreachable code
28 ++missing_break # missing break statement
29 ++missing_break_for_last_case # missing break statement for last case in switch
30 ++comparison_type_conv # comparisons against null, 0, true, false, or an empty string allowing implicit type conversion (use === or !==)
31 ++inc_dec_within_stmt # increment (++) and decrement (--) operators used as part of greater statement
32 ++useless_void # use of the void type may be unnecessary (void is always undefined)
33 ++multiple_plus_minus # unknown order of operations for successive plus (e.g. x+++y) or minus (e.g. x---y) signs
34 ++use_of_label # use of label
35 +-block_without_braces # block statement without curly braces
36 ++leading_decimal_point # leading decimal point may indicate a number or an object member
37 ++trailing_decimal_point # trailing decimal point may indicate a number or an object member
38 ++octal_number # leading zeros make an octal number
39 ++nested_comment # nested comment
40 ++misplaced_regex # regular expressions should be preceded by a left parenthesis, assignment, colon, or comma
41 ++ambiguous_newline # unexpected end of line; it is ambiguous whether these lines are part of the same statement
42 ++empty_statement # empty statement or extra semicolon
43 +-missing_option_explicit # the "option explicit" control comment is missing
44 ++partial_option_explicit # the "option explicit" control comment, if used, must be in the first script tag
45 ++dup_option_explicit # duplicate "option explicit" control comment
46 ++useless_assign # useless assignment
47 ++ambiguous_nested_stmt # block statements containing block statements should use curly braces to resolve ambiguity
48 ++ambiguous_else_stmt # the else statement could be matched with one of multiple if statements (use curly braces to indicate intent)
49 ++missing_default_case # missing default case in switch statement
50 ++duplicate_case_in_switch # duplicate case in switch statements
51 ++default_not_at_end # the default case is not at the end of the switch statement
52 ++legacy_cc_not_understood # couldn't understand control comment using /*@keyword@*/ syntax
53 ++jsl_cc_not_understood # couldn't understand control comment using /*jsl:keyword*/ syntax
54 ++useless_comparison # useless comparison; comparing identical expressions
55 ++with_statement # with statement hides undeclared variables; use temporary variable instead
56 ++trailing_comma_in_array # extra comma is not recommended in array initializers
57 ++assign_to_function_call # assignment to a function call
58 ++parseint_missing_radix # parseInt missing radix parameter
61 +### Output format
62 +# Customize the format of the error message.
63 +# __FILE__ indicates current file path
64 +# __FILENAME__ indicates current file name
65 +# __LINE__ indicates current line
66 +# __ERROR__ indicates error message
68 +# Visual Studio syntax (default):
69 ++output-format __FILE__(__LINE__): __ERROR__
70 +# Alternative syntax:
71 +#+output-format __FILE__:__LINE__: __ERROR__
74 +### Context
75 +# Show the in-line position of the error.
76 +# Use "+context" to display or "-context" to suppress.
78 ++context
81 +### Semicolons
82 +# By default, assignments of an anonymous function to a variable or
83 +# property (such as a function prototype) must be followed by a semicolon.
85 ++lambda_assign_requires_semicolon
88 +### Control Comments
89 +# Both JavaScript Lint and the JScript interpreter confuse each other with the syntax for
90 +# the /*@keyword@*/ control comments and JScript conditional comments. (The latter is
91 +# enabled in JScript with @cc_on@). The /*jsl:keyword*/ syntax is preferred for this reason,
92 +# although legacy control comments are enabled by default for backward compatibility.
94 ++legacy_control_comments
97 +### JScript Function Extensions
98 +# JScript allows member functions to be defined like this:
99 +# function MyObj() { /*constructor*/ }
100 +# function MyObj.prototype.go() { /*member function*/ }
102 +# It also allows events to be attached like this:
103 +# function window::onload() { /*init page*/ }
105 +# This is a Microsoft-only JavaScript extension. Enable this setting to allow them.
107 +-jscript_function_extensions
110 +### Defining identifiers
111 +# By default, "option explicit" is enabled on a per-file basis.
112 +# To enable this for all files, use "+always_use_option_explicit"
113 ++always_use_option_explicit
115 +# Define certain identifiers of which the lint is not aware.
116 +# (Use this in conjunction with the "undeclared identifier" warning.)
118 +# Common uses for webpages might be:
119 ++define window
120 ++define document
123 +### Interactive
124 +# Prompt for a keystroke before exiting.
125 +#+pauseatend
128 +### Files
129 +# Specify which files to lint
130 +# Use "+recurse" to enable recursion (disabled by default).
131 +# To add a set of files, use "+process FileName", "+process Folder\Path\*.js",
132 +# or "+process Folder\Path\*.htm".
135 +#####################################################################
136 +## MY CHANGES