|
1 | 1 | extends: existence |
2 | | -message: "The word '%s' should always be capitalized." |
| 2 | +message: "The word '%s' should always be capitalized when referring to Apify products." |
3 | 3 | ignorecase: false |
4 | 4 | level: error |
| 5 | +scope: text |
5 | 6 | tokens: |
6 | | - # Before the word there should be no: /, -, #, word character |
7 | | - # (avoids anchors, URLs, identifiers, and words like 'factors') |
8 | | - # |
9 | | - # After the word there should be no: /, } (avoids paths or URLs) |
10 | | - # Also no . followed by a word character (avoids 'actors.md') |
| 7 | + # Apify Actors (the product) - avoid matching in URLs, code, or other contexts |
11 | 8 | - '(?<![\/\-#\w])actors(?![\/\}])(?!\.\w)' |
12 | | - |
13 | | - # Before the word there should be no: /, -, #, ., `, word character |
14 | | - # (avoids anchors, URLs, identifiers, code, and words like 'factors') |
15 | | - # |
16 | | - # After the word there should be no: /, }, -, word character (avoids paths or URLs) |
17 | | - # Also no " =" (avoids code like "actor = ...") |
18 | | - # Also no . followed by a word character (avoids 'actor.md' or 'actor.update()') |
| 9 | + |
| 10 | + # Apify Actor (the product) - avoid matching in URLs, code, or other contexts |
19 | 11 | - '(?<![\/\-#\.`\w])actor(?![\/\}\-\w])(?! =)(?!\.\w)' |
| 12 | + |
| 13 | + # Apify Console (the product) |
| 14 | + - '(?<![\/\-#\.`\w])console(?![\/\}\-\w])(?! =)(?!\.\w)' |
| 15 | + |
| 16 | + # Apify Proxy (the product) |
| 17 | + - '(?<![\/\-#\.`\w])proxy(?![\/\}\-\w])(?! =)(?!\.\w)' |
20 | 18 | nonword: false |
0 commit comments