Skip to content

Commit

Permalink
Support NO_COLOR env var for wemake formatter (#2750)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xsoydev authored Oct 10, 2023
1 parent 54c9f93 commit 98261fa
Show file tree
Hide file tree
Showing 5 changed files with 725 additions and 30 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,19 @@ Semantic versioning in our case means:
But, in the future we might change the configuration names/logic,
change the client facing API, change code conventions significantly, etc.


## WIP

### Features

- `wemake` output formatter now respects `NO_COLOR=1` option
to disable text highlighting. See https://no-color.org

### Bugfixes

- Fix `ForbiddenInlineIgnoreViolation` config parsing. #2590


## 0.18.0

### Features
Expand Down
9 changes: 9 additions & 0 deletions docs/pages/usage/formatter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,12 @@ You can also show links to the documentation pages of violations:
In modern terminals, you can click them to open the respective docs page.

We do not include ``show-violation-links`` in our default configuration.


.. rubric:: Disabling colors and text highlight

Set ``NO_COLOR=1`` environment variable
to completely disable all text highligt and colors
in ``wemake`` formatter.

See https://no-color.org for more information about ``NO_COLOR``.
Loading

0 comments on commit 98261fa

Please sign in to comment.