67 Commits

Author SHA1 Message Date
玄坛
b7578c1499 Update README.md
更新 README 中 p3c-pmd 的版本信息
2021-12-27 16:58:53 +08:00
SeanCai
90c37cee86 Merge pull request #706 from jwenjian/master
Update message template in messages_en.xml
2021-07-30 10:10:11 +08:00
玄坛
d10884c15f Merge pull request #724 from Anteoy/master
fix: rule of BigDecimalAvoidDoubleConstructorRule description wrong key
2021-01-26 18:20:09 +08:00
玄坛
764489189c Merge pull request #795 from lianggzone/feature/class_must_have_author_rule
修复 ClassMustHaveAuthorRule Javadoc Warnings
2021-01-26 18:10:31 +08:00
liangguizhao
0fe9d1ca97 feat:修复 ClassMustHaveAuthorRule Javadoc Warnings 2021-01-09 15:08:18 +08:00
liangguizhao
19d0b99bc1 feat : 修复 java.naming.ClassNamingShouldBeCamelRule.rule.msg 中英文本不一致问题。 2021-01-08 17:16:48 +08:00
caikang.ck
a471c5f60b fix https://github.com/alibaba/p3c/issues/763 2020-10-21 17:14:44 +08:00
caikang.ck
0250c77e94 1. idea plugin 2.1.0
2. gradle upgrade to 6.6
2020-08-23 13:00:53 +08:00
caikang.ck
68924e3600 p3c-pmd 2.1.0 2020-08-22 12:35:05 +08:00
anteoy
4f453dbd9c fix: rule of BigDecimalAvoidDoubleConstructorRule description error key 2020-07-22 23:17:23 +08:00
Jiang Wenjian
7dfc482d0c Update messages_en.xml
format message template
2020-06-03 17:36:09 +08:00
Jiang Wenjian
5a05419193 Update message template in messages_en.xml
1. make method name and parameter name set in correct order
2. make method name and exception name set in correct order
2020-06-03 17:18:12 +08:00
caikang.ck
f6ea93d1b6 fix compatibility issue with new idea version 2020-04-19 19:19:30 +08:00
caikang.ck
9108bb1fe9 comment gpg plugin 2019-12-06 13:10:13 +08:00
caikang.ck
a7ea4bf5c8 verify use p3c-pmd 2.0.1 2019-12-06 11:59:40 +08:00
caikang.ck
2ac5d2c2df 1. add rule LockShouldWithTryFinallyRule
2. fix some issue
2019-12-06 11:48:21 +08:00
lqzyc
d7120ded36 Merge branch 'master' into fix 2019-12-05 19:30:27 +08:00
曾候
670c4f4ac0 fix https://github.com/alibaba/p3c/issues/209 2019-12-05 10:28:43 +08:00
昶乐
c71f8f3232 同步改动 2019-12-05 10:27:43 +08:00
caikang.ck
fdfc82f1dc v2.0.0
1. pmd -> 6.15.0
2. idea min version 2016.1
3. jdk min version 1.8
2019-06-12 14:56:03 +08:00
玄坛
1b5763a3e8 Merge pull request #479 from kerie/readme-rules
update new rules in readme
2019-04-02 14:35:12 +08:00
Bo Zhang
1dc88f5b49 Handle [string literal].equals() correctly in EqualsAvoidNullRule
This fixes https://github.com/alibaba/p3c/issues/471

Previously, the following code can't pass EqualsAvoidNullRule:

public class Test {
  private static final String VERSION = System.getProperty("v");
  public boolean isJava6(){
    return "1.6".equals(VERSION);
  }
}

