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 logback specific configuration from ktlint-core package #1424

Merged
merged 4 commits into from
Mar 20, 2022

Conversation

z3d1k
Copy link
Contributor

@z3d1k z3d1k commented Mar 19, 2022

Description

Removed logback dependency from ktlint-core module to fix #1421

  • Logging level for ktlint cli is configured through loggingModifier function, which allows to perform arbitrary logic with logger object and executes after logger initialization.
  • logback-test.xml file in ktlint-test-logging module to use in unit tests. Logging level configured providing environment property KTLINT_UNIT_TEST_TRACE with value ON (case insensitive)

Usage of ktlint-core package by external tools was successfully checked by updating ktlint version in maven plugin

Checklist

  • PR description added
  • [N/A] tests are added
  • CHANGELOG.md is updated

In case of adding a new rule:

  • [N/A] README.md is updated
  • [N/A] Rule has been applied on Ktlint itself and violations are fixed

…lic constant which were part of the public API to inform API users about its removal.

Closes pinterest#1421
Copy link
Collaborator

@paul-dingemans paul-dingemans left a comment

Choose a reason for hiding this comment

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

Super nice solution and thanks again for your contribution. I did some tweaks on it an committed them on your branch. Will merge it to master,

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.

Logger failes to initialize when not providing the Classic Logback Logger in 0.45.0
3 participants