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

Disabling formatting logs #315

Closed
jplewa opened this issue Feb 21, 2023 · 1 comment
Closed

Disabling formatting logs #315

jplewa opened this issue Feb 21, 2023 · 1 comment

Comments

@jplewa
Copy link

jplewa commented Feb 21, 2023

Is there an option to disable the output of formatKotlin? I'm talking about all of these logs:

image

We use your plugin to format some generated source files that are then included in a library published to Maven. We use custom GitHub Actions runners which are hosted on GCP and having all of these logs printed out to stdout ends up costing us extra money. We don't need the output of formatKotlin at all, so it would be awesome if there was an option to disable it.

jeremymailen added a commit that referenced this issue Mar 14, 2023
- Fix issue #316 by upgrading kotlinter gradle's released version to ktlint 0.48.2.
- Remove configuration for `disabledRules` and `experimentalRules` to fully delegate this to .editorconfig
- Fix issue with resolution of rule enable / disable statements in .editorconfig
- Address issue #242 by providing readme example of excluding source files at the project tree level
- Address issue #314 by including sources in published artifacts
- Fix issue #313 by exporting `ReporterType`
- Address issue #315 by logging format log statements at level `WARNING` so they can be hidden
- Credit @mateuszkwiecinski as one of the developers of the plugin
@jeremymailen
Copy link
Owner

They were being logged at QUIET level which makes them hard to turn off.
In #317 we've changed it to WARNING so that they are still shown by default but can be toggled off via gradle -q.

jeremymailen added a commit that referenced this issue Mar 14, 2023
- Fix issue #316 by upgrading kotlinter gradle's released version to ktlint 0.48.2.
- Remove configuration for `disabledRules` and `experimentalRules` to fully delegate this to .editorconfig
- Fix issue with resolution of rule enable / disable statements in .editorconfig
- Address issue #242 by providing readme example of excluding source files at the project tree level
- Address issue #314 by including sources in published artifacts
- Fix issue #313 by exporting `ReporterType`
- Address issue #315 by logging format log statements at level `WARNING` so they can be hidden
- Credit @mateuszkwiecinski as one of the developers of the plugin
jplewa added a commit to VirtuslabRnD/pulumi-kotlin that referenced this issue Mar 28, 2023
## Task

Resolves: None

## Description

As per
jeremymailen/kotlinter-gradle#315 (comment).
This should help us get rid of the overwhelming formatting logs.
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

No branches or pull requests

2 participants