-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
new (style): Updated contributing docs and Vale for style guide assistance #16267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sfanahata
wants to merge
3
commits into
master
Choose a base branch
from
style-guide-and-vale-linter
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,31 @@ | ||
| # Enforce Title Case for headings | ||
| extends: capitalization | ||
| message: "Use Title Case for headings: '%s'" | ||
| level: suggestion | ||
| scope: heading | ||
| match: $title | ||
| style: AP | ||
| # Allow certain words to be lowercase in titles | ||
| indicators: | ||
| - ":" | ||
| exceptions: | ||
| - a | ||
| - an | ||
| - and | ||
| - as | ||
| - at | ||
| - but | ||
| - by | ||
| - for | ||
| - in | ||
| - nor | ||
| - of | ||
| - on | ||
| - or | ||
| - so | ||
| - the | ||
| - to | ||
| - up | ||
| - yet | ||
| - vs | ||
| - via |
This file contains hidden or 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,13 @@ | ||
| # Sentry inclusive language rules | ||
| # See: https://develop.sentry.dev/getting-started/inclusive-language/ | ||
| extends: substitution | ||
| message: "Use '%s' instead of '%s' for inclusive language." | ||
| level: warning | ||
| ignorecase: true | ||
| swap: | ||
| blacklist: blocklist | ||
| whitelist: allowlist | ||
| blacklisted: blocked | ||
| whitelisted: allowed | ||
| master/slave: primary/replica | ||
| grandfathered: legacy |
This file contains hidden or 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,36 @@ | ||
| # Avoid corporate marketing language | ||
| extends: existence | ||
| message: "Avoid marketing speak: '%s'. Be direct and specific instead." | ||
| level: suggestion | ||
| ignorecase: true | ||
| tokens: | ||
| - best-in-class | ||
| - best in class | ||
| - world-class | ||
| - world class | ||
| - cutting-edge | ||
| - cutting edge | ||
| - industry-leading | ||
| - industry leading | ||
| - leverage | ||
| - leveraging | ||
| - leverages | ||
| - synergy | ||
| - synergies | ||
| - synergize | ||
| - paradigm | ||
| - paradigm shift | ||
| - game-changer | ||
| - game changer | ||
| - revolutionary | ||
| - revolutionize | ||
| - disruptive | ||
| - next-generation | ||
| - next generation | ||
| - bleeding-edge | ||
| - bleeding edge | ||
| - robust solution | ||
| - seamlessly | ||
| - empower | ||
| - empowers | ||
| - empowering |
This file contains hidden or 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,15 @@ | ||
| # Ensure proper capitalization of Sentry product names | ||
| extends: substitution | ||
| message: "Use '%s' instead of '%s' for proper capitalization." | ||
| level: warning | ||
| ignorecase: false | ||
| swap: | ||
| '(?<![A-Za-z])sentry(?![A-Za-z-])': Sentry | ||
| 'Sentry sdk': Sentry SDK | ||
| 'sentry SDK': Sentry SDK | ||
| 'sentry sdk': Sentry SDK | ||
| '(?<![A-Za-z])dsn(?![A-Za-z])': DSN | ||
| javascript: JavaScript | ||
| Javascript: JavaScript | ||
| typescript: TypeScript | ||
| Typescript: TypeScript |
This file contains hidden or 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 @@ | ||
| # Flag overly long sentences | ||
| extends: occurrence | ||
| message: "This sentence has %s words. Consider breaking it into shorter sentences (aim for under 25 words)." | ||
| level: suggestion | ||
| # Count words in a sentence | ||
| scope: sentence | ||
| max: 35 | ||
| token: '\b\w+\b' |
This file contains hidden or 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,21 @@ | ||
| # Prefer simpler words and phrases | ||
| extends: substitution | ||
| message: "Consider using '%s' instead of '%s' for clarity." | ||
| level: suggestion | ||
| ignorecase: true | ||
| swap: | ||
| in order to: to | ||
| utilize: use | ||
| utilizes: uses | ||
| utilizing: using | ||
| prior to: before | ||
| subsequent to: after | ||
| in the event that: if | ||
| at this point in time: now | ||
| due to the fact that: because | ||
| for the purpose of: to | ||
| in close proximity to: near | ||
| a large number of: many | ||
| the majority of: most | ||
| in spite of the fact that: although | ||
| click on: click |
This file contains hidden or 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,107 @@ | ||
| # Sentry-specific terms that should be accepted | ||
| # One term per line | ||
|
|
||
| # Product names | ||
| Sentry | ||
| DSN | ||
| SDK | ||
| SDKs | ||
| API | ||
| APIs | ||
| CLI | ||
| MCP | ||
|
|
||
| # Technical terms | ||
| sourcemap | ||
| sourcemaps | ||
| webpack | ||
| Webpack | ||
| rollup | ||
| Rollup | ||
| esbuild | ||
| Vite | ||
| npm | ||
| yarn | ||
| pnpm | ||
| Bun | ||
| Node\.js | ||
| TypeScript | ||
| JavaScript | ||
| React | ||
| Vue | ||
| Angular | ||
| Next\.js | ||
| Nuxt | ||
| Svelte | ||
| SvelteKit | ||
| Remix | ||
| Astro | ||
| Gatsby | ||
| Django | ||
| Flask | ||
| FastAPI | ||
| Rails | ||
| Laravel | ||
| Spring | ||
| Express | ||
| Koa | ||
| Fastify | ||
| Deno | ||
|
|
||
| # Sentry features | ||
| breadcrumb | ||
| breadcrumbs | ||
| stacktrace | ||
| stacktraces | ||
| minidump | ||
| minidumps | ||
| symbolication | ||
| proguard | ||
| ProGuard | ||
| dSYM | ||
| dSYMs | ||
|
|
||
| # Common abbreviations | ||
| HTTP | ||
| HTTPS | ||
| URL | ||
| URLs | ||
| JSON | ||
| YAML | ||
| TOML | ||
| UUID | ||
| UUIDs | ||
| OAuth | ||
| SSO | ||
| SAML | ||
| JWT | ||
| JWTs | ||
| CORS | ||
| CDN | ||
| CI | ||
| CD | ||
|
|
||
| # Tracing terms | ||
| span | ||
| spans | ||
| transaction | ||
| transactions | ||
| trace | ||
| traces | ||
| traceId | ||
| spanId | ||
|
|
||
| # Error monitoring terms | ||
| grouping | ||
| fingerprint | ||
| fingerprints | ||
| unhandled | ||
| handled | ||
|
|
||
| # Performance terms | ||
| LCP | ||
| FCP | ||
| TTFB | ||
| CLS | ||
| FID | ||
| INP |
This file contains hidden or 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,5 @@ | ||
| # Terms that should always be flagged | ||
| # One term per line | ||
|
|
||
| # Inclusive language violations are handled by InclusiveLanguage.yml | ||
| # This file is for additional rejections if needed |
This file contains hidden or 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 hidden or 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,33 @@ | ||
| # Vale configuration for Sentry documentation | ||
| # This is an advisory linter - suggestions only, not enforced in CI | ||
| # See: https://vale.sh/docs/ | ||
|
|
||
| StylesPath = .github/styles | ||
| MinAlertLevel = suggestion | ||
|
|
||
| # Use Sentry vocabulary for accepted technical terms | ||
| Vocab = Sentry | ||
|
|
||
| # Packages to download (run `vale sync` to install) | ||
| Packages = write-good | ||
|
|
||
| # Treat MDX files as Markdown (avoids need for mdx2vast parser) | ||
| [formats] | ||
| mdx = md | ||
|
|
||
| # Process markdown and MDX files in docs directories | ||
| [docs/**/*.{md,mdx}] | ||
| BasedOnStyles = Sentry, write-good | ||
|
|
||
| [develop-docs/**/*.{md,mdx}] | ||
| BasedOnStyles = Sentry, write-good | ||
|
|
||
| [includes/**/*.{md,mdx}] | ||
| BasedOnStyles = Sentry, write-good | ||
|
|
||
| [platform-includes/**/*.{md,mdx}] | ||
| BasedOnStyles = Sentry, write-good | ||
|
|
||
| # Ignore code blocks and inline code | ||
| TokenIgnores = (\x60[^\x60]+\x60) | ||
| BlockIgnores = (?s)(\x60{3}.*?\x60{3}) |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.