This PR fixes this issue by checking if the caller is a literal.
2019-03-29 16:23:23 +08:00
可期
507ecbf8b4 update new rules in readme 2019-03-19 19:14:06 +08:00
玄坛
b878e0d9f8 Update README.md
Update the number of rules for p3c.
2019-03-19 16:19:24 +08:00
玄坛
465aa6d5b6 Merge pull request #474 from slievrly/patch-1
Update README.md
2019-03-19 14:57:15 +08:00
玄坛
d36dc488f0 Merge pull request #459 from rhinoceros/master
LowerCamelCaseVariableNamingRule 和 StringConcatRule
2019-03-19 14:41:12 +08:00
jimin
41f68e3203 Update README.md 2019-03-17 12:41:41 +08:00
玄坛
7de6b48564 Merge pull request #462 from hanyidreamer/19.03.02
Fixed #448
2019-03-05 14:10:23 +08:00
hanyidreamer
c95f3f2dd6 Fixed #448 2019-03-02 20:12:55 +08:00
wangxn
3c199f2ab9 LowerCamelCaseVariableNamingRule: 删除重复的LowerCamelCaseVariableNamingRuleTest8;
StringConcatRule: line130 注释掉  ======================================================================
2019-02-25 13:55:09 +08:00
yuzy
c1ae1511b1 修复在en模式下,AbstractMethodOrInterfaceMethodMustUseJavadocRule的2处报错消息中,method名称与param名称颠倒的问题、以及method名称与exception名称颠倒的问题。Fixes #440 2019-01-07 19:38:24 +08:00
骏烈
e32666c3c1 p3c-pmd version 1.3.6
eclipse-plugin 1.0.6
idea-plugin 1.0.6
2018-11-12 16:20:24 +08:00
昶乐
4d8a8a0919 注解不进行小写驼峰命名校验 2018-11-06 19:50:32 +08:00
可期
cd18d69c7f 性能优化,自定义类型解析对于每个java文件只处理一次 2018-11-06 19:26:28 +08:00
wilsonjuxta
15e43a7717 fix typo in example code 2018-07-20 18:17:49 +08:00
骏烈
b948c7e62b add rules
[Recommended] The total number of lines for a method should not be more than 80
 [Recommended] Avoid using the negation operator '!'
 [Mandatory] When doing date formatting, "y" should be written in lowercase for "year" in a pattern statement

 and some bug fix
2018-06-12 15:45:15 +08:00
骏烈
1cc0a0c2a0 Merge remote-tracking branch 'upstream/master' 2018-06-12 15:25:17 +08:00
fw8899
4da2bb19f8 fix: #312 2018-06-12 15:04:51 +08:00
骏烈
80d4708ab9 fix https://github.com/alibaba/p3c/issues/264 2018-06-12 14:45:05 +08:00
Feng Wei
2d699c9ad7 Merge pull request #283 from fw8899/master
bugfix: default中包含return, throw时漏报
2018-03-20 15:12:32 +08:00
曾候
42ce06fd3c bugfix: default中包含return, throw时漏报 2018-03-15 20:23:36 +08:00
骏烈
452ab8e740 1. kotlin 1.2.21
2. p3c-pmd 1.3.4
3. idea-plugin 1.0.4
4. eclipse-plugin 1.0.4
2018-02-01 14:47:03 +08:00
SeanCai
a79cb7eccc Merge pull request #252 from LQZYC/master
修改提示信息
2018-02-01 13:49:06 +08:00
昶乐
a759051d76 修改提示信息 2018-02-01 12:53:50 +08:00
曾候
10f3848688 fix https://github.com/alibaba/p3c/issues/222 2018-02-01 11:38:18 +08:00
骏烈
0d2dc57909 fix https://github.com/alibaba/p3c/issues/217 2017-12-27 17:32:03 +08:00
骏烈
7acf70558c p3c-pmd version 1.3.3 2017-12-12 16:18:37 +08:00
骏烈
8215bc045e fix https://github.com/alibaba/p3c/issues/191 2017-12-12 15:51:54 +08:00
骏烈
c868d5bb47 p3c-pmd 1.3.2
idea-plugin 1.0.2
upgrade kotlin version to 1.2.0
2017-11-29 09:57:57 +08:00
骏烈
5481dc3953 Merge remote-tracking branch 'upstream/master' 2017-11-29 09:32:30 +08:00