Repository Config
build:
environment:
php:
version: 7.0.6
ini:
'date.timezone': 'Europe/Berlin'
variables:
EGW_REPO_BASE: https://github.com/EGroupware
dependencies:
before:
# install mr and use it to fetch our dependencies
- sudo apt-get install -y myrepos
- cd ~/build
- mr --stats --trust-all checkout
checks:
php:
fix_php_opening_tag: false
remove_php_closing_tag: false
one_class_per_file: false
side_effects_or_types: false
no_mixed_inline_html: false
require_braces_around_control_structures: false
php5_style_constructor: true
no_global_keyword: false
avoid_usage_of_logical_operators: false
psr2_class_declaration: false
no_underscore_prefix_in_properties: false
no_underscore_prefix_in_methods: false
blank_line_after_namespace_declaration: false
single_namespace_per_use: false
psr2_switch_declaration: false
psr2_control_structure_declaration: false
avoid_superglobals: false
security_vulnerabilities: true
no_exit: false
uppercase_constants: true
use_self_instead_of_fqcn: true
return_doc_comments: true
optional_parameters_at_the_end: true
avoid_perl_style_comments: true
javascript: true
filter:
excluded_paths:
- '*.min.js'
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
around_operators:
bitwise: false
other:
after_type_cast: false
braces:
classes_functions:
class: new-line
function: new-line
closure: new-line
if:
opening: new-line
else_on_new_line: true
for:
opening: new-line
while:
opening: new-line
switch:
opening: new-line
try:
catch_on_new_line: true
finally_on_new_line: true
upper_lower_casing:
keywords:
general: lower