Skip to content

Issue #17223: implementation of Indentation TextBlockGoogleStyleFormattingCheck #17395

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

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

Conversation

mohitsatr
Copy link
Member

@mohitsatr mohitsatr commented Jul 15, 2025

part of #17223

Added indentation feature to check if quotes are vertically aligned.

test only PR. NOT TO BE MERGED

@mohitsatr
Copy link
Member Author

@Zopsss
Copy link
Member

Zopsss commented Jul 16, 2025

We're duplicating much code here. Ideally, the whole check should be part of a single PR, so indentation functionality should be implemented in the original PR. But if you want, you can test indentation in this PR and then copy the commit to the main PR once it's basic functionality ( main PR's basic functionality ) is implemented.

Comment on lines +49 to +52
final String[] expectedViolation = {
"7:14: " + getCheckMessage(CLASS,
TextBlockGoogleStyleFormattingCheck.MSG_CLOSE_QUOTES_ERROR),
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Just add the required violation msg here to pass the test. Violation is correct because quotes aren't aligned properly.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But if you want, you can test indentation in this PR

yes, this pr is for testing mainly.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just add the required violation msg here to pass the test

that's the problem. not possible. multiple violations are not supported in Xpath... tests.
image

but we need the Check to give two violations #17284 (comment)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@romani can you tell why multiple violations are not supported in XPath tests?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there might be limitation created at the begining in code to simplify initial implementation.
but if we see how to add support of it, lets update to allow it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved to #17622

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we make Input file that has single violation ?
if not , let me know.

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