code-styleguide ยท diff
git:20261024.e75f86a to git:20261029.50d3532
4 added, 4 removed. Audit A to A.
---
name: "code-styleguide"
description: "Google, Angular, and Android Kotlin style guides synced from upstream, covering Common Lisp, C++, C#, Go, Haskell, HTML/CSS, JavaScript, Java, JSON, Markdown, Objective-C, Python, R, Rust, Shell, TypeScript, Verilog, Vim script, XML Document Format, Angular, Kotlin. Use when writing, reviewing, refactoring, or formatting code that should follow one of these guides, or when the user asks about naming, formatting, comments, imports, or language-feature rules in these languages."
license: "CC-BY-3.0, CC-BY-4.0, Apache-2.0"
metadata:
- updated: "2026-10-24"
+ updated: "2026-10-29"
sources: "google/styleguide, angular/angular, developer.android.com"
generator: "scripts/sync-code-styleguide.ts"
---
# Code style guides
Each reference is one upstream guide converted to Markdown. Load only what the task needs:
1. Pick the reference for the language or framework below.
2. Read its index (the line range in the Index column). Each entry gives the line where a section starts.
3. Read only the sections you need, starting at those lines.
Code fences tagged `good` show recommended code; fences tagged `bad` show code to avoid.
The project's own configuration, formatter, and surrounding code take precedence over these guides.
| Topic | Reference | Index | Lines |
| --- | --- | --- | --- |
| Common Lisp | [Google Common Lisp Style Guide](references/google/lispguide.md) | 1-55 | 1215 |
| C++ | [Google C++ Style Guide](references/google/cppguide.md) | 1-119 | 3655 |
| C# | [C# at Google Style Guide](references/google/csharpguide.md) | 1-37 | 493 |
| Go | [Go Style](references/google/go/index.md) | 1-10 | 120 |
| Go | [Go Style Best Practices](references/google/go/best-practices.md) | 1-61 | 2943 |
| Go | [Go Style Decisions](references/google/go/decisions.md) | 1-77 | 2734 |
| Go | [Go Style Guide](references/google/go/guide.md) | 1-18 | 272 |
| Haskell | [Google's Haskell Style Guide](references/google/haskellguide.md) | 1-41 | 702 |
| HTML/CSS | [Google HTML/CSS Style Guide](references/google/htmlcssguide.md) | 1-19 | 915 |
- | JavaScript | [Google JavaScript Style Guide](references/google/jsguide.md) | 1-70 | 3076 |
- | Java | [Google Java Style Guide](references/google/javaguide.md) | 1-41 | 927 |
+ | JavaScript | [Google JavaScript Style Guide](references/google/jsguide.md) | 1-70 | 3078 |
+ | Java | [Google Java Style Guide](references/google/javaguide.md) | 1-41 | 931 |
| JSON | [Google JSON Style Guide](references/google/jsoncguide.md) | 1-77 | 1316 |
| Markdown | [Markdown style guide](references/google/docguide/style.md) | 1-38 | 727 |
| Objective-C | [Google Objective-C Style Guide](references/google/objcguide.md) | 1-77 | 1735 |
| Python | [Google Python Style Guide](references/google/pyguide.md) | 1-48 | 2399 |
| R | [Google's R Style Guide](references/google/Rguide.md) | 1-17 | 110 |
| Rust | [Rust Style Guide](references/google/rustguide.md) | 1-85 | 1243 |
| Shell | [Shell Style Guide](references/google/shellguide.md) | 1-51 | 1074 |
- | TypeScript | [Google TypeScript Style Guide](references/google/tsguide.md) | 1-64 | 3078 |
+ | TypeScript | [TS/JS Style Guide](references/google/tsguide.md) | 1-64 | 3177 |
| Verilog | [Google Verilog Style Guide](references/google/verilogguide.md) | 1-126 | 4222 |
| Vim script | [Google Vimscript Style Guide](references/google/vimscriptguide.md) | 1-29 | 273 |
| XML Document Format | [Google XML Document Format Style Guide](references/google/xmlguide.md) | 1-23 | 235 |
| Angular | [Angular coding style guide](references/angular/style-guide.md) | 1-34 | 299 |
| Kotlin | [Kotlin style guide](references/android/kotlin-style-guide.md) | 1-16 | 888 |