Skip to content

Commit c71125a

Browse files
authored
Merge pull request #2792 from arduino/jhansson-ard/linter-updates
Updating Linter Tool
2 parents d70f82a + d1e60e5 commit c71125a

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

scripts/validation/rules/rules-spelling.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@
7676
errorMessage: Space between unit and value required
7777

7878
# Excludes Wi-Fi in URLs (prepended by dash or slash) and WiFi.XY and MKR WiFi
79-
- regex: "(?<![\\/-]|Arduino |UNO |MKR |MKR 1000 |MKR1000)[wW]i[fF]i(?![-\\/]|\\.?\\S| [sS]hield|101| 101)"
80-
shouldMatch: false
81-
type: warning
82-
format: markdown
83-
includeCodeBlocks: false
84-
errorMessage: "Incorrect spelling of 'Wi-Fi' found."
79+
# - regex: "(?<![\\/-]|Arduino |UNO |MKR |MKR 1000 |MKR1000)[wW]i[fF]i(?![-\\/]|\\.?\\S| [sS]hield|101| 101)"
80+
# shouldMatch: false
81+
# type: warning
82+
# format: markdown
83+
# includeCodeBlocks: false
84+
# errorMessage: "Incorrect spelling of 'Wi-Fi' found."
8585

8686
- regex: "(?<!\\/|-)\\b(master|slave)\\b"
8787
regexModifiers: "gi"

scripts/validation/rules/rules-trademarks.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
errorMessage: The LoRa® trademark is not used correctly or the first occurrence of LoRa® must include the ® symbol. LoRaWAN should not be used.
2626

2727
# USB-C® / USB Type-C® / USB4® rule
28-
- regex: "((?<![a-zA-Z]|[0-9])(?<=\\s)(?:USB-C|USB\\sType[-]C|USB4)(?!®|[a-zA-Z]))"
29-
regexModifiers: "gi"
30-
shouldMatch: false
31-
includeCodeBlocks: false
32-
format: markdown
33-
type: warning
34-
errorMessage: The USB-C® / USB Type-C® / USB4® trademark is not used correctly.
28+
# - regex: "((?<![a-zA-Z]|[0-9])(?<=\\s)(?:USB-C|USB\\sType[-]C|USB4)(?!®|[a-zA-Z]))"
29+
# regexModifiers: "gi"
30+
# shouldMatch: false
31+
# includeCodeBlocks: false
32+
# format: markdown
33+
# type: warning
34+
# errorMessage: The USB-C® / USB Type-C® / USB4® trademark is not used correctly.
3535

3636
# Arduino Opta® rule
3737
- regex: "(?<!http[s]?:\\/\\/\\S*| - )(?<![a-zA-Z]|[0-9])(?<=\\s)(([oO]pta)(?!®|™|[a-zA-Z])|(((?<=[aA]rduino\\s)([oO]pta(?=™)))|((?<=[aA]rduino®\\s)([oO]pta))))"
@@ -44,13 +44,13 @@
4444

4545
# Edge Impulse® rule
4646
# Skip the match if it is inside tags' lists
47-
- regex: "(?<!http[s]?:\\/\\/\\S*| - )(?:Edge[ -]Impulse|[eE]dge[iI]mpulse)(?!®)\\b"
48-
regexModifiers: "gi"
49-
shouldMatch: false
50-
includeCodeBlocks: false
51-
format: markdown
52-
type: warning
53-
errorMessage: The Edge Impulse® trademark is not used correctly.
47+
# - regex: "(?<!http[s]?:\\/\\/\\S*| - )(?:Edge[ -]Impulse|[eE]dge[iI]mpulse)(?!®)\\b"
48+
# regexModifiers: "gi"
49+
# shouldMatch: false
50+
# includeCodeBlocks: false
51+
# format: markdown
52+
# type: warning
53+
# errorMessage: The Edge Impulse® trademark is not used correctly.
5454

5555
# Adafruit® rule
5656
# Skip the match if it is inside tags' lists

0 commit comments

Comments
 (0)