From f013698072ccba9c2c188184840ce6bb13f9723f Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Fri, 18 Dec 2015 13:49:59 -0600 Subject: [PATCH] Update with extra info about plugins --- DESIGN.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/DESIGN.rst b/DESIGN.rst index 7cdada3..573e093 100644 --- a/DESIGN.rst +++ b/DESIGN.rst @@ -70,6 +70,9 @@ mccabe as "plugins", it will aggregate the errors returned by all of the plugins and be able to "notify" other plugins that have chosen to listen for errors so those plugins can auto-fix the problems in the file. +We should also be considerate of allowing these plugins to be composable. Each +plugin should have a way of defining its capabilities. + See https://gitlab.com/pycqa/flake8/issues/84 .. note:: Will probably need a Trie implementation for this @@ -95,6 +98,10 @@ Support for Report Generation Flake8 should support pluggable report formats. See also pluggable report formats for https://github.com/openstack/bandit +Report generation plugins may also choose to implement a way to store previous +runs of flake8. As such these plugins should be designed to be composable as +well. + .. _options-passing: Support for Plugins Require Parsed Options