Skip to content

Make detekt less noisy#5448

Merged
BraisGabin merged 2 commits into
mainfrom
fix-5436
Oct 20, 2022
Merged

Make detekt less noisy#5448
BraisGabin merged 2 commits into
mainfrom
fix-5436

Conversation

@BraisGabin

Copy link
Copy Markdown
Member

Fixes #5436 (at least the regression part)

Comment on lines +34 to +37
@Deprecated(
"You should pass a printStream",
ReplaceWith("createKotlinCoreEnvironment(configuration, disposable, System.err)")
)

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.

    printStream: PrintStream = System.err,

wouldn't work?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It would. But that would break binary compatibility.

And I'm not a big fan of the default values, too be honest.

@TWiStErRob TWiStErRob Oct 19, 2022

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.

agreed there, but when there's two other default values already :)

a @jvmoverloads would help with binary compat I think, and one less method, and one less deprecation warning to action for users.

@BraisGabin BraisGabin merged commit ec6cd40 into main Oct 20, 2022
@BraisGabin BraisGabin deleted the fix-5436 branch October 20, 2022 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detekt 1.22.0 is getting noisier and noisier

3 participants