1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-16 20:28:28 +01:00
php-e107/.codeclimate.yml

111 lines
2.3 KiB
YAML
Raw Normal View History

2016-04-18 09:47:42 -07:00
---
version: "2"
checks:
argument-count:
config:
threshold: 4
complex-logic:
config:
threshold: 4
file-lines:
config:
2020-12-23 08:23:00 -08:00
threshold: 1500
method-complexity:
config:
threshold: 250
method-count:
config:
threshold: 250
method-lines:
config:
threshold: 500
nested-control-flow:
config:
threshold: 4
return-statements:
config:
threshold: 4
similar-code:
enabled: false
plugins:
2016-04-18 09:47:42 -07:00
csslint:
enabled: false
duplication:
2016-04-18 09:47:42 -07:00
enabled: true
2016-04-21 09:22:47 -07:00
checks:
Identical code:
enabled: false
2016-04-21 11:55:54 -07:00
Design/TooManyPublicMethods:
enabled: false
2020-12-23 08:46:39 -08:00
Design/TooManyMethods:
enabled: false
2016-04-18 09:47:42 -07:00
config:
languages:
- javascript
- php
eslint:
enabled: false
fixme:
enabled: false
phpmd:
enabled: true
2016-04-18 12:52:11 -07:00
checks:
method-complexity:
enabled: false
method-lines:
enabled: false
2016-04-18 13:12:12 -07:00
Identical code:
enabled: false
2020-12-23 11:13:20 -08:00
CyclomaticComplexity:
enabled: false
2016-04-18 12:52:11 -07:00
CleanCode/StaticAccess:
enabled: false
2020-12-23 11:13:20 -08:00
ExcessivePublicCount:
enabled: false
2016-04-18 12:52:11 -07:00
UnusedFormalParameter:
enabled: false
2016-04-18 13:12:12 -07:00
Design/TooManyFields:
enabled: false
2020-12-23 09:01:00 -08:00
Design/TooManyMethods:
enabled: false
Design/TooManyPublicMethods:
enabled: false
Design/WeightedMethodCount:
enabled: false
2016-04-24 17:02:34 -07:00
CleanCode/BooleanArgumentFlag:
enabled: false
CleanCode/ElseExpression:
enabled: false
2020-12-23 13:23:48 -08:00
UnusedLocalVariable:
enabled: false
2016-04-18 12:17:27 -07:00
config:
file_extensions: "php"
rulesets: "cleancode,unusedcode,codesize"
exclude_patterns:
- "config/"
- "db/"
- "dist/"
- "features/"
- "**/node_modules/"
- "script/"
- "**/spec/"
- "**/test/"
- "**/tests/"
- "**/vendor/"
- "**/*.d.ts"
- "e107_plugins/log/js/awesomechart.js"
- "e107_core/**/*.sc"
- "e107_docs/**/*"
2020-12-23 08:46:39 -08:00
- "e107_handlers/magpie_rss.php"
- "e107_handlers/pclerror.lib.php"
- "e107_handlers/pclzip.lib.php"
- "e107_handlers/pcltar.lib.php"
- "e107_handlers/pcltrace.lib.php"
- "e107_images/**/*"
- "e107_system/core_image.phar"
- "e107_web/**/*"
Resolve Code Climate error about file not existing Error message from Code Climate: > Exception: The given file "/code/e107_tests/lib/ci/salt/pillars/config-local.sls" does not exist. in /usr/src/app/vendor/pdepend/pdepend/src/main/php/PDepend/Engine.php > #0 /usr/src/app/vendor/phpmd/phpmd/src/main/php/PHPMD/ParserFactory.php(129): PDepend\Engine->addFile('/code/e107_test...') > #1 /usr/src/app/vendor/phpmd/phpmd/src/main/php/PHPMD/ParserFactory.php(109): PHPMD\ParserFactory->initInput(Object(PDepend\Engine), Object(PHPMD\PHPMD)) > #2 /usr/src/app/vendor/phpmd/phpmd/src/main/php/PHPMD/ParserFactory.php(76): PHPMD\ParserFactory->init(Object(PDepend\Engine), Object(PHPMD\PHPMD)) > #3 /usr/src/app/vendor/phpmd/phpmd/src/main/php/PHPMD/PHPMD.php(215): PHPMD\ParserFactory->create(Object(PHPMD\PHPMD)) > #4 /usr/src/app/Runner.php(116): PHPMD\PHPMD->processFiles('/code/e107_test...', 'cleancode,unuse...', Array, Object(PHPMD\RuleSetFactory)) > #5 /usr/src/app/vendor/barracudanetworks/forkdaemon-php/fork_daemon.php(1852): CodeClimate\PHPMD\Runner->run(Array) > #6 /usr/src/app/vendor/barracudanetworks/forkdaemon-php/fork_daemon.php(1772): fork_daemon->invoke_callback(Array, Array, false) > #7 /usr/src/app/vendor/barracudanetworks/forkdaemon-php/fork_daemon.php(1673): fork_daemon->fork_work_unit(Array, '', -1) > #8 /usr/src/app/vendor/barracudanetworks/forkdaemon-php/fork_daemon.php(1445): fork_daemon->process_work_unit(-1) > #9 /usr/src/app/Runner.php(31): fork_daemon->process_work(false) > #10 /usr/src/app/engine.php(35): CodeClimate\PHPMD\Runner->queueDirectory('/code') > #11 {main}
2019-12-27 19:35:19 +01:00
- "e107_tests/tests/**/*"
# Ignore symlinks that are allowed to be broken due to local configurations
- "e107_tests/lib/ci/salt/pillars/config.sls"
- "e107_tests/lib/ci/salt/pillars/config-local.sls"