Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Issue #17128: Add test for vertically aligned Indentation trailing comments#17409

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
voidCounter wants to merge1 commit intocheckstyle:master
base:master
Choose a base branch
Loading
fromvoidCounter:vertically-aligned-trailing-comments

Conversation

voidCounter
Copy link

WIP#17128

it adds a test that loads allInputIndentation*.java files, determines the column position of //indent from the first line, and fails if any other//indent comment is not aligned to the same column.

Currently getting failures for theInputIndentation*.java files and this:

[ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.332 s<<<FAILURE! --in com.puppycrawl.tools.checkstyle.internal.AllTestsTest[ERROR] com.puppycrawl.tools.checkstyle.internal.AllTestsTest.testAllTestsHaveProductionCode -- Time elapsed: 0.106 s<<<FAILURE!Test must be named after a production class and must bein the same package of the production class: com/puppycrawl/tools/checkstyle/IndentationTrailingCommentsVerticalAlignmentTest.javaexpected to contain: IndentationTrailingCommentsVerticalAlignment.javabut was            : [GlobalStatefulCheck.java, ThreadModeSettings.java, MetadataGeneratorLogger.java, SuppressionsStringPrinter.java, PropertyResolver.java, XpathFileGeneratorAuditListener.java, ConfigurationLoader.java, PackageNamesLoader.java, DefaultLogger.java, JavaAstVisitor.java, DetailAstImpl.java, TreeWalkerAuditEvent.java, PropertyCacheFile.java, PackageObjectFactory.java, AuditEventFormatter.java, JavaParser.java, XmlLoader.java, FileStatefulCheck.java, DetailNodeTreeStringPrinter.java, ModuleFactory.java, AuditEventDefaultFormatter.java, XdocsPropertyType.java, JavadocPropertiesGenerator.java, DefaultContext.java, TreeWalker.java, CheckstyleParserErrorStrategy.java, XMLLogger.java, PropertyType.java, LocalizedMessage.java, Definitions.java, TreeWalkerFilter.java, StatelessCheck.java, package-info.java, Main.java, AstTreeStringPrinter.java, ChecksAndFilesSuppressionFileGeneratorAuditListener.java, SarifLogger.java, AbstractAutomaticBean.java, XpathFileGeneratorAstFilter.java, Checker.java, PropertiesExpander.java, DefaultConfiguration.java, JavadocDetailNodeParser.java]

So do I need to move the test file to some other package or add the test methods to a particular test file? I'd appreciate some guidance.

@voidCountervoidCounter marked this pull request as draftJuly 16, 2025 15:43
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@voidCounter

[8]ページ先頭

©2009-2025 Movatter.jp