mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-13 08:04:18 +00:00
Make the documentation very obvious
This commit is contained in:
parent
0e8d7cb7e2
commit
12dcb10c90
1 changed files with 17 additions and 2 deletions
|
|
@ -112,8 +112,23 @@ like:
|
||||||
)
|
)
|
||||||
|
|
||||||
The ``X`` in checking plugins define what error codes it is going to report.
|
The ``X`` in checking plugins define what error codes it is going to report.
|
||||||
So if the plugin reports just the error code ``A101`` it would be that. If it
|
So if the plugin reports only the error code ``X101`` your entry-point would
|
||||||
reports also ``A102`` it must be set to ``A10``.
|
look like::
|
||||||
|
|
||||||
|
X101 = flake8_example.ExamplePlugin
|
||||||
|
|
||||||
|
If your plugin reports several error codes that all start with ``X10``, then
|
||||||
|
it would look like::
|
||||||
|
|
||||||
|
X10 = flake8_example.ExamplePlugin
|
||||||
|
|
||||||
|
If all of your plugin's error codes start with ``X1`` then it would look
|
||||||
|
like::
|
||||||
|
|
||||||
|
X1 = flake8_example.ExamplePlugin
|
||||||
|
|
||||||
|
Finally, if all of your plugin's error codes start with just ``X`` then it
|
||||||
|
would look like the original example.
|
||||||
|
|
||||||
|
|
||||||
.. _Entry Points:
|
.. _Entry Points:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue