Set "CONF_" CI counter to fail on 3 or more definitions (#6668)

This commit is contained in:
Jesse Hills authored and GitHub committed 2024-05-05 00:32:47 -05:00
1 parent c7c0d97a5e
commit ccbf5148aa
55 files changed
+95 -81

No files matched your search

+1 -1
View File
@@ -476,7 +476,7 @@ def lint_no_byte_datatype(fname, match):
def lint_constants_usage():
errs = []
for constant, uses in CONSTANTS_USES.items():
if len(uses) < 4:
if len(uses) < 3:
continue
errs.append(
f"Constant {highlight(constant)} is defined in {len(uses)} files. Please move all definitions of the "