|
@@ -4,19 +4,82 @@ imports:
|
|
|
- php
|
|
|
|
|
|
filter:
|
|
|
- excluded_paths: [build/*, dev/*, doc/*, test/*, htdocs/includes/*]
|
|
|
-
|
|
|
+ excluded_paths:
|
|
|
+ - 'build/*'
|
|
|
+ - 'dev/*'
|
|
|
+ - 'doc/*'
|
|
|
+ - 'test/*'
|
|
|
+ - 'htdocs/includes/*'
|
|
|
+ paths: { }
|
|
|
+
|
|
|
tools:
|
|
|
- # Similar Code Detector
|
|
|
- php_sim: true
|
|
|
+ # Similar code detection
|
|
|
+ php_sim:
|
|
|
+ enabled: true
|
|
|
+ min_mass: 16
|
|
|
+ filter:
|
|
|
+ excluded_paths:
|
|
|
+ - 'build/*'
|
|
|
+ - 'dev/*'
|
|
|
+ - 'doc/*'
|
|
|
+ - 'test/*'
|
|
|
+ - 'htdocs/includes/*'
|
|
|
+ paths: { }
|
|
|
+
|
|
|
+ # php_depend
|
|
|
+ php_pdepend:
|
|
|
+ enabled: true
|
|
|
+ configuration_file: null
|
|
|
+ suffixes:
|
|
|
+ - php
|
|
|
+ excluded_dirs: { }
|
|
|
+ filter:
|
|
|
+ excluded_paths:
|
|
|
+ - 'build/*'
|
|
|
+ - 'dev/*'
|
|
|
+ - 'doc/*'
|
|
|
+ - 'test/*'
|
|
|
+ - 'htdocs/includes/*'
|
|
|
+ paths: { }
|
|
|
|
|
|
- # Metrics
|
|
|
- php_pdepend: true
|
|
|
+ # php_analyzer
|
|
|
+ php_analyzer:
|
|
|
+ enabled: true
|
|
|
+ extensions:
|
|
|
+ - php
|
|
|
+ dependency_paths: { }
|
|
|
+ filter:
|
|
|
+ excluded_paths:
|
|
|
+ - 'build/*'
|
|
|
+ - 'dev/*'
|
|
|
+ - 'doc/*'
|
|
|
+ - 'test/*'
|
|
|
+ - 'htdocs/includes/*'
|
|
|
+ paths: { }
|
|
|
+ path_configs: { }
|
|
|
|
|
|
- # Some Metrics + Bug Detection/Auto-Fixes
|
|
|
- php_analyzer: true
|
|
|
+ # change tracking
|
|
|
+ php_changetracking:
|
|
|
+ enabled: true
|
|
|
+ bug_patterns:
|
|
|
+ - '\bfix(?:es|ed)?\b'
|
|
|
+ feature_patterns:
|
|
|
+ - '\badd(?:s|ed)?\b'
|
|
|
+ - '\bimplement(?:s|ed)?\b'
|
|
|
+ filter:
|
|
|
+ excluded_paths:
|
|
|
+ - 'build/*'
|
|
|
+ - 'dev/*'
|
|
|
+ - 'doc/*'
|
|
|
+ - 'test/*'
|
|
|
+ - 'htdocs/includes/*'
|
|
|
+ paths: { }
|
|
|
|
|
|
# Coding-Style / Bug Detection
|
|
|
js_hint: true
|
|
|
|
|
|
-## Overwrite as needed here.
|
|
|
+
|
|
|
+before_commands: { }
|
|
|
+after_commands: { }
|
|
|
+artifacts: { }
|
|
|
+build_failure_conditions: { }
|