summaryrefslogtreecommitdiff
path: root/docs/source/plugin-development/registering-plugins.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source/plugin-development/registering-plugins.rst')
-rw-r--r--docs/source/plugin-development/registering-plugins.rst19
1 files changed, 17 insertions, 2 deletions
diff --git a/docs/source/plugin-development/registering-plugins.rst b/docs/source/plugin-development/registering-plugins.rst
index 1974225..0f4280f 100644
--- a/docs/source/plugin-development/registering-plugins.rst
+++ b/docs/source/plugin-development/registering-plugins.rst
@@ -112,8 +112,23 @@ like:
)
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
-reports also ``A102`` it must be set to ``A10``.
+So if the plugin reports only the error code ``X101`` your entry-point would
+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: