Skip to content

Commit 79080e4

Browse files
committed
Rename package to "rinvex/categorizable" from "rinvex/category" based on 916d250
0 parents  commit 79080e4

22 files changed

+2436
-0
lines changed

.codeclimate.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
engines:
3+
duplication:
4+
enabled: true
5+
config:
6+
languages:
7+
- ruby
8+
- javascript
9+
- python
10+
- php
11+
eslint:
12+
enabled: true
13+
fixme:
14+
enabled: true
15+
phpmd:
16+
enabled: true
17+
checks:
18+
Design/TooManyPublicMethods:
19+
enabled: false
20+
Naming/ShortVariable:
21+
enabled: false
22+
CleanCode/ElseExpression:
23+
enabled: false
24+
CleanCode/BooleanArgumentFlag:
25+
enabled: false
26+
CleanCode/StaticAccess:
27+
enabled: false
28+
Naming/ShortMethodName:
29+
enabled: false
30+
ratings:
31+
paths:
32+
- "**.inc"
33+
- "**.js"
34+
- "**.jsx"
35+
- "**.module"
36+
- "**.php"
37+
- "**.py"
38+
- "**.rb"
39+
exclude_paths:
40+
- "resources/*"
41+
- "build/*"
42+
- "tests/*"
43+
- "vendor/*"

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_size = 4
8+
indent_style = space
9+
insert_final_newline = true
10+
max_line_length = 80
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
max_line_length = 0
15+
trim_trailing_whitespace = false
16+
17+
[COMMIT_EDITMSG]
18+
max_line_length = 0

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
* text=auto
2+
*.css linguist-vendored
3+
*.scss linguist-vendored
4+
5+
phpunit.* export-ignore
6+
phpcs.* export-ignore
7+
tests export-ignore
8+
.* export-ignore

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/build
2+
/vendor
3+
/node_modules
4+
composer.lock
5+
composer.phar
6+
phpunit.xml

.scrutinizer.yml

