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

Fix methods for package-info file check #11531

Closed
strkkk opened this issue Apr 10, 2022 · 3 comments
Closed

Fix methods for package-info file check #11531

strkkk opened this issue Apr 10, 2022 · 3 comments

Comments

@strkkk
Copy link
Member

strkkk commented Apr 10, 2022

Current implementation of FileContents looks like

public boolean inPackageInfo() {
return getFileName().endsWith("package-info.java");
}

It will return true on inputs like some-package-info.java

It should be fixed. Also after #11502 replacement method CheckUtil#isPackageInfo should be fixed as well.

@strkkk strkkk changed the title Fix CheckUtil#isPackageInfo method Fix methods for package-info file check Apr 10, 2022
@TaiweiHu
Copy link
Contributor

I would like to work on this issue.

@strkkk
Copy link
Member Author

strkkk commented Apr 12, 2022

@RandyLovevivi PR is welcome. Please note that after merge of #11531 CheckUtil#isPackageInfo should be fixed as well

@checkstyle checkstyle deleted a comment from adinayyu Apr 15, 2022
@checkstyle checkstyle deleted a comment from adinayyu Apr 15, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 19, 2022
Fixed the issue by checking if the string is ended with "package-info.java" and the substring except the last 17 letters ( which is the length of "package-info.java" ) ends with "\" or ".".
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 19, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 19, 2022
Fixed the issue by checking if the string is ended with "package-info.java" and the substring except the last 17 letters ( which is the length of "package-info.java" ) ends with "\" or ".".
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 19, 2022
Fixed the issue by checking if the string is ended with "package-info.java" and the substring except the last 17 letters ( which is the length of "package-info.java" ) ends with "\" or ".".
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 19, 2022
Fixed the issue by checking if the string is ended with "package-info.java" and the substring except the last 17 letters ( which is the length of "package-info.java" ) ends with "\" or ".".

Revert "Issue checkstyle#11531"

This reverts commit 262dbec.

Issue checkstyle#11531: Fixed the methods for package-info file check

Fixed the issue by checking if the string is ended with "package-info.java" and the substring except the last 17 letters ( which is the length of "package-info.java" ) ends with "\" or ".".

Issue checkstyle#11531: Fixed the methods for package-info file check

Fixed the issue by checking if the string is ended with "package-info.java" and the substring except the last 17 letters ( which is the length of "package-info.java" ) ends with "\" or ".".
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 19, 2022
Fixed the issue by checking if the string is ended with "package-info.java" and the substring except the last 17 letters ( which is the length of "package-info.java" ) ends with "\" or ".".
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 19, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 19, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 19, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 19, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 19, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 19, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 19, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 20, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 21, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 22, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 22, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 22, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 22, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 22, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 22, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 22, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 22, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 22, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 22, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 22, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 22, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 22, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 22, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 22, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 23, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 23, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 23, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 23, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 23, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 23, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 23, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 23, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 23, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 23, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 23, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 23, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 23, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 23, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 23, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 23, 2022
as23415672 added a commit to cs304-2022/checkstyle that referenced this issue Apr 24, 2022
@strkkk strkkk added this to the 10.3 milestone Apr 24, 2022
@strkkk
Copy link
Member Author

strkkk commented Apr 24, 2022

Fix is merged

@strkkk strkkk closed this as completed Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants