caktus / redundant

A technical debt analysis tool
7 stars 0 forks source link

Implement as Flake8 Plugin #2

Open mlavin opened 8 years ago

mlavin commented 8 years ago

Not sure how possible but it might be nice to have this duplication detection be part of the general linting checks. Most plugins are written as AST visitors which might be able to replace some of the regex parsing of the source. http://flake8.readthedocs.org/en/latest/extensions.html

ironfroggy commented 8 years ago

I'd like it to be applicable beyond just Python source. And I'm working on some new fuzzy duplication detection that I'm not sure would be compatible with how Flake8 would want plugins to operate. Still something to look into as an integration option.

I think that as it gets smarter it isn't going to be able to run fast enough to be something you'd want to run all the time, tho, and its going to have a constant problem with false positives.