Files
newznab-tmux/.scrutinizer.yml
T

100 lines
3.5 KiB
YAML

build:
dependencies:
# Overwrites inferred commands
override:
- 'composer install --no-interaction --prefer-source --no-scripts --ignore-platform-reqs'
before:
- cp .env.scrutinizer .env
- mysql -u root -e "SET GLOBAL innodb_file_per_table = 1;"
- mysql -u root -e "SET GLOBAL innodb_file_format = 'BARRACUDA';"
- mysql -u root -e "SET GLOBAL innodb_large_prefix = 1;"
- mysql -u root -e "CREATE DATABASE TEST;"
- mysql -u root -e "GRANT ALL ON TEST.* TO 'TEST'@'localhost' IDENTIFIED BY 'TEST';"
- mysql -u root -e "GRANT FILE ON *.* TO 'TEST'@'localhost';"
- mysql -u TEST -pTEST TEST < resources/db/schema/mysql-ddl.sql
- mysql --local-infile=1 -u TEST -pTEST -e "LOAD DATA LOCAL INFILE 'resources/db/schema/data/10-settings.tsv' IGNORE INTO TABLE TEST.settings FIELDS TERMINATED BY '\t' OPTIONALLY ENCLOSED BY '\'' LINES TERMINATED BY '\n' IGNORE 1 LINES (section,subsection,name,value,hint,setting);"
environment:
memcached: true
mysql: 5.6
php:
version: '7.1.1'
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: [vendor/*, libraries/*, libs/*, resources/*]
tools:
sensiolabs_security_checker: true