Add DCO and scrutinizer files
Jeremy D

Jeremy D commited on 2022-04-04 18:58:10
Showing 2 changed files, with 215 additions and 0 deletions.

... ...
@@ -0,0 +1,190 @@
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/SimpleMachines/SMF2.1 smf
185
+
186
+filter:
187
+    dependency_paths:
188
+        - smf/
189
+    excluded_paths:
190
+        - '*.min.js'
... ...
@@ -0,0 +1,25 @@
1
+Developer's Certificate of Origin 1.1
2
+
3
+      By making a contribution to this project, I certify that:
4
+
5
+      (a) The contribution was created in whole or in part by me and I
6
+          have the right to submit it under the open source license
7
+          indicated in the file; or
8
+
9
+      (b) The contribution is based upon previous work that, to the best
10
+          of my knowledge, is covered under an appropriate open source
11
+          license and I have the right under that license to submit that
12
+          work with modifications, whether created in whole or in part
13
+          by me, under the same open source license (unless I am
14
+          permitted to submit under a different license), as indicated
15
+          in the file; or
16
+
17
+      (c) The contribution was provided directly to me by some other
18
+          person who certified (a), (b) or (c) and I have not modified
19
+          it.
20
+
21
+      (d) I understand and agree that this project and the contribution
22
+          are public and that a record of the contribution (including all
23
+          personal information I submit with it, including my sign-off) is
24
+          maintained indefinitely and may be redistributed consistent with
25
+          this project or the open source license(s) involved.
0 26
\ No newline at end of file
1 27