Skip to content

Commit

Permalink
update header
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 committed Sep 27, 2024
1 parent 70bb461 commit 1ebf739
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 11 deletions.
25 changes: 24 additions & 1 deletion styles/custom/SentenceCaseHeaders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ extends: capitalization
message: "'%s' should use sentence-style capitalization. Try '%s' instead."
level: warning
scope: heading
match: $sentence
match: $sentence # enforce sentence-style capitalization for headers
indicators:
- ":"
exceptions:
Expand All @@ -11,3 +11,26 @@ exceptions:
- '\bdbt\s+Core\b'
- '\bdbt\s+Cloud\s+CLI\b'
- '\bdbt\s+.*?\b'
- Snowflake
- Databricks
- Azure
- GCP
- AWS
- SQL
- CLI
- API
- YAML
- JSON
- HTML
- Redshift
- Google
- BigQuery
- SnowSQL
- Snowsight
- Snowpark
- Fabric
- Microsoft
- Postgres
- Explorer
- IDE
-
20 changes: 10 additions & 10 deletions styles/custom/UIElements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ 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'
# Match UI elements that are not bolded (i.e., not within **), but exclude those starting a sentence or following a list number
- '(?<!^)(?<![.!?]\s)(?<!\d\.\s)\bSave\b'
- '(?<!^)(?<![.!?]\s)(?<!\d\.\s)\bSave as\b'
- '(?<!^)(?<![.!?]\s)(?<!\d\.\s)\bCancel\b'
- '(?<!^)(?<![.!?]\s)(?<!\d\.\s)\bSubmit\b'
- '(?<!^)(?<![.!?]\s)(?<!\d\.\s)\bEdit\b'
- '(?<!^)(?<![.!?]\s)(?<!\d\.\s)\bAccount settings\b'
- '(?<!^)(?<![.!?]\s)(?<!\d\.\s)\bProject details\b'
- '(?<!^)(?<![.!?]\s)(?<!\d\.\s)\bProfile settings\b'
- '(?<!^)(?<![.!?]\s)(?<!\d\.\s)\bPersonal profile\b'

scope: raw # Ensure the rule is applied before formatting

0 comments on commit 1ebf739

Please sign in to comment.