Skip to content

Commit

Permalink
3.0.10
Browse files Browse the repository at this point in the history
Added codeclimate check config
  • Loading branch information
nilsteampassnet committed Nov 13, 2023
1 parent 429b093 commit 2f09299
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ engines:
phpcs:
php_version: 7.4
exclude_paths:
- "vendor/**"
- "plugins/**"
- "includes/libraries/cryptojs/**"
- "includes/libraries/csrfp/**"
- "includes/libraries/ezimuel/**"
- "includes/libraries/plupload/**"
- "includes/libraries/yubico/**"
- "vendor/**"
- "plugins/**"
- "includes/libraries/cryptojs/**"
- "includes/libraries/csrfp/**"
- "includes/libraries/ezimuel/**"
- "includes/libraries/plupload/**"
- "includes/libraries/yubico/**"
50 changes: 49 additions & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,52 @@ exclude_patterns:
- "includes/libraries/csrfp/**"
- "includes/libraries/ezimuel/**"
- "includes/libraries/plupload/**"
- "includes/libraries/yubico/**"
- "includes/libraries/yubico/**"

version: "2" # required to adjust maintainability checks
checks:
argument-count:
config:
threshold: 4
complex-logic:
config:
threshold: 12
file-lines:
config:
threshold: 250
method-complexity:
config:
threshold: 5
method-count:
config:
threshold: 20
method-lines:
config:
threshold: 50
nested-control-flow:
config:
threshold: 4
return-statements:
config:
threshold: 4
similar-code:
config:
threshold: # language-specific defaults. an override will affect all languages.
identical-code:
config:
threshold: # language-specific defaults. an override will affect all languages.

plugins:
phpcodesniffer:
enabled: true
eslint:
enabled: false
csslint:
enabled: true
phan:
enabled: true
channel: "beta"
config:
file_extensions: "php"
phpmd:
enabled: true
2 changes: 1 addition & 1 deletion includes/config/include.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
define('TP_VERSION', '3.0.10');
define("UPGRADE_MIN_DATE", "1697990713");
define('TP_VERSION_MINOR', '124');
define('TP_VERSION_MINOR', '125');
define('TP_TOOL_NAME', 'Teampass');
define('TP_ONE_DAY_SECONDS', 86400);
define('TP_ONE_WEEK_SECONDS', 604800);
Expand Down
2 changes: 1 addition & 1 deletion sources/main.functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -4347,4 +4347,4 @@ function returnIfSet($value, $retFalse = '', $retTrue = null)
{

return isset($value) === true ? ($retTrue === null ? $value : $retTrue) : $retFalse;
}
}

0 comments on commit 2f09299

Please sign in to comment.