1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Have module formatter ignore more types of files.

This commit is contained in:
Michael DeHaan 2012-11-26 18:50:26 -05:00
parent 21d858f36d
commit dd5a8474f8

View file

@ -283,7 +283,8 @@ def main():
fname = os.path.join(options.module_dir, module) fname = os.path.join(options.module_dir, module)
extra = os.path.join("inc", "%s.tex" % module) extra = os.path.join("inc", "%s.tex" % module)
if fname.endswith(".swp"): # probably could just throw out everything with extensions
if fname.endswith(".swp") or fname.endswith(".orig") or fname.endswith(".rej"):
continue continue
print " processing module source ---> %s" % fname print " processing module source ---> %s" % fname