jdarwood007 commited on 2023-04-13 16:30:55
Showing 4 changed files, with 58 additions and 190 deletions.
... | ... |
@@ -0,0 +1,36 @@ |
1 |
+module.exports = { |
|
2 |
+ 'env': { |
|
3 |
+ 'browser': true, |
|
4 |
+ 'es2021': true, |
|
5 |
+ 'jquery': true |
|
6 |
+ }, |
|
7 |
+ 'extends': 'eslint:recommended', |
|
8 |
+ 'parserOptions': { |
|
9 |
+ 'ecmaVersion': 12, |
|
10 |
+ 'sourceType': 'module' |
|
11 |
+ }, |
|
12 |
+ 'rules': { |
|
13 |
+ 'indent': [ |
|
14 |
+ 'error', |
|
15 |
+ 'tab', |
|
16 |
+ {"SwitchCase": 1} |
|
17 |
+ ], |
|
18 |
+ 'linebreak-style': [ |
|
19 |
+ 'error', |
|
20 |
+ 'unix' |
|
21 |
+ ], |
|
22 |
+ 'quotes': [ |
|
23 |
+ 'error', |
|
24 |
+ 'single' |
|
25 |
+ ], |
|
26 |
+ 'no-unused-vars': [ |
|
27 |
+ 'error', |
|
28 |
+ { |
|
29 |
+ 'vars': 'local', |
|
30 |
+ 'args' : 'none' |
|
31 |
+ } |
|
32 |
+ ] |
|
33 |
+ }, |
|
34 |
+ 'globals': { |
|
35 |
+ } |
|
36 |
+}; |
... | ... |
@@ -0,0 +1,21 @@ |
1 |
+name: Javascript Checks |
|
2 |
+ |
|
3 |
+on: |
|
4 |
+ push: |
|
5 |
+ branches: [ master ] |
|
6 |
+ pull_request: |
|
7 |
+ branches: [ master ] |
|
8 |
+ |
|
9 |
+ workflow_dispatch: |
|
10 |
+jobs: |
|
11 |
+ lint: |
|
12 |
+ runs-on: ubuntu-latest |
|
13 |
+ name: LINT Checks |
|
14 |
+ steps: |
|
15 |
+ - uses: actions/checkout@master |
|
16 |
+ with: |
|
17 |
+ submodules: true |
|
18 |
+ - name: Javascript LINT |
|
19 |
+ uses: tj-actions/eslint-changed-files@v4 |
|
20 |
+ with: |
|
21 |
+ config-path: .github/eslintrc.js |
|
0 | 22 |
\ No newline at end of file |
... | ... |
@@ -1,190 +0,0 @@ |
1 |
-checks: |
|
2 |
- php: |
|
3 |
- variable_existence: true |
|
4 |
- use_statement_alias_conflict: true |
|
5 |
- unused_variables: true |
|
6 |
- unused_properties: true |
|
7 |
- unused_parameters: true |
|
8 |
- unused_methods: true |
|
9 |
- unreachable_code: true |
|
10 |
- switch_fallthrough_commented: true |
|
11 |
- simplify_boolean_return: true |
|
12 |
- return_doc_comments: true |
|
13 |
- return_doc_comment_if_not_inferrable: true |
|
14 |
- require_scope_for_methods: true |
|
15 |
- require_php_tag_first: true |
|
16 |
- remove_extra_empty_lines: true |
|
17 |
- property_assignments: true |
|
18 |
- precedence_mistakes: true |
|
19 |
- precedence_in_conditions: true |
|
20 |
- parse_doc_comments: true |
|
21 |
- parameter_non_unique: true |
|
22 |
- parameter_doc_comments: true |
|
23 |
- param_doc_comment_if_not_inferrable: true |
|
24 |
- overriding_private_members: true |
|
25 |
- no_trailing_whitespace: true |
|
26 |
- no_short_open_tag: true |
|
27 |
- no_property_on_interface: true |
|
28 |
- no_non_implemented_abstract_methods: true |
|
29 |
- no_short_method_names: |
|
30 |
- minimum: '3' |
|
31 |
- no_goto: true |
|
32 |
- no_error_suppression: true |
|
33 |
- no_debug_code: true |
|
34 |
- more_specific_types_in_doc_comments: true |
|
35 |
- missing_arguments: true |
|
36 |
- method_calls_on_non_object: true |
|
37 |
- instanceof_class_exists: true |
|
38 |
- foreach_traversable: true |
|
39 |
- fix_use_statements: |
|
40 |
- remove_unused: true |
|
41 |
- preserve_multiple: false |
|
42 |
- preserve_blanklines: false |
|
43 |
- order_alphabetically: false |
|
44 |
- fix_line_ending: true |
|
45 |
- fix_doc_comments: true |
|
46 |
- encourage_shallow_comparison: true |
|
47 |
- duplication: true |
|
48 |
- deprecated_code_usage: true |
|
49 |
- deadlock_detection_in_loops: true |
|
50 |
- code_rating: true |
|
51 |
- closure_use_not_conflicting: true |
|
52 |
- closure_use_modifiable: true |
|
53 |
- catch_class_exists: true |
|
54 |
- avoid_duplicate_types: true |
|
55 |
- avoid_closing_tag: false |
|
56 |
- assignment_of_null_return: true |
|
57 |
- argument_type_checks: true |
|
58 |
- no_long_variable_names: |
|
59 |
- maximum: '40' |
|
60 |
- no_short_variable_names: |
|
61 |
- minimum: '3' |
|
62 |
- phpunit_assertions: true |
|
63 |
- remove_php_closing_tag: false |
|
64 |
- no_mixed_inline_html: false |
|
65 |
- require_braces_around_control_structures: false |
|
66 |
- psr2_control_structure_declaration: false |
|
67 |
- avoid_superglobals: false |
|
68 |
- security_vulnerabilities: false |
|
69 |
- no_exit: false |
|
70 |
-coding_style: |
|
71 |
- php: |
|
72 |
- indentation: |
|
73 |
- general: |
|
74 |
- use_tabs: true |
|
75 |
- size: 4 |
|
76 |
- switch: |
|
77 |
- indent_case: true |
|
78 |
- spaces: |
|
79 |
- general: |
|
80 |
- linefeed_character: newline |
|
81 |
- before_parentheses: |
|
82 |
- function_declaration: false |
|
83 |
- closure_definition: false |
|
84 |
- function_call: false |
|
85 |
- if: true |
|
86 |
- for: true |
|
87 |
- while: true |
|
88 |
- switch: true |
|
89 |
- catch: true |
|
90 |
- array_initializer: false |
|
91 |
- around_operators: |
|
92 |
- assignment: true |
|
93 |
- logical: true |
|
94 |
- equality: true |
|
95 |
- relational: true |
|
96 |
- bitwise: true |
|
97 |
- additive: true |
|
98 |
- multiplicative: true |
|
99 |
- shift: true |
|
100 |
- unary_additive: false |
|
101 |
- concatenation: true |
|
102 |
- negation: false |
|
103 |
- before_left_brace: |
|
104 |
- class: true |
|
105 |
- function: true |
|
106 |
- if: true |
|
107 |
- else: true |
|
108 |
- for: true |
|
109 |
- while: true |
|
110 |
- do: true |
|
111 |
- switch: true |
|
112 |
- try: true |
|
113 |
- catch: true |
|
114 |
- finally: true |
|
115 |
- before_keywords: |
|
116 |
- else: true |
|
117 |
- while: true |
|
118 |
- catch: true |
|
119 |
- finally: true |
|
120 |
- within: |
|
121 |
- brackets: false |
|
122 |
- array_initializer: false |
|
123 |
- grouping: false |
|
124 |
- function_call: false |
|
125 |
- function_declaration: false |
|
126 |
- if: false |
|
127 |
- for: false |
|
128 |
- while: false |
|
129 |
- switch: false |
|
130 |
- catch: false |
|
131 |
- type_cast: false |
|
132 |
- ternary_operator: |
|
133 |
- before_condition: true |
|
134 |
- after_condition: true |
|
135 |
- before_alternative: true |
|
136 |
- after_alternative: true |
|
137 |
- in_short_version: false |
|
138 |
- other: |
|
139 |
- before_comma: false |
|
140 |
- after_comma: true |
|
141 |
- before_semicolon: false |
|
142 |
- after_semicolon: true |
|
143 |
- after_type_cast: true |
|
144 |
- braces: |
|
145 |
- classes_functions: |
|
146 |
- class: new-line |
|
147 |
- function: new-line |
|
148 |
- closure: new-line |
|
149 |
- if: |
|
150 |
- opening: new-line |
|
151 |
- always: false |
|
152 |
- else_on_new_line: true |
|
153 |
- for: |
|
154 |
- opening: new-line |
|
155 |
- always: false |
|
156 |
- while: |
|
157 |
- opening: new-line |
|
158 |
- always: false |
|
159 |
- do_while: |
|
160 |
- opening: undefined |
|
161 |
- always: true |
|
162 |
- while_on_new_line: true |
|
163 |
- switch: |
|
164 |
- opening: new-line |
|
165 |
- try: |
|
166 |
- opening: new-line |
|
167 |
- catch_on_new_line: true |
|
168 |
- finally_on_new_line: true |
|
169 |
- upper_lower_casing: |
|
170 |
- keywords: |
|
171 |
- general: lower |
|
172 |
- constants: |
|
173 |
- true_false_null: lower |
|
174 |
- |
|
175 |
- |
|
176 |
-build: |
|
177 |
- nodes: |
|
178 |
- analysis: |
|
179 |
- tests: |
|
180 |
- override: |
|
181 |
- - php-scrutinizer-run |
|
182 |
- dependencies: |
|
183 |
- after: |
|
184 |
- - git clone https://github.com/WordPress/WordPress.git wordpress |
|
185 |
- |
|
186 |
-filter: |
|
187 |
- dependency_paths: |
|
188 |
- - wordpress/ |
|
189 |
- excluded_paths: |
|
190 |
- - '*.min.js' |
... | ... |
@@ -5,6 +5,7 @@ |
5 | 5 |
<title>SMF Package Parser</title> |
6 | 6 |
<meta name="robots" content="noindex, nofollow"> |
7 | 7 |
<meta name="googlebot" content="noindex, nofollow"> |
8 |
+ <meta http-equiv='Content-Security-Policy' CONTENT="default-src 'self' ; script-src 'self' 'unsafe-inline' cdn.jsdelivr.net; style-src 'self' 'unsafe-inline' cdn.jsdelivr.net; img-src 'self' data: *; media-src 'self';">` |
|
8 | 9 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
9 | 10 |
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous"> |
10 | 11 |
<link rel="modulepreload" crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"> |
11 | 12 |