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

Don't use println :detekt-generator #2488

Merged
merged 2 commits into from
Mar 22, 2020
Merged

Don't use println :detekt-generator #2488

merged 2 commits into from
Mar 22, 2020

Conversation

BraisGabin
Copy link
Member

This is the second of a serie of PRs related with how we manage the output.

The main ideas:

  • Always use PrinterStream.println instead of println
  • Don't have a default printerStream. Because that is the same as use println.
  • Reduce the noise in out tests. If we always use PrinterStream to print output we can use NullPrinterStream or other types of PrinterStream so we don't print to the stdout when we run tests. With this we can reduce the log size related with tests about 40%.

@BraisGabin BraisGabin changed the title Dont use println :detekt-generator Don't use println :detekt-generator Mar 22, 2020
@BraisGabin BraisGabin mentioned this pull request Mar 22, 2020
@BraisGabin
Copy link
Member Author

Mac failing, again...

@arturbosch arturbosch added this to the 1.8.0 milestone Mar 22, 2020
@arturbosch arturbosch merged commit ccfc2ac into detekt:master Mar 22, 2020
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.

2 participants