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

Move Baseline to ktlint-cli-reporter-baseline #2013

Merged
merged 1 commit into from
May 11, 2023

Conversation

paul-dingemans
Copy link
Collaborator

Description

The baseline reporter creates the "baseline.xml" file which is read by the Baseline class. By moving the Baseline class into the reporter module, both the producer and consumer of the "baseline.xml" are located in same module which encapsulates this functionality. Also, it makes it possible for API consumers to reuse the functionality and to keep in sync with the Ktlint CLI.

Checklist

  • PR description added
  • tests are added
  • KtLint has been applied on source code itself and violations are fixed
  • documentation is updated
  • CHANGELOG.md is updated

In case of adding a new rule:

The baseline reporter creates the "baseline.xml" file which is read by the Baseline class. By moving the Baseline class into the reporter module, both the producer and consumer of the "baseline.xml" are located in same module which encapsulates this functionality. Also, it makes it possible for API consumers to reuse the functionality *and* to keep in sync with the Ktlint CLI.
@paul-dingemans paul-dingemans merged commit 0600f93 into master May 11, 2023
@paul-dingemans paul-dingemans deleted the relocate-baseline branch May 11, 2023 18:48
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.

1 participant