-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Labels
Milestone
Comments
strkkk
changed the title
Fix CheckUtil#isPackageInfo method
Fix methods for package-info file check
Apr 10, 2022
I would like to work on this issue. |
@RandyLovevivi PR is welcome. Please note that after merge of #11531 CheckUtil#isPackageInfo should be fixed as well |
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
This reverts commit 262dbec.
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
pushed a commit
that referenced
this issue
Apr 24, 2022
Fix is merged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current implementation of FileContents looks like
checkstyle/src/main/java/com/puppycrawl/tools/checkstyle/api/FileContents.java
Lines 332 to 334 in 5df2e3f
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.
The text was updated successfully, but these errors were encountered: