question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add `wemake-plain` output formatter

See original GitHub issue

It should be the same as wemake, but without colors. Why?

When I try to save the output to file, I get this:

  106:29   WPS220 Found too deep nesting: 28 > 20
  try:
  ^

And I want to have this:

  106:29   WPS220 Found too deep nesting: 28 > 20
  try:
  ^

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
sobolevncommented, Oct 15, 2020

Or we can add NO_COLOR support https://no-color.org/ Which is better in my perspective

0reactions
sobolevncommented, Oct 15, 2020

Output has color codes if outputted to the terminal

Correct!

Output doesn’t have color codes if piped into another program or a file

Well, that’s complicated. Because it might be very tricky. Different shells, different terminals, different OSes, different programs, different pipe methods, etc. I cannot say that it works. But, I cannot say that it does not work.

Presence of color codes depends solely on whether or not NO_COLOR environment variable is defined

Yes, this way we would have smooth way to control the output without the need to tweak the formatter manually.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom formatters in ASP.NET Core Web API - Microsoft Learn
ASP.NET Core MVC supports data exchange in Web APIs using input and output formatters. Input formatters are used by Model Binding.
Read more >
Output Formatters in ASP.NET Core (#204) - YouTube
Output Formatters in ASP.NET Core make it easy to format responses differently based on the mime types specified in the request's Accept ...
Read more >
How to use output formatters in ASP.Net Core - InfoWorld
Learn how to build a custom output formatter in ASP.Net Core to exchange data in formats other than JSON, XML, and plain text....
Read more >
Customizing ASP.​NET Core Part 07: OutputFormatter
Web API uses a default OutputFormatter to turn objects into JSON, ... There are two ways to add a XmlSerializerOutputFormatter to ASP.
Read more >
Asp.Net Core Keep default output formatter after adding custom
You need to chain your output formatter at the appropriate location. services.AddControllers(options => {}) .AddNewtonsoftJson().
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found