-
Notifications
You must be signed in to change notification settings - Fork 9
Add CI pipeline checks to verify code formatting for TypeSpec, Markdown, and Rust files #523
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
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
dca68a3
Initial plan
Copilot ab7dfcd
Add comprehensive CI formatting checks for TypeSpec, Markdown, and Ru…
Copilot 8ebcc4f
Replace GitHub Actions with Azure DevOps pipeline integration and for…
Copilot 7b1afed
Fix CI formatting conflicts between Prettier and ESLint
Copilot 6f55f67
Add .editorconfig to prevent unnecessary whitespace changes across ed…
Copilot 3b9b267
Fix .editorconfig file structure and remove non-existent file extensions
Copilot d85ab3e
Separate .md and .tsp file formats in .editorconfig
Copilot aa14b55
Add source generation and testing instructions to copilot guidelines
Copilot 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,29 @@ | ||
| root = true | ||
|
|
||
| [*] | ||
| insert_final_newline = true | ||
| indent_style = space | ||
| indent_size = 4 | ||
| trim_trailing_whitespace = true | ||
| end_of_line = lf | ||
|
|
||
| [*.{js,ts}] | ||
| indent_size = 2 | ||
|
|
||
| [*.json] | ||
| indent_size = 2 | ||
|
|
||
| [*.{yaml,yml}] | ||
| indent_size = 2 | ||
|
|
||
| [*.md] | ||
| indent_size = 2 | ||
|
|
||
| [*.tsp] | ||
| indent_size = 2 | ||
|
|
||
| [*.toml] | ||
| indent_size = 2 | ||
|
|
||
| [*.sh] | ||
| indent_size = 2 | ||
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,19 @@ | ||
| # Build artifacts | ||
| dist/ | ||
| node_modules/ | ||
| *.log | ||
|
|
||
| # Generated code | ||
| packages/typespec-rust/test/spector/*/src/generated/ | ||
|
|
||
| # Lock files | ||
| pnpm-lock.yaml | ||
| package-lock.json | ||
| yarn.lock | ||
|
|
||
| # TypeSpec files (no parser available for prettier) | ||
| *.tsp | ||
|
|
||
| # Temporary files | ||
| *.tmp | ||
| *.temp |
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 |
|---|---|---|
| @@ -1,53 +1,53 @@ | ||
| { | ||
| "version": "0.2", | ||
| "language": "en", | ||
| "useGitignore": true, | ||
| "ignorePaths": [ | ||
| "**/test-resources.bicep", | ||
| "**/test-resources.json", | ||
| "**/test-resources-post.ps1", | ||
| "**/assets.json", | ||
| ".config", | ||
| "packages/*/test/spector/**/*.rs", | ||
| "packages/*/test/sdk/**/*.rs", | ||
| "packages/*/test/spector/**/*.toml", | ||
| "packages/*/test/**/*.tsp", | ||
| "packages/*/pnpm-lock.yaml", | ||
| "**/package.json", | ||
| ".devcontainer/devcontainer.json", | ||
| ".devcontainer/Dockerfile", | ||
| ".devcontainer/oncreate", | ||
| ".github/CODEOWNERS", | ||
| ".github/dependabot.yml", | ||
| ".vscode/cspell.json", | ||
| ".vscode/extensions.json", | ||
| ".vscode/settings.json", | ||
| ".vscode/tasks.json", | ||
| "NOTICE.txt", | ||
| "SUPPORT.md", | ||
| "deny.toml", | ||
| "eng/", | ||
| "**/.dict.txt", | ||
| "rust-toolchain.toml" | ||
| ], | ||
| "words": [ | ||
| "appconfiguration", | ||
| "clientaccessor", | ||
| "clippy", | ||
| "codegen", | ||
| "codemodel", | ||
| "entra", | ||
| "enumvalue", | ||
| "impls", | ||
| "linq", | ||
| "msrc", | ||
| "pageable", | ||
| "reqwest", | ||
| "safeint", | ||
| "serde", | ||
| "spector", | ||
| "tcgc", | ||
| "tspcompile", | ||
| "typespec", | ||
| ] | ||
| } | ||
| "version": "0.2", | ||
| "language": "en", | ||
| "useGitignore": true, | ||
| "ignorePaths": [ | ||
| "**/test-resources.bicep", | ||
| "**/test-resources.json", | ||
| "**/test-resources-post.ps1", | ||
| "**/assets.json", | ||
| ".config", | ||
| "packages/*/test/spector/**/*.rs", | ||
| "packages/*/test/sdk/**/*.rs", | ||
| "packages/*/test/spector/**/*.toml", | ||
| "packages/*/test/**/*.tsp", | ||
| "packages/*/pnpm-lock.yaml", | ||
| "**/package.json", | ||
| ".devcontainer/devcontainer.json", | ||
| ".devcontainer/Dockerfile", | ||
| ".devcontainer/oncreate", | ||
| ".github/CODEOWNERS", | ||
| ".github/dependabot.yml", | ||
| ".vscode/cspell.json", | ||
| ".vscode/extensions.json", | ||
| ".vscode/settings.json", | ||
| ".vscode/tasks.json", | ||
| "NOTICE.txt", | ||
| "SUPPORT.md", | ||
| "deny.toml", | ||
| "eng/", | ||
| "**/.dict.txt", | ||
| "rust-toolchain.toml" | ||
| ], | ||
| "words": [ | ||
| "appconfiguration", | ||
| "clientaccessor", | ||
| "clippy", | ||
| "codegen", | ||
| "codemodel", | ||
| "entra", | ||
| "enumvalue", | ||
| "impls", | ||
| "linq", | ||
| "msrc", | ||
| "pageable", | ||
| "reqwest", | ||
| "safeint", | ||
| "serde", | ||
| "spector", | ||
| "tcgc", | ||
| "tspcompile", | ||
| "typespec" | ||
| ] | ||
| } |
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 |
|---|---|---|
| @@ -1,15 +1,12 @@ | ||
| { | ||
| "cSpell.enabled": true, | ||
| "editor.formatOnSave": true, | ||
| "markdownlint.config": { | ||
| "MD024": false, | ||
| }, | ||
| "markdownlint.ignore": [ | ||
| "**/SECURITY.md", | ||
| "LICENSE" | ||
| ], | ||
| "yaml.format.printWidth": 240, | ||
| "[powershell]": { | ||
| "editor.defaultFormatter": "ms-vscode.powershell", | ||
| }, | ||
| "cSpell.enabled": true, | ||
| "editor.formatOnSave": true, | ||
| "markdownlint.config": { | ||
| "MD024": false | ||
| }, | ||
| "markdownlint.ignore": ["**/SECURITY.md", "LICENSE"], | ||
| "yaml.format.printWidth": 240, | ||
| "[powershell]": { | ||
| "editor.defaultFormatter": "ms-vscode.powershell" | ||
| } | ||
| } |
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
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.