diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-04-16 07:36:11 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-04-16 07:36:11 +0100 |
commit | 2bc881db5fba2fcff507cc9e418600f77d37d747 (patch) | |
tree | fc18933491a5b47a0939fd544a4f46f00bb58266 /nitpicker | |
parent | aeebbf9aa91856054f7d34c295c94788ed0243f4 (diff) | |
download | obnam-2bc881db5fba2fcff507cc9e418600f77d37d747.tar.gz |
Ignore TABs in Makefiles
Diffstat (limited to 'nitpicker')
-rwxr-xr-x | nitpicker | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -50,8 +50,9 @@ class SourceCodeNitpicker(cliapp.Application): 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)) + if not filename.endswith('Makefile'): + if '\t' in line: + self.error(filename, self.lineno, TabCharacter(line=line)) def check_for_long_line(self, filename, line): expanded = line.expandtabs() |