From bb0a28f3af285f7c834222f8de1a30467b746906 Mon Sep 17 00:00:00 2001 From: wangxiao Date: Sat, 16 Jul 2022 16:08:05 +0800 Subject: [PATCH 1/4] update version --- idea-plugin/p3c-common/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea-plugin/p3c-common/build.gradle b/idea-plugin/p3c-common/build.gradle index 69ff629e6..65d8366d6 100644 --- a/idea-plugin/p3c-common/build.gradle +++ b/idea-plugin/p3c-common/build.gradle @@ -1,5 +1,5 @@ plugins { - id "org.jetbrains.intellij" version '0.4.5' + id "org.jetbrains.intellij" version '0.7.3' } apply plugin: 'kotlin' apply plugin: 'idea' From fd0f6ed1cb4fb66adb49add53e610c4ba04f3277 Mon Sep 17 00:00:00 2001 From: wangxiao Date: Sat, 16 Jul 2022 16:17:30 +0800 Subject: [PATCH 2/4] feat(p3c-pmd): add ingnore mapper --- .../pmd/lang/java/rule/naming/ClassNamingShouldBeCamelRule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p3c-pmd/src/main/java/com/alibaba/p3c/pmd/lang/java/rule/naming/ClassNamingShouldBeCamelRule.java b/p3c-pmd/src/main/java/com/alibaba/p3c/pmd/lang/java/rule/naming/ClassNamingShouldBeCamelRule.java index 57ead3df3..a0c442082 100644 --- a/p3c-pmd/src/main/java/com/alibaba/p3c/pmd/lang/java/rule/naming/ClassNamingShouldBeCamelRule.java +++ b/p3c-pmd/src/main/java/com/alibaba/p3c/pmd/lang/java/rule/naming/ClassNamingShouldBeCamelRule.java @@ -34,7 +34,7 @@ public class ClassNamingShouldBeCamelRule extends AbstractAliRule { private static final Pattern PATTERN - = Pattern.compile("^I?([A-Z][a-z0-9]+)+(([A-Z])|(DO|DTO|VO|DAO|BO|DAOImpl|YunOS|AO|PO))?$"); + = Pattern.compile("^I?([A-Z][a-z0-9]+)+(([A-Z])|(DO|DTO|VO|DAO|BO|DAOImpl|YunOS|AO|PO|Mapper))?$"); private static final List CLASS_NAMING_WHITE_LIST = NameListConfig.NAME_LIST_SERVICE.getNameList( ClassNamingShouldBeCamelRule.class.getSimpleName(), "CLASS_NAMING_WHITE_LIST"); From f687ccbae041993b36f98158a0cc6088122921ce Mon Sep 17 00:00:00 2001 From: wangxiao Date: Sat, 16 Jul 2022 16:18:39 +0800 Subject: [PATCH 3/4] revert version --- idea-plugin/p3c-common/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea-plugin/p3c-common/build.gradle b/idea-plugin/p3c-common/build.gradle index 65d8366d6..69ff629e6 100644 --- a/idea-plugin/p3c-common/build.gradle +++ b/idea-plugin/p3c-common/build.gradle @@ -1,5 +1,5 @@ plugins { - id "org.jetbrains.intellij" version '0.7.3' + id "org.jetbrains.intellij" version '0.4.5' } apply plugin: 'kotlin' apply plugin: 'idea' From b827f79709dad98eb2f29e3a4fbad61a7208b619 Mon Sep 17 00:00:00 2001 From: wangxiao Date: Sat, 16 Jul 2022 16:20:49 +0800 Subject: [PATCH 4/4] feat(p3c-pmd): ignore mybatis generetor Mapper --- .../pmd/lang/java/rule/naming/ClassNamingShouldBeCamelRule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p3c-pmd/src/main/java/com/alibaba/p3c/pmd/lang/java/rule/naming/ClassNamingShouldBeCamelRule.java b/p3c-pmd/src/main/java/com/alibaba/p3c/pmd/lang/java/rule/naming/ClassNamingShouldBeCamelRule.java index a0c442082..7a820920a 100644 --- a/p3c-pmd/src/main/java/com/alibaba/p3c/pmd/lang/java/rule/naming/ClassNamingShouldBeCamelRule.java +++ b/p3c-pmd/src/main/java/com/alibaba/p3c/pmd/lang/java/rule/naming/ClassNamingShouldBeCamelRule.java @@ -34,7 +34,7 @@ public class ClassNamingShouldBeCamelRule extends AbstractAliRule { private static final Pattern PATTERN - = Pattern.compile("^I?([A-Z][a-z0-9]+)+(([A-Z])|(DO|DTO|VO|DAO|BO|DAOImpl|YunOS|AO|PO|Mapper))?$"); + = Pattern.compile("^I?([A-Z][a-z0-9]+)+(([A-Z])|(DO|DTO|VO|DAO|BO|DAOImpl|YunOS|AO|PO|DOMapper))?$"); private static final List CLASS_NAMING_WHITE_LIST = NameListConfig.NAME_LIST_SERVICE.getNameList( ClassNamingShouldBeCamelRule.class.getSimpleName(), "CLASS_NAMING_WHITE_LIST");