diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-04-16 07:35:12 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-04-16 07:35:12 +0100 |
commit | aeebbf9aa91856054f7d34c295c94788ed0243f4 (patch) | |
tree | c6354c4e34058779c672aad61e51f5806ff1f367 /nitpicker | |
parent | e8d2453c2eaced39cd304e40c60fc90c5391f4c2 (diff) | |
download | obnam-aeebbf9aa91856054f7d34c295c94788ed0243f4.tar.gz |
Refactor for code cleanliness
Diffstat (limited to 'nitpicker')
-rwxr-xr-x | nitpicker | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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( |