Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Docs: add note to docs about zero-indexing for machine formatters (#4544
Browse files Browse the repository at this point in the history
)

* Docs: add note to docs about zero-indexing for machine formatters

* Update index.md
  • Loading branch information
theoretick authored and Josh Goldberg committed Mar 2, 2019
1 parent 88916a2 commit 42ea1d8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/formatters/index.md
Expand Up @@ -8,9 +8,12 @@ order: 2

Lint _formatters_ allow for transformation of lint results into various forms before outputting to stdout or a file.

Formatters are split into two categories: _human-readable_ and _machine-readable_. Please note that for machine-readable
formatters formatters all positioning is zero-indexed (lines start with zero), whereas human-readable formatters are not (lines start with one).

### Built-in formatters

{% assign formatters = site.data.formatters | sort: "name" %}
{% for formatter in formatters %}
* [{{formatter.formatterName}}]({{formatter.formatterName}}) - {{formatter.description | markdownify | remove:"<p>" | remove: "</p>"}}
{% endfor %}
* [{{formatter.formatterName}}]({{formatter.formatterName}}) - {{formatter.description | markdownify | remove:"<p>" | remove: "</p>"}} ({{formatter.consumer}}-readable)
{% endfor %}

0 comments on commit 42ea1d8

Please sign in to comment.