Skip to content

Issue #18435: Fix xdocs Examples AST Consistency Test - indentation#19950

Merged
romani merged 1 commit into
checkstyle:masterfrom
smita1078:AST6_GSOC
May 27, 2026
Merged

Issue #18435: Fix xdocs Examples AST Consistency Test - indentation#19950
romani merged 1 commit into
checkstyle:masterfrom
smita1078:AST6_GSOC

Conversation

@smita1078
Copy link
Copy Markdown
Contributor

#18435

checks/indentation/indentation :
Example 1-9 - show different properties excluding example4

use case example:
example4

Properties each example demonstrates:

Example1 — default config
Example2 — caseIndent=0
Example3 — forceStrictCondition=true
Example4 — default config (same as Example1!) but showing violations
Example5 — basicOffset=2
Example6 — lineWrappingIndentation=8
Example7 — throwsIndent=8 (complex use case)
Example8 — arrayInitIndent=2
Example9 — braceAdjustment=2

@smita1078
Copy link
Copy Markdown
Contributor Author

Github, generate site

Copy link
Copy Markdown
Collaborator

@stoyanK7 stoyanK7 left a comment

Choose a reason for hiding this comment

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

@smita1078 Please resolve conflicts.

Looks clean to me, though

Copy link
Copy Markdown
Member

@romani romani left a comment

Choose a reason for hiding this comment

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

item:

};

void method2()
throws Exception { // ok, throwsIndent = 4
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

please make this line to be indented as 4, to let it violation when we do name="throwsIndent" value="8". It will be logical.
wihtout such update, it looks almost always as no violation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

@smita1078 smita1078 force-pushed the AST6_GSOC branch 2 times, most recently from 3a86a31 to 3166efd Compare May 27, 2026 02:40
@romani
Copy link
Copy Markdown
Member

romani commented May 27, 2026

GitHub, generate website

@romani
Copy link
Copy Markdown
Member

romani commented May 27, 2026

Sorry , I actually meant

void method2()
    throws Exception {

Throws is +4 from method indentation

@smita1078
Copy link
Copy Markdown
Contributor Author

Sorry , I actually meant

void method2()
    throws Exception {

Throws is +4 from method indentation

Oh Okay, let me change it!

@smita1078
Copy link
Copy Markdown
Contributor Author

GitHub, generate website

@romani
Copy link
Copy Markdown
Member

romani commented May 27, 2026

GitHub, generate website

Copy link
Copy Markdown
Member

@romani romani left a comment

Choose a reason for hiding this comment

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

hard work is done that I hope users will appreciate

@romani romani merged commit fd2d2f8 into checkstyle:master May 27, 2026
127 of 128 checks passed
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