Update scruitinizer.yml with codestyle

This commit is contained in:
Mike Jolley 2015-02-16 12:29:22 +00:00
parent 969e2d3b18
commit a072bba134
1 changed files with 53 additions and 1 deletions

View File

@ -2,6 +2,8 @@ filter:
excluded_paths:
- tests/*
- apigen/*
- dummy-data/*
- i18n/*
- includes/api/v1/*
- includes/libraries/*
- includes/updates/*
@ -11,7 +13,57 @@ checks:
php:
code_rating: true
duplication: true
code_rating: true
duplication: true
psr2_switch_declaration: false
psr2_control_structure_declaration: false
psr2_class_declaration: false
one_class_per_file: false
avoid_superglobals: false
require_php_tag_first: false
tools:
external_code_coverage:
timeout: 600
timeout: 600
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
around_operators:
negation: true
within:
brackets: true
array_initializer: true
grouping: true
function_call: true
function_declaration: true
if: true
for: true
while: true
switch: true
catch: true
braces:
classes_functions:
class: end-of-line
function: end-of-line
closure: end-of-line
if:
opening: end-of-line
for:
opening: end-of-line
while:
opening: end-of-line
do_while:
opening: end-of-line
switch:
opening: end-of-line
try:
opening: end-of-line
upper_lower_casing:
keywords:
general: lower
constants:
true_false_null: upper