Skip to content

Commit

Permalink
adjust scrutinizer settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mirsch committed May 26, 2016
1 parent fe546f6 commit 57bea12
Showing 1 changed file with 19 additions and 107 deletions.
126 changes: 19 additions & 107 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
build:
environment:
php:
version: 5.6
dependencies:
before:
- cd htdocs/
- composer install
- cd ..
tests:
override:
-
command: './bin/console code:sniff --xml'
analysis:
file: './tests/cs-data'
format: 'php-cs-checkstyle'

filter:
paths:
- 'htdocs/*'
Expand All @@ -12,110 +29,5 @@ filter:
- 'htdocs/vendor/*'

checks:
php:
fix_php_opening_tag: false
remove_php_closing_tag: false
avoid_closing_tag: true
one_class_per_file: true
side_effects_or_types: true
no_mixed_inline_html: false
require_braces_around_control_structures: true
php5_style_constructor: true
no_global_keyword: true
avoid_usage_of_logical_operators: true
psr2_class_declaration: true
no_underscore_prefix_in_properties: true
no_underscore_prefix_in_methods: true
blank_line_after_namespace_declaration: true
single_namespace_per_use: true
psr2_switch_declaration: true
psr2_control_structure_declaration: true
avoid_superglobals: false
security_vulnerabilities: true
no_exit: false
uppercase_constants: true
return_doc_comments: true
remove_extra_empty_lines: true
properties_in_camelcaps: true
prefer_while_loop_over_for_loop: true
phpunit_assertions: true
parameter_doc_comments: true
optional_parameters_at_the_end: true
no_long_variable_names:
maximum: '20'
no_goto: true
function_in_camel_caps: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: false
order_alphabetically: true
encourage_single_quotes: true
encourage_postdec_operator: true
classes_in_camel_caps: true
avoid_multiple_statements_on_same_line: true
avoid_fixme_comments: true

javascript:
valid_typeof: true
yoda:
setting: 'Disallow Yoda Conditions'
wrap_iife: true
no_use_before_define: true
no_unused_vars: true
no_unreachable: true
no_undef: true
no_trailing_spaces: true
no_space_before_semi: true
no_shadow: true
no_self_compare: true
no_script_url: true
no_return_assign: true
no_reserved_keys: true
no_redeclare: true
no_mixed_spaces_and_tabs: true
no_loop_func: true
no_irregular_whitespace: true

coding_style:
php:
spaces:
around_operators:
concatenation: false
ternary_operator:
before_condition: true
after_condition: true
before_alternative: true
after_alternative: true
other:
after_type_cast: false
braces:
classes_functions:
class: new-line
function: new-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: lower

tools:
php_code_sniffer:
config:
standard: "PSR2"
php_cs_fixer:
enabled: true
config: { level: psr2 }
php: true
javascript: true

0 comments on commit 57bea12

Please sign in to comment.