diff options
author | Martin Mathieson <martin.mathieson@keysight.com> | 2021-01-16 22:59:12 +0000 |
---|---|---|
committer | Martin Mathieson <martin.mathieson@keysight.com> | 2021-01-16 22:59:12 +0000 |
commit | 1979750a78e458e2c1cf95e4befa91641099f987 (patch) | |
tree | 1037a14e93e90b6cdc371d120573bea3a140833f /tools | |
parent | 6a271f90c51080cf7afc1d4d750cdaeb85e15a9e (diff) |
Spelling: avoid generated files with --commits
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/check_spelling.py | 5 | ||||
-rw-r--r-- | tools/wireshark_words.txt | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/tools/check_spelling.py b/tools/check_spelling.py index 7a1f11fff2..0c15ea728c 100755 --- a/tools/check_spelling.py +++ b/tools/check_spelling.py @@ -272,6 +272,9 @@ def findStrings(filename): # Test for whether the given file was automatically generated. def isGeneratedFile(filename): + if not filename.endswith('.c'): + return False + # Open file f_read = open(os.path.join(filename), 'r') lines_tested = 0 @@ -363,7 +366,7 @@ elif args.commits: files = [f.decode('utf-8') for f in subprocess.check_output(command).splitlines()] # Will examine dissector files only - files = list(filter(lambda f : isAppropriateFile(f), files)) + files = list(filter(lambda f : isAppropriateFile(f) and not isGeneratedFile(f), files)) elif args.open: # Unstaged changes. command = ['git', 'diff', '--name-only'] diff --git a/tools/wireshark_words.txt b/tools/wireshark_words.txt index 9bb4458ff7..e1e0af7fb1 100644 --- a/tools/wireshark_words.txt +++ b/tools/wireshark_words.txt @@ -1,4 +1,3 @@ - 0x%02x 0x%08x 16bit @@ -64,6 +63,7 @@ authtype autoconfiguration autodiscovery autoneg +autosar available avaya backend @@ -85,6 +85,7 @@ blackhole bnode bootfile bootloader +bootopt bootp broadcom bsmap @@ -251,6 +252,7 @@ desegment desegmentation desegmenting deselect +devcap devmode dfilter dfsauth @@ -429,6 +431,7 @@ initializers initializes initializing inline +inode interferer interleaving interruptible @@ -492,6 +495,7 @@ manuf mappable maybefcs mcast +mcsset measurements megabit megaco @@ -549,6 +553,7 @@ multirat multirate multislot multistate +mumbai nacks namelen namespace @@ -673,6 +678,7 @@ protected protoabbrev protobuf protocolie +proxying pscell pseudowire ptvcursor @@ -850,6 +856,7 @@ spoofing spooled srbid srcport +srvcc ssupervisor stateful statusbar |