Skip to content

Issue #15456: Specify violation messages for ExplicitInitializationCheck #16987

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Brijeshthummar02
Copy link
Contributor

@Brijeshthummar02 Brijeshthummar02 commented Apr 30, 2025

Issue #15456
Closes #16926

@Brijeshthummar02 Brijeshthummar02 force-pushed the ExplicitInitializationCheck branch 3 times, most recently from 80442de to 20c2858 Compare April 30, 2025 12:10
@Brijeshthummar02 Brijeshthummar02 force-pushed the ExplicitInitializationCheck branch from 20c2858 to ca7f416 Compare April 30, 2025 12:28
@Brijeshthummar02
Copy link
Contributor Author

@Pankraz76 help me out. there's a lot failing

@Pankraz76
Copy link

item: https://dev.azure.com/romanivanovjr/romanivanovjr/_build/results?buildId=29119&view=logs&j=c902ebb4-c9f8-5f09-4e17-ff78fbbc842e&t=9ca98c81-ff64-58f0-9d03-a23ac1c4a111&l=1478

[INFO] Results:
[INFO] 
[ERROR] Errors: 
[ERROR]   ExplicitInitializationCheckExamplesTest.testExample1:44->AbstractModuleTestSupport.verifyWithInlineConfigParser:256 » Checkstyle Violation message should be specified on line 13 in /home/vsts/work/1/s/src/xdocs-examples/resources/com/puppycrawl/tools/checkstyle/checks/coding/explicitinitialization/Example1.java
[ERROR]   ExplicitInitializationCheckExamplesTest.testExample2:54->AbstractModuleTestSupport.verifyWithInlineConfigParser:256 » Checkstyle Violation message should be specified on line 26 in /home/vsts/work/1/s/src/xdocs-examples/resources/com/puppycrawl/tools/checkstyle/checks/coding/explicitinitialization/Example2.java
[ERROR]   ExplicitInitializationCheckTest.testDefault:62->AbstractModuleTestSupport.verifyWithInlineConfigParser:256 » Checkstyle Violation message should be specified on line 11 in /home/vsts/work/1/s/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/explicitinitialization/InputExplicitInitialization.java
[ERROR]   ExplicitInitializationCheckTest.testOnlyObjectReferences:95->AbstractModuleTestSupport.verifyWithInlineConfigParser:256 » Checkstyle Violation message should be specified on line 12 in /home/vsts/work/1/s/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/explicitinitialization/InputExplicitInitializationOnlyObjectReference.java
[INFO] 
[ERROR] Tests run: 5284, Failures: 0, Errors: 4, Skipped: 2
[INFO] 

@Brijeshthummar02
Copy link
Contributor Author

item: https://dev.azure.com/romanivanovjr/romanivanovjr/_build/results?buildId=29119&view=logs&j=c902ebb4-c9f8-5f09-4e17-ff78fbbc842e&t=9ca98c81-ff64-58f0-9d03-a23ac1c4a111&l=1478

[INFO] Results:
[INFO] 
[ERROR] Errors: 
[ERROR]   ExplicitInitializationCheckExamplesTest.testExample1:44->AbstractModuleTestSupport.verifyWithInlineConfigParser:256 » Checkstyle Violation message should be specified on line 13 in /home/vsts/work/1/s/src/xdocs-examples/resources/com/puppycrawl/tools/checkstyle/checks/coding/explicitinitialization/Example1.java
[ERROR]   ExplicitInitializationCheckExamplesTest.testExample2:54->AbstractModuleTestSupport.verifyWithInlineConfigParser:256 » Checkstyle Violation message should be specified on line 26 in /home/vsts/work/1/s/src/xdocs-examples/resources/com/puppycrawl/tools/checkstyle/checks/coding/explicitinitialization/Example2.java
[ERROR]   ExplicitInitializationCheckTest.testDefault:62->AbstractModuleTestSupport.verifyWithInlineConfigParser:256 » Checkstyle Violation message should be specified on line 11 in /home/vsts/work/1/s/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/explicitinitialization/InputExplicitInitialization.java
[ERROR]   ExplicitInitializationCheckTest.testOnlyObjectReferences:95->AbstractModuleTestSupport.verifyWithInlineConfigParser:256 » Checkstyle Violation message should be specified on line 12 in /home/vsts/work/1/s/src/test/resources/com/puppycrawl/tools/checkstyle/checks/coding/explicitinitialization/InputExplicitInitializationOnlyObjectReference.java
[INFO] 
[ERROR] Tests run: 5284, Failures: 0, Errors: 4, Skipped: 2
[INFO] 

I already tried that but was not much helpful.

@romani
Copy link
Member

romani commented Apr 30, 2025

watch videos at Starting_Development.
One of last video shows how to resolve problems like this.

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

Successfully merging this pull request may close these issues.

3 participants