Skip to content

Commit 34c9d8b

Browse files
authored
Lint trailing whitespace (esphome#3230)
1 parent ae57ad0 commit 34c9d8b

File tree

7 files changed

+17
-14
lines changed

7 files changed

+17
-14
lines changed

.github/ISSUE_TEMPLATE/config.yml

-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ contact_links:
99
- name: Frequently Asked Question
1010
url: https://esphome.io/guides/faq.html
1111
about: Please view the FAQ for common questions and what to include in a bug report.
12-

.github/PULL_REQUEST_TEMPLATE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# What does this implement/fix?
1+
# What does this implement/fix?
22

33
Quick description and explanation of changes
44

@@ -35,6 +35,6 @@ Quick description and explanation of changes
3535
## Checklist:
3636
- [ ] The code change is tested and works locally.
3737
- [ ] Tests have been added to verify that the new code works (under `tests/` folder).
38-
38+
3939
If user exposed functionality or configuration variables are added/changed:
4040
- [ ] Documentation added/updated in [esphome-docs](https://github.com/esphome/esphome-docs).

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ For a detailed guide, please see https://esphome.io/guides/contributing.html#con
55
Things to note when contributing:
66

77
- Please test your changes :)
8-
- If a new feature is added or an existing user-facing feature is changed, you should also
8+
- If a new feature is added or an existing user-facing feature is changed, you should also
99
update the [docs](https://github.com/esphome/esphome-docs). See [contributing to esphome-docs](https://esphome.io/guides/contributing.html#contributing-to-esphomedocs)
1010
for more information.
1111
- Please also update the tests in the `tests/` folder. You can do so by just adding a line in one of the YAML files

esphome/components/fujitsu_general/fujitsu_general.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,29 @@ const uint8_t FUJITSU_GENERAL_TEMP_MAX = 30; // Celsius
1717
* turn
1818
* on temp mode fan swing
1919
* * | | | | | | *
20-
*
20+
*
2121
* temperatures 1 1248 124 124 1
2222
* auto auto 18 00101000 11000110 00000000 00001000 00001000 01111111 10010000 00001100 10000100 00000000 00000000 00000000 00000000 00000000 00000100 11110001
2323
* auto auto 19 00101000 11000110 00000000 00001000 00001000 01111111 10010000 00001100 10001100 00000000 00000000 00000000 00000000 00000000 00000100 11111110
2424
* auto auto 30 00101000 11000110 00000000 00001000 00001000 01111111 10010000 00001100 10000111 00000000 00000000 00000000 00000000 00000000 00000100 11110011
25-
*
25+
*
2626
* on flag:
2727
* on at 16 00101000 11000110 00000000 00001000 00001000 01111111 10010000 00001100 10000000 00100000 00000000 00000000 00000000 00000000 00000100 11010101
2828
* down to 16 00101000 11000110 00000000 00001000 00001000 01111111 10010000 00001100 00000000 00100000 00000000 00000000 00000000 00000000 00000100 00110101
29-
*
29+
*
3030
* mode options:
3131
* auto auto 30 00101000 11000110 00000000 00001000 00001000 01111111 10010000 00001100 10000111 00000000 00000000 00000000 00000000 00000000 00000100 11110011
3232
* cool auto 30 00101000 11000110 00000000 00001000 00001000 01111111 10010000 00001100 10000111 10000000 00000000 00000000 00000000 00000000 00000100 01110011
3333
* dry auto 30 00101000 11000110 00000000 00001000 00001000 01111111 10010000 00001100 10000111 01000000 00000000 00000000 00000000 00000000 00000100 10110011
3434
* fan (auto) (30) 00101000 11000110 00000000 00001000 00001000 01111111 10010000 00001100 10000111 11000000 00000000 00000000 00000000 00000000 00000100 00110011
3535
* heat auto 30 00101000 11000110 00000000 00001000 00001000 01111111 10010000 00001100 10000111 00100000 00000000 00000000 00000000 00000000 00000100 11010011
36-
*
36+
*
3737
* fan options:
3838
* heat 30 high 00101000 11000110 00000000 00001000 00001000 01111111 10010000 00001100 10000111 00100000 10000000 00000000 00000000 00000000 00000100 01010011
3939
* heat 30 med 00101000 11000110 00000000 00001000 00001000 01111111 10010000 00001100 00000111 00100000 01000000 00000000 00000000 00000000 00000100 01010011
4040
* heat 30 low 00101000 11000110 00000000 00001000 00001000 01111111 10010000 00001100 00000111 00100000 11000000 00000000 00000000 00000000 00000100 10010011
4141
* heat 30 quiet 00101000 11000110 00000000 00001000 00001000 01111111 10010000 00001100 00000111 00100000 00100000 00000000 00000000 00000000 00000100 00010011
42-
*
42+
*
4343
* swing options:
4444
* heat 30 swing vert 00101000 11000110 00000000 00001000 00001000 01111111 10010000 00001100 00000111 00100000 00101000 00000000 00000000 00000000 00000100 00011101
4545
* heat 30 noswing 00101000 11000110 00000000 00001000 00001000 01111111 10010000 00001100 00000111 00100000 00100000 00000000 00000000 00000000 00000100 00010011

esphome/components/ili9341/ili9341_init.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ static const uint8_t PROGMEM INITCMD_M5STACK[] = {
2525
0xF2, 1, 0x00, // 3Gamma Function Disable
2626
ILI9341_GAMMASET , 1, 0x01, // Gamma curve selected
2727
ILI9341_GMCTRP1 , 15, 0x0F, 0x31, 0x2B, 0x0C, 0x0E, 0x08, // Set Gamma
28-
0x4E, 0xF1, 0x37, 0x07, 0x10, 0x03,
28+
0x4E, 0xF1, 0x37, 0x07, 0x10, 0x03,
2929
0x0E, 0x09, 0x00,
3030
ILI9341_GMCTRN1 , 15, 0x00, 0x0E, 0x14, 0x03, 0x11, 0x07, // Set Gamma
31-
0x31, 0xC1, 0x48, 0x08, 0x0F, 0x0C,
31+
0x31, 0xC1, 0x48, 0x08, 0x0F, 0x0C,
3232
0x31, 0x36, 0x0F,
3333
ILI9341_SLPOUT , 0x80, // Exit Sleep
3434
ILI9341_DISPON , 0x80, // Display on
@@ -55,10 +55,10 @@ static const uint8_t PROGMEM INITCMD_TFT[] = {
5555
0xF2, 1, 0x00, // 3Gamma Function Disable
5656
ILI9341_GAMMASET , 1, 0x01, // Gamma curve selected
5757
ILI9341_GMCTRP1 , 15, 0x0F, 0x31, 0x2B, 0x0C, 0x0E, 0x08, // Set Gamma
58-
0x4E, 0xF1, 0x37, 0x07, 0x10, 0x03,
58+
0x4E, 0xF1, 0x37, 0x07, 0x10, 0x03,
5959
0x0E, 0x09, 0x00,
6060
ILI9341_GMCTRN1 , 15, 0x00, 0x0E, 0x14, 0x03, 0x11, 0x07, // Set Gamma
61-
0x31, 0xC1, 0x48, 0x08, 0x0F, 0x0C,
61+
0x31, 0xC1, 0x48, 0x08, 0x0F, 0x0C,
6262
0x31, 0x36, 0x0F,
6363
ILI9341_SLPOUT , 0x80, // Exit Sleep
6464
ILI9341_DISPON , 0x80, // Display on

script/ci-custom.py

+5
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,11 @@ def lint_inclusive_language(fname, match):
591591
)
592592

593593

594+
@lint_re_check(r"[\t\r\f\v ]+$")
595+
def lint_trailing_whitespace(fname, match):
596+
return "Trailing whitespace detected"
597+
598+
594599
@lint_content_find_check(
595600
"ESP_LOG",
596601
include=["*.h", "*.tcc"],

tests/component_tests/button/test_button.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ button:
1818
name: wol_test_2
1919
id: wol_2
2020
internal: false
21-

0 commit comments

Comments
 (0)