Add lint check for integer constants (#775)

This commit is contained in:
Otto Winter committed 2019-10-24 22:02:23 +02:00
1 parent 8867a0fcfb
commit 6f63a62a8d
3 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -5,6 +5,7 @@ import codecs
import collections
import fnmatch
import os.path
import re
import subprocess
import sys
import re
@@ -262,7 +263,6 @@ def lint_constants_usage():
errors.append("Constant {} is defined in {} files. Please move all definitions of the "
"constant to const.py (Uses: {})"
"".format(highlight(constant), len(uses), ', '.join(uses)))
return errors
def relative_cpp_search_text(fname, content):