-
Notifications
You must be signed in to change notification settings - Fork 978
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'test-vale' into ly-test-linter2
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
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
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,17 @@ | ||
# styles/custom/BoldUIElements.yml | ||
extends: existence | ||
message: "UI elements like '%s' should be bold." | ||
level: warning | ||
tokens: | ||
# Match UI elements that are not bolded (i.e., not within **), but exclude those starting a sentence | ||
- '(?<!^)(?<![.!?]\s)\bSave\b' | ||
- '(?<!^)(?<![.!?]\s)\bSave as\b' | ||
- '(?<!^)(?<![.!?]\s)\bCancel\b' | ||
- '(?<!^)(?<![.!?]\s)\bSubmit\b' | ||
- '(?<!^)(?<![.!?]\s)\bEdit\b' | ||
- '(?<!^)(?<![.!?]\s)\bAccount settings\b' | ||
- '(?<!^)(?<![.!?]\s)\bProject details\b' | ||
- '(?<!^)(?<![.!?]\s)\bProfile settings\b' | ||
- '(?<!^)(?<![.!?]\s)\bPersonal profile\b' | ||
|
||
scope: raw # Ensure the rule is applied before formatting |