Repository Config
build:
nodes:
analysis:
project_setup:
override:
- 'true'
tests:
override:
- php-scrutinizer-run
-
command: phpcs-run
use_website_config: true
environment:
node:
version: 6.0.0
tests: true
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: false
no_exit: false
javascript: true
filter:
excluded_paths:
- '*.min.js'
- '*/vendor/*'
- '*/build/*'
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
around_operators:
relational: false
concatenation: true
negation: true
Global Config
checks:
php:
coding_standard:
name: WordPress
fix_line_ending: true
uppercase_constants: true
encourage_single_quotes: true
coding_style:
php:
indentation:
general:
use_tabs: true
spaces:
around_operators:
unary_additive: true
concatenation: true
negation: true
within:
array_initializer: true
grouping: true
function_call: true
function_declaration: true
if: true
for: true
while: true
switch: true
catch: true
type_cast: true
braces:
classes_functions:
class: end-of-line
function: 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