Cross-language coding standard (K22-CODE-01..26) adopted from Kingsrook's QQQ CODE_STYLE.md, with profiles for C#/.NET, Java, TypeScript, Python, Rust, Go, Swift, Shell/PowerShell, and Terraform, and the files each IDE and tool imports: IntelliJ scheme, copyright profile and live templates, Checkstyle, Eclipse formatter, .editorconfig, Directory.Build.props, ESLint Stylistic, ruff, rustfmt/clippy/cargo-deny, golangci-lint, swift-format/SwiftLint, ShellCheck, PSScriptAnalyzer, TFLint, sqlfluff, VS Code. Kingsrook files keep their Apache-2.0 notice (NOTICE). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: James Maes <james@kof22.com>
1.3 KiB
1.3 KiB
VS Code
| File | Copy to | Purpose |
|---|---|---|
settings.json |
.vscode/settings.json |
3-space indentation, LF, format on save, and the right formatter and linter configuration for every KofTwentyTwo language |
extensions.json |
.vscode/extensions.json |
Recommended extensions (VS Code prompts to install them), and Prettier marked unwanted |
Delete the language sections the repository does not use. Layout itself comes from the
repository's .editorconfig (the EditorConfig extension is recommended), and each
language's formatter reads its own config file from configs/:
| Language | Formatter on save | Reads |
|---|---|---|
| C# | C# Dev Kit | .editorconfig |
| Java | Language Support for Java (Red Hat) | Kingsrook Eclipse profile (URL) + Checkstyle (URL) |
| TypeScript / JavaScript | ESLint (flat config, @stylistic) |
eslint.config.mjs |
| Python | Ruff | ruff.toml; Pylance strict |
| Rust | rust-analyzer | rustfmt.toml; clippy on save |
| Go | Go | gofmt (tabs) |
| Swift | Swift | .swift-format |
| Shell | shfmt | .editorconfig shfmt keys; ShellCheck |
| PowerShell | PowerShell (Allman preset) | PSScriptAnalyzerSettings.psd1 |
| Terraform | HashiCorp Terraform | fmt |
The files are JSON with comments (JSONC), which VS Code accepts in .vscode/.