Lines changed: 307 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,307 @@
1+
inherit: true
2+
3+
checks:
4+
php:
5+
verify_property_names: true
6+
verify_argument_usable_as_reference: true
7+
verify_access_scope_valid: true
8+
variable_existence: true
9+
useless_calls: true
10+
use_statement_alias_conflict: true
11+
fix_doc_comments: false
12+
avoid_corrupting_byteorder_marks: true
13+
unused_variables: true
14+
argument_type_checks: true
15+
assignment_of_null_return: true
16+
avoid_aliased_php_functions: true
17+
avoid_closing_tag: true
18+
avoid_conflicting_incrementers: true
19+
avoid_duplicate_types: true
20+
avoid_entity_manager_injection: true
21+
avoid_fixme_comments: true
22+
avoid_length_functions_in_loops: true
23+
avoid_multiple_statements_on_same_line: true
24+
avoid_perl_style_comments: true
25+
avoid_superglobals: true
26+
avoid_todo_comments: true
27+
avoid_usage_of_logical_operators: true
28+
avoid_useless_overridden_methods: true
29+
blank_line_after_namespace_declaration: true
30+
catch_class_exists: true
31+
classes_in_camel_caps: true
32+
closure_use_modifiable: true
33+
closure_use_not_conflicting: true
34+
code_rating: true
35+
deadlock_detection_in_loops: true
36+
deprecated_code_usage: true
37+
duplication: true
38+
encourage_shallow_comparison: true
39+
encourage_single_quotes: true
40+
foreach_traversable: true
41+
foreach_usable_as_reference: true
42+
function_in_camel_caps: true
43+
instanceof_class_exists: true
44+
line_length:
45+
max_length: '120'
46+
method_calls_on_non_object: true
47+
missing_arguments: true
48+
more_specific_types_in_doc_comments: true
49+
newline_at_end_of_file: true
50+
no_commented_out_code: true
51+
no_debug_code: true
52+
no_duplicate_arguments: true
53+
no_empty_statements: true
54+
no_error_suppression: true
55+
no_eval: true
56+
no_exit: true
57+
no_global_keyword: true
58+
no_goto: true
59+
no_long_variable_names:
60+
maximum: '20'
61+
no_non_implemented_abstract_methods: true
62+
no_property_on_interface: true
63+
no_short_method_names:
64+
minimum: '0'
65+
no_short_open_tag: true
66+
no_short_variable_names:
67+
minimum: '0'
68+
no_trailing_whitespace: true
69+
no_trait_type_hints: true
70+
no_underscore_prefix_in_methods: true
71+
no_underscore_prefix_in_properties: true
72+
no_unnecessary_final_modifier: true
73+
no_unnecessary_if: true
74+
non_commented_empty_catch_block: true
75+
one_class_per_file: true
76+
overriding_private_members: true
77+
parameter_non_unique: true
78+
parse_doc_comments: true
79+
optional_parameters_at_the_end: true
80+
param_doc_comment_if_not_inferrable: true
81+
parameter_doc_comments: true
82+
parameters_in_camelcaps: true
83+
php5_style_constructor: true
84+
precedence_in_conditions: true
85+
precedence_mistakes: true
86+
prefer_while_loop_over_for_loop: true
87+
properties_in_camelcaps: true
88+
property_assignments: true
89+
psr2_class_declaration: true
90+
psr2_switch_declaration: true
91+
require_php_tag_first: true
92+
require_scope_for_methods: true
93+
require_scope_for_properties: true
94+
return_doc_comment_if_not_inferrable: true
95+
return_doc_comments: true
96+
security_vulnerabilities: true
97+
side_effects_or_types: true
98+
simplify_boolean_return: true
99+
single_namespace_per_use: true
100+
sql_injection_vulnerabilities: true
101+
symfony_request_injection: true
102+
switch_fallthrough_commented: true
103+
too_many_arguments: true
104+
unreachable_code: true
105+
unused_methods: true
106+
unused_parameters: true
107+
unused_properties: true
108+
uppercase_constants: true
109+
use_self_instead_of_fqcn: true
110+
111+
112+
filter:
113+
excluded_paths:
114+
- 'build/*'
115+
- 'resources/*'
116+
- 'tests/*'
117+
- 'vendor/*'
118+
119+
tools:
120+
121+
# PHP Code Similarity Analyzer (https://scrutinizer-ci.com/docs/tools/php/code-similarity-analyzer/)
122+
php_sim:
123+
min_mass: 30 # Defaults to 16
124+
125+
126+
# SensioLabs Security Checker (https://scrutinizer-ci.com/docs/tools/php/security-advisory-checker/)
127+
sensiolabs_security_checker:
128+
enabled: true
129+
130+
131+
# PHP Code Sniffer (https://scrutinizer-ci.com/docs/tools/php/code-sniffer/)
132+
php_code_sniffer:
133+
enabled: true
134+
config:
135+
standard: PSR2
136+
filter:
137+
excluded_paths:
138+
- 'build/*'
139+
- 'resources/*'
140+
- 'tests/*'
141+
- 'vendor/*'
142+
143+
144+
# PHP Copy/Paste Detector
145+
php_cpd:
146+
enabled: true
147+
excluded_dirs:
148+
- 'build'
149+
- 'resources'
150+
- 'tests'
151+
- 'vendor'
152+
153+
154+
# Analyzes the size and structure of a PHP project.
155+
php_loc:
156+
enabled: true
157+
excluded_dirs:
158+
- 'build'
159+
- 'resources'
160+
- 'tests'
161+
- 'vendor'
162+
163+
164+
# PHP Mess Detector
165+
php_mess_detector:
166+
enabled: true
167+
config:
168+
rulesets:
169+
- codesize
170+
- unusedcode
171+
- naming
172+
- design
173+
- controversial
174+
filter:
175+
excluded_paths:
176+
- 'build/*'
177+
- 'tests/*'
178+
- 'resources/*'
179+
- 'vendor/*'
180+
181+
182+
# PHP PDepend (https://scrutinizer-ci.com/docs/tools/php/pdepend/)
183+
php_pdepend:
184+
enabled: true
185+
excluded_dirs:
186+
- 'build'
187+
- 'resources'
188+
- 'tests'
189+
- 'vendor'
190+
191+
192+
# PHP Analyzer (https://scrutinizer-ci.com/docs/tools/php/php-analyzer/)
193+
php_analyzer:
194+
enabled: true
195+
config:
196+
parameter_reference_check:
197+
enabled: true
198+
checkstyle:
199+
enabled: true
200+
no_trailing_whitespace: true
201+
naming:
202+
enabled: true
203+
local_variable: ^[a-z][a-zA-Z0-9]*$
204+
abstract_class_name: ^Abstract|Factory$
205+
utility_class_name: Utils?$
206+
constant_name: ^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$
207+
property_name: ^[a-z][a-zA-Z0-9]*$
208+
method_name: ^(?:[a-z]|__)[a-zA-Z0-9]*$
209+
parameter_name: ^[a-z][a-zA-Z0-9]*$
210+
interface_name: ^[A-Z][a-zA-Z0-9]*Interface$
211+
type_name: ^[A-Z][a-zA-Z0-9]*$
212+
exception_name: ^[A-Z][a-zA-Z0-9]*Exception$
213+
isser_method_name: ^(?:is|has|should|may|supports)
214+
unreachable_code:
215+
enabled: true
216+
check_access_control:
217+
enabled: true
218+
typo_checks:
219+
enabled: true
220+
check_variables:
221+
enabled: true
222+
check_calls:
223+
enabled: true
224+
method_call_validity: true
225+
too_many_arguments: true
226+
missing_argument: true
227+
argument_type_checks: lenient # Allowed Values: "disabled", "lenient", "strict"
228+
check_debug_code:
229+
enabled: true
230+
check_property_assignments:
231+
enabled: true
232+
method_contract_checks:
233+
enabled: true
234+
verify_interface_like_constraints: true
235+
verify_documented_constraints: true
236+
verify_parent_constraints: true
237+
check_request_data_usage:
238+
enabled: true
239+
suspicious_code:
240+
enabled: true
241+
overriding_parameter: false
242+
overriding_closure_use: true
243+
parameter_closure_use_conflict: true
244+
parameter_multiple_times: true
245+
non_existent_class_in_instanceof_check: true
246+
non_existent_class_in_catch_clause: true
247+
assignment_of_null_return: true
248+
non_commented_switch_fallthrough: true
249+
non_commented_empty_catch_block: true
250+
overriding_private_members: true
251+
use_statement_alias_conflict: true
252+
precedence_in_condition_assignment: true
253+
dead_assignments:
254+
enabled: true
255+
deadlock_detection:
256+
enabled: true
257+
verify_php_doc_comments:
258+
enabled: true
259+
parsable: true
260+
traits_are_not_type_hinted: true
261+
parameters: true
262+
return: true
263+
suggest_more_specific_types: true
264+
ask_for_return_if_not_inferrable: true
265+
ask_for_param_type_annotation: ~
266+
loops_must_use_braces:
267+
enabled: true
268+
check_usage_context:
269+
enabled: true
270+
foreach:
271+
value_as_reference: true
272+
traversable: true
273+
missing_argument: ~
274+
argument_type_checks: ~
275+
simplify_boolean_return:
276+
enabled: true
277+
phpunit_checks:
278+
enabled: false
279+
reflection_checks:
280+
enabled: true
281+
282+
# Checks Common Precedence Mistakes
283+
precedence_checks:
284+
enabled: true
285+
assignment_in_condition: true
286+
comparison_of_bit_result: true
287+
basic_semantic_checks:
288+
enabled: true
289+
property_on_interface: true
290+
missing_abstract_methods: true
291+
unused_code:
292+
enabled: true
293+
methods: true
294+
parameters: true
295+
deprecation_checks:
296+
enabled: true
297+
useless_function_calls:
298+
enabled: true
299+
metrics_lack_of_cohesion_methods:
300+
enabled: true
301+
metrics_coupling:
302+
enabled: true
303+
stable_code:
304+
namespace_prefixes: []
305+
classes: []
306+
symfony_request_injection:
307+
enabled: true

0 commit comments

Comments
 (0)