Skip to content

Commit 250aab4

Browse files
committed
added travis file
1 parent 12c38d4 commit 250aab4

File tree

3 files changed

+184
-0
lines changed

3 files changed

+184
-0
lines changed

.scrutinizer.yml

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
filter:
2+
paths:
3+
- 'app/*'
4+
- 'src/*'
5+
excluded_paths:
6+
- 'bootstrap/*'
7+
- 'config/*'
8+
- 'public/*'
9+
- 'resources/*'
10+
- 'vendor/*'
11+
- 'views/*'
12+
tools:
13+
php_analyzer: true
14+
php_mess_detector: true
15+
php_changetracking: true
16+
php_code_sniffer:
17+
config:
18+
standard: PSR2
19+
php_loc:
20+
excluded_dirs:
21+
- vendor
22+
php_pdepend:
23+
excluded_dirs:
24+
- vendor
25+
- tests
26+
checks:
27+
php:
28+
code_rating: true
29+
duplication: true
30+
variable_existence: true
31+
useless_calls: true
32+
use_statement_alias_conflict: true
33+
unused_variables: true
34+
unused_properties: true
35+
unused_parameters: true
36+
unused_methods: true
37+
unreachable_code: true
38+
sql_injection_vulnerabilities: true
39+
security_vulnerabilities: true
40+
precedence_mistakes: true
41+
precedence_in_conditions: true
42+
parameter_non_unique: true
43+
no_property_on_interface: true
44+
no_non_implemented_abstract_methods: true
45+
deprecated_code_usage: true
46+
closure_use_not_conflicting: true
47+
closure_use_modifiable: true
48+
avoid_useless_overridden_methods: true
49+
avoid_conflicting_incrementers: true
50+
assignment_of_null_return: true
51+
verify_property_names: true
52+
verify_argument_usable_as_reference: true
53+
verify_access_scope_valid: true
54+
use_self_instead_of_fqcn: true
55+
too_many_arguments: true
56+
symfony_request_injection: true
57+
switch_fallthrough_commented: true
58+
spacing_of_function_arguments: true
59+
spacing_around_non_conditional_operators: true
60+
spacing_around_conditional_operators: true
61+
space_after_cast: true
62+
single_namespace_per_use: true
63+
simplify_boolean_return: true
64+
scope_indentation:
65+
spaces_per_level: '4'
66+
return_doc_comments: true
67+
require_scope_for_properties: true
68+
require_scope_for_methods: true
69+
require_php_tag_first: true
70+
require_braces_around_control_structures: true
71+
remove_trailing_whitespace: true
72+
remove_php_closing_tag: true
73+
remove_extra_empty_lines: true
74+
psr2_switch_declaration: true
75+
psr2_control_structure_declaration: true
76+
psr2_class_declaration: true
77+
property_assignments: true
78+
properties_in_camelcaps: true
79+
prefer_while_loop_over_for_loop: true
80+
phpunit_assertions: true
81+
php5_style_constructor: true
82+
parameters_in_camelcaps: true
83+
parameter_doc_comments: true
84+
return_doc_comment_if_not_inferrable: true
85+
param_doc_comment_if_not_inferrable: true
86+
overriding_private_members: true
87+
optional_parameters_at_the_end: true
88+
one_class_per_file: true
89+
non_commented_empty_catch_block: true
90+
no_unnecessary_if: true
91+
no_unnecessary_function_call_in_for_loop: true
92+
no_unnecessary_final_modifier: true
93+
no_underscore_prefix_in_properties: true
94+
no_underscore_prefix_in_methods: true
95+
no_trailing_whitespace: true
96+
no_space_inside_cast_operator: true
97+
no_space_before_semicolon: true
98+
no_space_around_object_operator: true
99+
no_goto: true
100+
no_global_keyword: true
101+
no_exit: true
102+
no_empty_statements: true
103+
no_else_if_statements: true
104+
no_duplicate_arguments: true
105+
no_debug_code: true
106+
no_commented_out_code: true
107+
newline_at_end_of_file: true
108+
naming_conventions:
109+
local_variable: '^[a-z][a-zA-Z0-9]*$'
110+
abstract_class_name: ^Abstract|Factory$
111+
utility_class_name: 'Utils?$'
112+
constant_name: '^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$'
113+
property_name: '^[a-z][a-zA-Z0-9]*$'
114+
method_name: '^(?:[a-z]|__)[a-zA-Z0-9]*$'
115+
parameter_name: '^[a-z][a-zA-Z0-9]*$'
116+
interface_name: '^[A-Z][a-zA-Z0-9]*Interface$'
117+
type_name: '^[A-Z][a-zA-Z0-9]*$'
118+
exception_name: '^[A-Z][a-zA-Z0-9]*Exception$'
119+
isser_method_name: '^(?:is|has|should|may|supports|was)'
120+
lowercase_php_keywords: true
121+
more_specific_types_in_doc_comments: true
122+
missing_arguments: true
123+
method_calls_on_non_object: true
124+
line_length:
125+
max_length: '120'
126+
lowercase_basic_constants: true
127+
instanceof_class_exists: true
128+
function_in_camel_caps: true
129+
function_body_start_on_new_line: true
130+
fix_use_statements:
131+
remove_unused: true
132+
preserve_multiple: false
133+
preserve_blanklines: false
134+
order_alphabetically: true
135+
foreach_traversable: true
136+
foreach_usable_as_reference: true
137+
fix_php_opening_tag: true
138+
fix_line_ending: true
139+
fix_identation_4spaces: true
140+
fix_doc_comments: true
141+
ensure_lower_case_builtin_functions: true
142+
encourage_postdec_operator: true
143+
classes_in_camel_caps: true
144+
catch_class_exists: true
145+
blank_line_after_namespace_declaration: true
146+
avoid_usage_of_logical_operators: true
147+
avoid_unnecessary_concatenation: true
148+
avoid_tab_indentation: true
149+
avoid_superglobals: true
150+
avoid_perl_style_comments: true
151+
avoid_multiple_statements_on_same_line: true
152+
avoid_fixme_comments: true
153+
avoid_length_functions_in_loops: true
154+
avoid_entity_manager_injection: true
155+
avoid_duplicate_types: true
156+
avoid_corrupting_byteorder_marks: true
157+
argument_type_checks: true
158+
avoid_aliased_php_functions: true
159+
deadlock_detection_in_loops: true

.styleci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
preset: laravel

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
language: php
2+
3+
php:
4+
- 5.5
5+
- 5.6
6+
- 7.0
7+
- nightly
8+
- hhvm
9+
10+
matrix:
11+
allow_failures:
12+
- php: 7.0
13+
- php: nightly
14+
- php: hhvm
15+
16+
sudo: false
17+
18+
install: travis_retry composer install --no-interaction --prefer-source
19+
20+
script: vendor/bin/phpunit --coverage-clover=coverage.clover
21+
22+
after_script:
23+
- wget https://scrutinizer-ci.com/ocular.phar
24+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

0 commit comments

Comments
 (0)