Repository Config
build:
environment:
php:
version: 7.2
ini:
'date.timezone': 'Europe/Berlin'
variables:
EGW_REPO_BASE: https://github.com/EGroupware
dependencies:
before:
- cd ~/build
- php -v
- php install-cli.php -v
- composer require --dev phpunit/phpunit:7 --ignore-platform-reqs
nodes:
tests: true
analysis:
tests:
override:
- composer
-
command: phpcs-run
use_website_config: true
- php-scrutinizer-run
- js-scrutinizer-run
checks:
php:
fix_php_opening_tag: false
remove_php_closing_tag: false
no_mixed_inline_html: false
require_braces_around_control_structures: false
psr2_control_structure_declaration: false
avoid_superglobals: false
security_vulnerabilities: true
no_exit: false
return_doc_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