dealertrack / flake8-diff

Run flake8 across a set of changed files and filter out violations occurring only on the lines that were changed.
MIT License
20 stars 8 forks source link

String modes #22

Closed miki725 closed 9 years ago

miki725 commented 9 years ago

flake8 can be fooled. for example:

class Foo(object): pass

+
+
class Bar(object):pass

technically there is now a violation on Bar since there are too many blank lines however flake8-diff will not detect it since the diff only added the blank lines which is not where violation is.

The idea of strict modes is to allow to choose how files are evaluated.

possible strict modes for the future

miki725 commented 9 years ago

cc @agamdua

miki725 commented 9 years ago

@gregarmer I think I addressed both comment in https://github.com/miki725/flake8-diff/commit/42a9e31dbacd7323c1bcb40146f9e8541c72373b. Let me know what you think.

gregarmer commented 9 years ago

@miki725 there's just one method rename left, then we can merge this.

miki725 commented 9 years ago

thanks @gregarmer for reminder. just updated