Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions scripts/validation/rules/rules-spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@
errorMessage: Space between unit and value required

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

- regex: "(?<!\\/|-)\\b(master|slave)\\b"
regexModifiers: "gi"
Expand Down
28 changes: 14 additions & 14 deletions scripts/validation/rules/rules-trademarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
errorMessage: The LoRa® trademark is not used correctly or the first occurrence of LoRa® must include the ® symbol. LoRaWAN should not be used.

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

# Arduino Opta® rule
- 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))))"
Expand All @@ -44,13 +44,13 @@

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

# Adafruit® rule
# Skip the match if it is inside tags' lists
Expand Down
Loading