You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

128 lines
3.7 KiB

build:
dependencies:
before:
# Overwrites inferred commands
override:
- 'composer install --no-interaction --no-dev --prefer-source --no-scripts --ignore-platform-reqs'
environment:
memcached: true
nodes:
analysis:
project_setup:
override: true
tests:
override: [php-scrutinizer-run]
php70:
environment:
php:
version: 7.0.27
ini:
memory_limit: "4096M"
php71:
environment:
php:
version: 7.1
ini:
memory_limit: "4096M"
php72:
environment:
php:
version: 7.2
ini:
memory_limit: "4096M"
checks:
php:
avoid_closing_tag: false
avoid_multiple_statements_on_same_line: true
avoid_perl_style_comments: true
avoid_superglobals: false
avoid_usage_of_logical_operators: true
blank_line_after_namespace_declaration: true
classes_in_camel_caps: true
code_rating: true
duplication: true
encourage_postdec_operator: true
encourage_single_quotes: true
fix_php_opening_tag: false
function_in_camel_caps: true
newline_at_end_of_file: true
no_exit: false
no_global_keyword: false
no_mixed_inline_html: false
no_short_method_names:
minimum: '3'
no_short_variable_names:
minimum: '3'
no_underscore_prefix_in_methods: true
no_underscore_prefix_in_properties: true
one_class_per_file: true
optional_parameters_at_the_end: true
param_doc_comment_if_not_inferrable: true
php5_style_constructor: true
properties_in_camelcaps: true
psr2_class_declaration: false
psr2_control_structure_declaration: false
psr2_switch_declaration: false
remove_php_closing_tag: false
require_braces_around_control_structures: false
security_vulnerabilities: false
side_effects_or_types: false
single_namespace_per_use: false
coding_style:
php:
braces:
classes_functions:
class: new-line
function: new-line
closure: end-of-line
do_while:
opening: end-of-line
if:
opening: end-of-line
for:
opening: end-of-line
switch:
opening: end-of-line
try:
opening: end-of-line
while:
opening: end-of-line
indentation:
general:
use_tabs: true
spaces:
around_operators:
bitwise: true
concatenation: true
other:
after_type_cast: false
upper_lower_casing:
keywords:
general: lower
constants:
true_false_null: undefined
filter:
excluded_paths:
- "docs/"
- "resources/"
- "app/config/bootstrap/action.php"
- "app/config/bootstrap/cache.php"
- "app/config/bootstrap/console.php"
- "app/config/bootstrap/errors.php"
- "app/config/bootstrap/g11n.php"
- "app/config/bootstrap/logger.php"
- "app/config/bootstrap/media.php"
- "app/config/bootstrap/session.php"
- "app/config/routes.php"
dependency_paths:
- "app/libraries/"
- "libraries/"
- "libs/"