mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
Lint trailing whitespace (#3230)
This commit is contained in:
parent
ae57ad0c81
commit
34c9d8be50
7 changed files with 17 additions and 14 deletions
1
.github/ISSUE_TEMPLATE/config.yml
vendored
1
.github/ISSUE_TEMPLATE/config.yml
vendored
|
@ -9,4 +9,3 @@ contact_links:
|
||||||
- name: Frequently Asked Question
|
- name: Frequently Asked Question
|
||||||
url: https://esphome.io/guides/faq.html
|
url: https://esphome.io/guides/faq.html
|
||||||
about: Please view the FAQ for common questions and what to include in a bug report.
|
about: Please view the FAQ for common questions and what to include in a bug report.
|
||||||
|
|
||||||
|
|
|
@ -591,6 +591,11 @@ def lint_inclusive_language(fname, match):
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@lint_re_check(r"[\t\r\f\v ]+$")
|
||||||
|
def lint_trailing_whitespace(fname, match):
|
||||||
|
return "Trailing whitespace detected"
|
||||||
|
|
||||||
|
|
||||||
@lint_content_find_check(
|
@lint_content_find_check(
|
||||||
"ESP_LOG",
|
"ESP_LOG",
|
||||||
include=["*.h", "*.tcc"],
|
include=["*.h", "*.tcc"],
|
||||||
|
|
|
@ -18,4 +18,3 @@ button:
|
||||||
name: wol_test_2
|
name: wol_test_2
|
||||||
id: wol_2
|
id: wol_2
|
||||||
internal: false
|
internal: false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue