Skip to content

Commit

Permalink
Merge branch 'test-vale' into ly-test-linter2
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Sep 27, 2024
2 parents ed969ca + 1210890 commit 663b566
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
24 changes: 15 additions & 9 deletions styles/Vocab/EN/accept.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Proper nouns and terms that should always be accepted
dbt Cloud
dbt Core
dbt Semantic Layer
Expand All @@ -8,7 +7,7 @@ dbt-tonic
dbtonic
IDE
CLI
Config # Proper noun capitalization
Config
info
docs
yaml
Expand Down Expand Up @@ -37,26 +36,33 @@ dbt_project.yml
boolean
defaultValue=
DWH
DWUs
shoutout
ADF
BQ
gcloud
MSFT
DDL
APIs
API
SSIS
PBI
PowerBI
datetime
PySpark
:::caution
:::note
:::info
:::tip
:::warning

# Regex patterns to allow specific formats
\<[^>]+\> # Allows HTML-like tags
\b[a-z]+(?:_[a-z]+)*\b # Allows snake_case words
\b[A-Z]{2,}(?:/[A-Z]{2,})?\b # Allows acronyms like SQL, IDE
\w+-\w+ # Allows hyphenated words (e.g., dbt-core)
\w+/\w+ # Allows slash-separated words (e.g., API/CLI)
\<[^>]+\>
\b[a-z]+(?:_[a-z]+)*\b
\b[A-Z]{2,}(?:/[A-Z]{2,})?\b
\w+-\w+
\w+/\w+
n/a
N/A
\<Tabs
pseudocolumn
yml
values=
4 changes: 1 addition & 3 deletions styles/custom/SentenceCaseHeaders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ extends: capitalization
message: "'%s' should use sentence-style capitalization. Try '%s' instead."
level: warning
scope: heading
match: $sentence # enforce sentence-style capitalization for headers
match: $sentence # Enforces sentence-style capitalization
indicators:
- ":"
exceptions:
- '\bdbt\b'
- '\bdbt\s+Cloud\b'
- '\bdbt\s+Core\b'
- '\bdbt\s+Cloud\s+CLI\b'
- '\bdbt\s+.*?\b'
- Snowflake
- Databricks
- Azure
Expand All @@ -33,4 +32,3 @@ exceptions:
- Postgres
- Explorer
- IDE
-

0 comments on commit 663b566

Please sign in to comment.