summaryrefslogtreecommitdiff
path: root/nitpicker
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-04-16 07:36:11 +0100
committerLars Wirzenius <liw@liw.fi>2014-04-16 07:36:11 +0100
commit2bc881db5fba2fcff507cc9e418600f77d37d747 (patch)
treefc18933491a5b47a0939fd544a4f46f00bb58266 /nitpicker
parentaeebbf9aa91856054f7d34c295c94788ed0243f4 (diff)
downloadobnam-2bc881db5fba2fcff507cc9e418600f77d37d747.tar.gz
Ignore TABs in Makefiles
Diffstat (limited to 'nitpicker')
-rwxr-xr-xnitpicker5
1 files changed, 3 insertions, 2 deletions
diff --git a/nitpicker b/nitpicker
index fa3f3223..ef0a22f4 100755
--- a/nitpicker
+++ b/nitpicker
@@ -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()