Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit 4a8a32b

Browse files
committed
External services configuration update
1 parent 956c416 commit 4a8a32b

File tree

3 files changed

+78
-7
lines changed

3 files changed

+78
-7
lines changed

.codeclimate.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ engines:
1010
enabled: true
1111
phpmd:
1212
enabled: true
13+
config:
14+
file_extensions: "php"
15+
rulesets: "codesize.xml"
1316
ratings:
1417
paths:
15-
- "**.php"
18+
- "**.php"
1619
exclude_paths:
17-
- build/**/*
18-
- docs/**/*
19-
- tests/**/*
20-
- vendor/**/*
20+
- build/**/*
21+
- docs/**/*
22+
- tests/**/*
23+
- vendor/**/*

.scrutinizer.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
filter:
2+
paths:
3+
- 'src/*'
4+
checks:
5+
php:
6+
uppercase_constants: true
7+
return_doc_comments: true
8+
avoid_todo_comments: true
9+
classes_in_camel_caps: true
10+
newline_at_end_of_file: true
11+
no_goto: true
12+
parameter_doc_comments: true
13+
return_doc_comment_if_not_inferrable: true
14+
properties_in_camelcaps: true
15+
prefer_while_loop_over_for_loop: true
16+
phpunit_assertions: true
17+
parameters_in_camelcaps: true
18+
param_doc_comment_if_not_inferrable: true
19+
overriding_parameter: true
20+
optional_parameters_at_the_end: true
21+
no_short_variable_names:
22+
minimum: '1'
23+
no_short_method_names:
24+
minimum: '3'
25+
no_long_variable_names:
26+
maximum: '36'
27+
more_specific_types_in_doc_comments: true
28+
line_length:
29+
max_length: '120'
30+
function_in_camel_caps: true
31+
encourage_single_quotes: true
32+
encourage_postdec_operator: true
33+
check_method_contracts:
34+
verify_interface_like_constraints: true
35+
verify_documented_constraints: true
36+
verify_parent_constraints: true
37+
avoid_perl_style_comments: true
38+
avoid_multiple_statements_on_same_line: true
39+
avoid_fixme_comments: true
40+
custom_coding_standard:
41+
ruleset_path: phpcs.xml
42+
naming_conventions:
43+
local_variable: '^[a-z][a-zA-Z0-9]*$'
44+
abstract_class_name: ^Abstract|Factory$
45+
utility_class_name: '^[A-Z][a-zA-Z0-9]*$'
46+
constant_name: '^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$'
47+
property_name: '^[a-z][a-zA-Z0-9]*$'
48+
method_name: '^(?:[a-z]|__)[a-zA-Z0-9]*$'
49+
parameter_name: '^[a-z][a-zA-Z0-9]*$'
50+
interface_name: '^[A-Z][a-zA-Z0-9]*Interface$'
51+
type_name: '^[A-Z][a-zA-Z0-9]*$'
52+
exception_name: '^[A-Z][a-zA-Z0-9]*Exception$'
53+
isser_method_name: '^(?:is|has|should|may|supports)'
54+
55+
coding_style:
56+
php:
57+
indentation:
58+
general:
59+
size: 1
60+
spaces:
61+
around_operators:
62+
concatenation: true
63+
tools:
64+
external_code_coverage:
65+
timeout: 600
66+
build: true

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ after_script:
1616
- php ocular.phar code-coverage:upload --format=php-clover build/clover.xml
1717
- vendor/bin/test-reporter --coverage-report=build/clover.xml
1818
addons:
19-
code_climate:
20-
repo_token: 6e2dc2ae362276a9f3f740a8d90d3b00f076416dc8091366adb049d8db37551e
19+
code_climate:
20+
repo_token: 6e2dc2ae362276a9f3f740a8d90d3b00f076416dc8091366adb049d8db37551e
21+
notifications:
22+
email: false

0 commit comments

Comments
 (0)