From 468e6ff9360d3859ba47eddca1219ca5edb568e7 Mon Sep 17 00:00:00 2001 From: Moul Date: Sat, 5 Nov 2016 20:09:10 +0100 Subject: [PATCH] [fix] do not check swap files from Vim which make the linter fail. --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index cc6447f..95267c7 100755 --- a/package_linter.py +++ b/package_linter.py @@ -217,7 +217,7 @@ if __name__ == '__main__': i, scripts = 0, ["install", "remove", "upgrade", "backup", "restore"] for (dirpath, dirnames, filenames) in os.walk(os.path.join(app_path, "scripts")): for filename in filenames: - if filename not in scripts: + if filename not in scripts and filename[-4:] != ".swp": scripts.append(filename) while i < len(scripts): check_script(app_path, scripts[i])