summaryrefslogtreecommitdiff
path: root/nitpicker
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-04-16 07:35:12 +0100
committerLars Wirzenius <liw@liw.fi>2014-04-16 07:35:12 +0100
commitaeebbf9aa91856054f7d34c295c94788ed0243f4 (patch)
treec6354c4e34058779c672aad61e51f5806ff1f367 /nitpicker
parente8d2453c2eaced39cd304e40c60fc90c5391f4c2 (diff)
downloadobnam-aeebbf9aa91856054f7d34c295c94788ed0243f4.tar.gz
Refactor for code cleanliness
Diffstat (limited to 'nitpicker')
-rwxr-xr-xnitpicker5
1 files changed, 5 insertions, 0 deletions
diff --git a/nitpicker b/nitpicker
index 7f3664b1..fa3f3223 100755
--- a/nitpicker
+++ b/nitpicker
@@ -46,9 +46,14 @@ class SourceCodeNitpicker(cliapp.Application):
def process_input_line(self, filename, line):
line = line.rstrip('\n')
+ self.check_for_tabs(filename, line)
+ self.check_for_long_line (filename, line)
+
+ def check_for_tabs(self, filename, line):
if '\t' in line:
self.error(filename, self.lineno, TabCharacter(line=line))
+ def check_for_long_line(self, filename, line):
expanded = line.expandtabs()
if len(expanded) > 79:
self.error(