-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add style rule for postgresdb Signed-off-by: Mirjam Aulbach <mirjam.aulbach@aiven.io> * Add rule for condensending language Signed-off-by: Mirjam Aulbach <mirjam.aulbach@aiven.io> * Add rule for use of race related words and update error. Signed-off-by: Mirjam Aulbach <mirjam.aulbach@aiven.io> --------- Signed-off-by: Mirjam Aulbach <mirjam.aulbach@aiven.io>
- Loading branch information
1 parent
e271e87
commit 7f93d1a
Showing
4 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
extends: conditional | ||
message: "The first mention of '%s' must be marked as ®" | ||
level: warning | ||
scope: text | ||
ignorecase: false | ||
|
||
first: '\b(PostgreSQL)(?!®)' | ||
second: '(PostgreSQL)(?:®)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Based alex https://github.com/errata-ai/alex/ | ||
|
||
extends: existence | ||
message: Using '%s' may come across as condescending. | ||
link: https://css-tricks.com/words-avoid-educational-writing/ | ||
level: warning | ||
ignorecase: true | ||
tokens: | ||
- clearly | ||
- easily | ||
- easy | ||
- everyone knows | ||
- just | ||
- obvious | ||
- obviously | ||
- of course | ||
- simple | ||
- simply |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Based alex https://github.com/errata-ai/alex/ | ||
|
||
extends: substitution | ||
message: Consider using '%s' instead of '%s'. | ||
ignorecase: true | ||
level: error | ||
action: | ||
name: replace | ||
swap: | ||
black list: blocklist|wronglist|banlist|deny list | ||
blacklist: blocklist|wronglist|banlist|deny list | ||
blacklisted: blocklisted|wronglisted|banlisted|deny-listed | ||
blacklisting: blocklisting|wronglisting|banlisting|deny-listing | ||
master: primary|hub|reference | ||
masters: primaries|hubs|references | ||
sophisticated technology: complex technology | ||
white list: passlist|alrightlist|safelist|allow list | ||
white space: space|blank | ||
white spaces: space|blank | ||
whitelist: passlist|alrightlist|safelist|allow list | ||
whitelisted: passlisted|alrightlisted|safelisted|allow-listed | ||
whitelisting: passlisting|alrightlisting|safelisting|allow-listing | ||
whitespace: space|blank | ||
whitespaces: space|blank |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters