From 3ba9bb27978503b96aba2465e050eef7da310bd7 Mon Sep 17 00:00:00 2001 From: KyleKatarn Date: Thu, 19 Oct 2017 12:22:35 +0200 Subject: [PATCH] Add custom ruleset for PHPMD --- .codeclimate.yml | 7 ++----- .gitattributes | 1 + rulesets.xml | 27 +++++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 rulesets.xml diff --git a/.codeclimate.yml b/.codeclimate.yml index ed1f99e4..d0c1b56c 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -12,11 +12,8 @@ engines: enabled: true phpmd: enabled: true - checks: - Design/TooManyPublicMethods: - maxmethods: 20 - Design/WeightedMethodCount: - maximum: 80 + config: + rulesets: rulesets.xml ratings: paths: - "**.inc" diff --git a/.gitattributes b/.gitattributes index 3221587a..0178ac08 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6,6 +6,7 @@ /.codeclimate.yml export-ignore /.styleci.yml export-ignore /.editorconfig export-ignore +/ruleset.xml export-ignore /*.md export-ignore # Auto detect text files and perform LF normalization diff --git a/rulesets.xml b/rulesets.xml new file mode 100644 index 00000000..0b1ca84b --- /dev/null +++ b/rulesets.xml @@ -0,0 +1,27 @@ + + + Custom rules for checking my project + + + + + + + + + + + + + + + + + + + + +