Rechercher

PythonReactSEOPDF
GitHub Skill

coding-standards

Coding style and structural conventions for this codebase.

amattas☆ 1 Étoiles du dépôt0 Forks du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

Voir la source ↗Guides

Instructions

Coding Standards

General Principles

Structure
  • Prefer small, focused functions.
  • Avoid deeply nested conditionals; use early returns.
  • Extract reusable logic into shared modules.
Comments & Documentation
  • Write comments to explain why, not what.
  • Keep docstrings in sync with behavior; avoid outdated comments.
Error & Logging
  • Use structured logging with consistent fields:
    • requestId, userId, component, severity
  • Never log secrets, tokens, or sensitive PII.
Misc
  • Avoid long parameter lists; group related values into objects.
  • Prefer pure functions where practical.
  • Add TODOs with owner and context, e.g.:
    • // TODO [owner]: [short description] ([ticket link])

Language-Specific Standards

For detailed language-specific conventions, see:

  • Python - Includes modularization guidelines (500-800 lines ideal, 1000 max), black/ruff usage, PEP 8, type hints, and testing conventions
  • Swift - iOS/macOS development standards, optionals, protocol-oriented programming, SwiftUI, and memory management
  • Kotlin - Android development standards, coroutines, idiomatic Kotlin, null safety, and Jetpack Compose patterns

Exemples

Consultez les exemples du dépôt source.

Voir la source ↗

Historique source

Date d’indexation
2026-01-20
Mise à jour de l’index
2026-02-04
Branch
main

Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!