Skip to content

Commit ac4e5c2

Browse files
committed
Linter: Add NXP® rule
1 parent 287a41b commit ac4e5c2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/validation/rules/rules-trademarks.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,13 @@
2323
includeCodeBlocks: false
2424
format: markdown
2525
type: warning
26-
errorMessage: The USB-C® / USB Type-C® / USB4® trademark is not used correctly.
26+
errorMessage: The USB-C® / USB Type-C® / USB4® trademark is not used correctly.
27+
28+
# NXP® rule
29+
- regex: "(?<!http[s]?:\\/\\/\\S*)(?:NXP)(?!®)\\b"
30+
regexModifiers: "gi"
31+
shouldMatch: false
32+
includeCodeBlocks: false
33+
format: markdown
34+
type: warning
35+
errorMessage: The NXP® trademark is not used correctly.

0 commit comments

Comments
 (0)