Skip to content
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

Remove ruleset for printing AST #1925

Closed
paul-dingemans opened this issue Apr 8, 2023 · 3 comments · Fixed by #1926
Closed

Remove ruleset for printing AST #1925

paul-dingemans opened this issue Apr 8, 2023 · 3 comments · Fixed by #1926
Milestone

Comments

@paul-dingemans
Copy link
Collaborator

This issue originates from a discussion starting with this comment.

Ktlint CLI allows printing of the AST of a file or a piece of code via option --print-ast. Also it is possible to print the AST in unit tests by setting environment variable KTLINT_UNIT_TEST_DUMP_AST. The value of this functionality is very low compared to using the IntelliJ IDEA plugin PsiViewer.

@mklnwt
Copy link

mklnwt commented Apr 10, 2023

@paul-dingemans could you also publish a new version of com.pinterest:ktlint which is used by org.jlleitschuh.gradle.ktlint for example.

ktlint-ruleset-test-tooling is still in the latest version 0.49.0-20230328.095730-189.
(https://oss.sonatype.org/content/repositories/snapshots/com/pinterest/ktlint/0.49.0-SNAPSHOT/ktlint-0.49.0-20230328.095730-189.pom)

@paul-dingemans
Copy link
Collaborator Author

As a result of an uninteded change, all snapshots starting from PR #1898 have been published to a different location. This will be fixed with #1929. In the 1.x release of ktlint we will switch to the new group coordinates.

@Goooler
Copy link
Contributor

Goooler commented Apr 10, 2023

Published, you can ref the integration in Goooler/DemoApp#373.

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 a pull request may close this issue.

3 participants