1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-08 06:12:20 +01:00

Add lint check for integer constants (#775)

This commit is contained in:
Otto Winter
2019-10-19 22:31:32 +02:00
parent 8867a0fcfb
commit 6f63a62a8d
3 changed files with 8 additions and 8 deletions

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):