flake8-plugin-utils icon indicating copy to clipboard operation
flake8-plugin-utils copied to clipboard

Support for token-based checkers

Open stefan6419846 opened this issue 3 years ago • 0 comments

  • Date you used flake8-plugin-utils: 2022-07-15
  • flake8-plugin-utils version used, if any: 1.3.2
  • Python version, if any: 3.6

Description

I tried to implement a token-based parser instead of an AST-based one. Unfortunately, neither the Plugin nor the Visitor class support this.

For the Plugin class, the basic issue is the same as in #70, as the required tokens are not available inside the Visitor objects.

The current Visitor class does not support token-based visits and error reporting either and is rather tailored to AST traversal.

stefan6419846 avatar Jul 15 '22 11:07 stefan6419846