Skip to content

Commit

Permalink
coala/docs: Add position number convention
Browse files Browse the repository at this point in the history
Added a note in Writing_Native_Bears.rst and a reminder
for developers in Writing_Linter_Bears.rst files.

Closes #5297
  • Loading branch information
bharatpurohit97 committed Dec 14, 2018
1 parent 0636e9b commit 250b6ec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/Developers/Writing_Linter_Bears.rst
Expand Up @@ -251,6 +251,10 @@ We need to map that to coala's convention as follows:
normalize_column_numbers = True,
...)

This is a reminder for developers that they need to do a proper research on
linter bear, ensure the convention and ideally write tests to ensure
that behaviour.

Suggest Corrections Using the ``corrected`` and ``unified-diff`` Output Formats
-------------------------------------------------------------------------------

Expand Down
7 changes: 7 additions & 0 deletions docs/Developers/Writing_Native_Bears.rst
Expand Up @@ -598,4 +598,11 @@ For example, let's make an aspect bear named SpellingCheckBear.
aspect=DictionarySpelling('py'),
)
.. note::

coala uses 1-based line & column convention, i.e., the first line
and first column are 1. However, some linters use 0-based convention.
For example, ``pylint`` uses 1-based line convention and 0-based column
convention. We need to map these conventions.

.. _main tutorial: https://docs.coala.io/en/latest/Users/Tutorial.html

0 comments on commit 250b6ec

Please sign in to comment.