Make wmllint and wmlscope ignore Emacs tempfiles.
This commit is contained in:
parent
63a48bfeb7
commit
1cd37a871c
1 changed files with 2 additions and 1 deletions
|
@ -84,7 +84,8 @@ class Forest:
|
|||
subtree.sort(lambda x, y: cmp(x, y) - 2*int(x.endswith("_main.cfg")) + 2*int(y.endswith("_main.cfg")))
|
||||
self.forest.append(subtree)
|
||||
for i in range(len(self.forest)):
|
||||
self.forest[i] = filter(lambda x: ".svn" not in x and ".git" not in x, self.forest[i])
|
||||
# Ignore versiuon-control subdirectories and Emacs tempfiles
|
||||
self.forest[i] = filter(lambda x: ".svn" not in x and ".git" not in x and '.#' not in x, self.forest[i])
|
||||
self.forest[i] = filter(lambda x: not os.path.isdir(x), self.forest[i])
|
||||
if exclude:
|
||||
self.forest[i] = filter(lambda x: not re.search(exclude, x), self.forest[i])
|
||||
|
|
Loading…
Add table
Reference in a new issue