diff options
| author | Fabian Neundorf <CommodoreFabianus@gmx.de> | 2016-07-24 14:27:05 +0000 |
|---|---|---|
| committer | Fabian Neundorf <CommodoreFabianus@gmx.de> | 2016-07-24 16:27:05 +0200 |
| commit | 373eb15573bb320597c5c21a2dc0f2e47266bdd1 (patch) | |
| tree | 78bae515f47a944a383796e5c1d6018be8d4ada5 /docs/source | |
| parent | 698079f87a017dc7170d9c5f14627d71a47b5aba (diff) | |
| download | flake8-373eb15573bb320597c5c21a2dc0f2e47266bdd1.tar.gz | |
Support functions as file plugins too
It is possible to write plugins which are only a function. At the moment they
are called on each line manually. This allows the function also to be called
on each file once. It works similar to creating the class and calling `run` on
it immediately. The plugin function needs to return a generator.
This is based on the original comment in the `FileChecker.run_ast_checks`
method, but slightly modified as the original comment would've called the
return of the function. But the function could return the reports directly.
Diffstat (limited to 'docs/source')
0 files changed, 0 insertions, 0 deletions
