diff options
author | Matt Clay <matt@mystile.com> | 2019-07-26 15:26:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-26 15:26:39 -0700 |
commit | f274cefa5978b64b6ba776f5b44cdb60b1127595 (patch) | |
tree | b0129148045114fcdba520e391f4b279386d4b2c /test/sanity/code-smell/required-and-default-attributes.py | |
parent | 7c6fb57b7d2dedb732fe7d41131c929ccb917a84 (diff) | |
download | ansible-f274cefa5978b64b6ba776f5b44cdb60b1127595.tar.gz |
Consolidate sanity test ignore entries. (#59665)
* Update empty-init test.
* Update future-import-boilerplate test.
* Update line-endings test.
* Update metaclass-boilerplate test.
* Update no-assert test.
* Update no-basestring test.
* Update no-dict-iteritems test.
* Update no-dict-iterkeys test.
* Update no-dict-itervalues test.
* Update no-get-exception test.
* Update no-main-display test.
* Update no-smart-quotes test.
* Update no-unicode-literals test.
* Update no-unwanted-files test.
* Update replace-urlopen test.
* Update required-and-default-attributes test.
* Update shebang test.
* Update test-constraints test.
* Update use-argspec-type-path test.
* Update use-compat-six test.
Diffstat (limited to 'test/sanity/code-smell/required-and-default-attributes.py')
-rwxr-xr-x | test/sanity/code-smell/required-and-default-attributes.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/test/sanity/code-smell/required-and-default-attributes.py b/test/sanity/code-smell/required-and-default-attributes.py index 559d76d7a6..5ef410bd04 100755 --- a/test/sanity/code-smell/required-and-default-attributes.py +++ b/test/sanity/code-smell/required-and-default-attributes.py @@ -2,20 +2,12 @@ from __future__ import (absolute_import, division, print_function) __metaclass__ = type -import os import re import sys def main(): - skip = set([ - 'test/sanity/code-smell/%s' % os.path.basename(__file__), - ]) - for path in sys.argv[1:] or sys.stdin.read().splitlines(): - if path in skip: - continue - with open(path, 'r') as path_fd: for line, text in enumerate(path_fd.readlines()): match = re.search(r'(FieldAttribute.*(default|required).*(default|required))', text) |