Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DTO,VO等用于方法名时的问题 #4

Closed
ShiinaKin opened this issue Aug 21, 2023 · 12 comments
Closed

DTO,VO等用于方法名时的问题 #4

ShiinaKin opened this issue Aug 21, 2023 · 12 comments
Assignees
Labels
enhancement New feature or request

Comments

@ShiinaKin
Copy link

image
image

不知道我对规约的理解是否有误,但这样命名应该是正确的,不应该提示?

@godfather1103
Copy link
Owner

从规范描述来看这个应该是错误的,提示的是方法名,方法名应该是要满足驼峰要求的

@godfather1103
Copy link
Owner

涉及到规范的,建议还是去阿里官方那边提问吧,我这边只是基于他提供的pmd规则进行检查的idea插件

@ShiinaKin
Copy link
Author

涉及到规范的,建议还是去阿里官方那边提问吧,我这边只是基于他提供的pmd规则进行检查的idea插件

好的好的,感谢回复

@ShiinaKin ShiinaKin closed this as not planned Won't fix, can't repro, duplicate, stale Aug 21, 2023
@ShiinaKin
Copy link
Author

翻了一下阿里那边的issue,发现官方目前没解决,不知能否内置几个常用的
alibaba/p3c#785
alibaba/p3c#846
alibaba/p3c#556

@godfather1103
Copy link
Owner

@ShiinaKin
Copy link
Author

ShiinaKin commented Aug 21, 2023 via email

@godfather1103
Copy link
Owner

godfather1103 commented Aug 21, 2023 via email

@ShiinaKin
Copy link
Author

ShiinaKin commented Aug 21, 2023 via email

@godfather1103 godfather1103 reopened this Aug 22, 2023
@godfather1103 godfather1103 added the enhancement New feature or request label Aug 22, 2023
@godfather1103 godfather1103 self-assigned this Aug 22, 2023
@godfather1103
Copy link
Owner

iShot_2023-08-23_09 @mashirot 我准备增加配置窗口用于自己添加对应的内容

@godfather1103
Copy link
Owner

@mashirot 你截图的规则报错是LowerCamelCaseVariableNamingRule规则造成的,但是我看对应规则实现类中并没有获取过对应namelist.properties文件中的配置项,只能考虑在对应代码中的正则表达式上做文章了

@godfather1103
Copy link
Owner

iShot_2023-08-23_09 16 05

@godfather1103
Copy link
Owner

@mashirot https://github.com/godfather1103/p3c/releases/tag/1.3-2023.2-2.1.1
增加了自定义namelist.properties的功能,等待jetbrains审核,你也可以下载对应release,提前试用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants