pycodestyle icon indicating copy to clipboard operation
pycodestyle copied to clipboard

Issue #582: disallow tabs before inline comments

Open spaceone opened this issue 4 years ago • 3 comments

Detect invalid tabs before inline comments:

printf 'foo = "bar" \t# comment\n' | pycodestyle -
stdin:1:12: E261 at least two spaces before inline comment
printf 'foo = "bar"\t # comment\n' | pycodestyle -
stdin:1:12: E261 at least two spaces before inline comment
printf 'foo = "bar"\t\t# comment\n' | pycodestyle -
stdin:1:12: E261 at least two spaces before inline comment

Fixes #582

spaceone avatar Sep 16 '21 22:09 spaceone