Skip to content
Merged
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
13 changes: 12 additions & 1 deletion scripts/validation/rules/rules-trademarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,22 @@
type: warning
errorMessage: The Edge Impulse® trademark is not used correctly.

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

# MIPI® / A-PHY® / CSI-2® / I3C® / M-PHY® rule
- 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])))(?=®)"
regexModifiers: "gi"
shouldMatch: false
includeCodeBlocks: false
format: markdown
type: warning
errorMessage: The MIPI® / A-PHY® / CSI-2® / I3C® / M-PHY® trademark owned by MIPI Alliance is not used correctly.

errorMessage: The MIPI® / A-PHY® / CSI-2® / I3C® / M-PHY® trademark owned by MIPI Alliance is not used correctly.