Skip to content

Commit 52dcdfc

Browse files
authored
Merge pull request #2630 from ladyada/patch-1
Add Adafruit® trademark rules in rules-trademarks.yml
2 parents ea3e72b + dc95296 commit 52dcdfc

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

scripts/validation/rules/rules-trademarks.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,22 @@
5252
type: warning
5353
errorMessage: The Edge Impulse® trademark is not used correctly.
5454

55+
# Adafruit® rule
56+
# Skip the match if it is inside tags' lists
57+
- regex: "(?<!http[s]?:\\/\\/\\S*| - )(?:Adafruit)(?!®)\\b"
58+
regexModifiers: "gi"
59+
shouldMatch: false
60+
includeCodeBlocks: false
61+
format: markdown
62+
type: warning
63+
errorMessage: The Adafruit® trademark is not used correctly.
64+
5565
# MIPI® / A-PHY® / CSI-2® / I3C® / M-PHY® rule
5666
- regex: "((?<![a-zA-Z]|[0-9])((mipi)|((aphy)|(a-phy))|((csi2)|(csi-2))|(i3c)|((mphy)|(m-phy)))(?!®|[a-zA-Z]))|(([mM][iI][pP][i])|(([aA][pP][hH][yY])|([aA]-[pP][hH][y]))|(([cC][sS][iI]2)|([cC][sS][i]-2))|([iI]3[c])|(([mM][pP][hH][yY])|([mM]-[pP][hH][y])))(?=®)"
5767
regexModifiers: "gi"
5868
shouldMatch: false
5969
includeCodeBlocks: false
6070
format: markdown
6171
type: warning
62-
errorMessage: The MIPI® / A-PHY® / CSI-2® / I3C® / M-PHY® trademark owned by MIPI Alliance is not used correctly.
72+
73+
errorMessage: The MIPI® / A-PHY® / CSI-2® / I3C® / M-PHY® trademark owned by MIPI Alliance is not used correctly.

0 commit comments

Comments
 (0)