awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
github avatar

github/swift-style-guideArchived

0
View on GitHub↗
4,762 stars·560 forks·CC0-1.0·9 vues

Swift Style Guide

Ce projet est un ensemble de normes de codage, de patterns architecturaux et de directives de sécurité de type pour l'écriture de code source Swift. Il fournit un framework pour maintenir un code propre et maintenable grâce à des conventions établies et des règles de formatage.

Le guide privilégie la composition sur l'héritage de classe en favorisant les types de valeur et les classes finales. Il établit une politique de contrôle d'accès pour gérer les frontières entre la logique interne et les composants externes via des modificateurs de visibilité explicites.

Les normes couvrent l'optimisation de la sécurité de type via des liaisons immuables et une gestion sécurisée des optionnels. Les domaines supplémentaires incluent l'utilisation de patterns de sortie anticipée (early exit) pour optimiser le flux logique, la réduction de la verbosité de la syntaxe et l'application d'un formatage de code uniforme.

Features

  • Swift Linting Standards - Establishes a comprehensive set of rule sets and standards to enforce consistent syntax and style in Swift.
  • Immutable Variables - Prioritizes the use of constants over variables to prevent accidental state mutation and improve thread safety.
  • Type Safety - Improves overall type safety by mandating constants and explicit optional handling.
  • Swift Type Safety Patterns - Provides guidelines for implementing immutable bindings and safe optional handling to prevent runtime crashes.
  • Architectural Governance - Provides a framework for enforcing project-wide architectural constraints and design goals within Swift projects.
  • Protocol-Oriented Design - Promotes protocol-oriented design and protocol composition to reduce coupling and complexity.
  • Value Unwrapping - Standardizes explicit unwrapping techniques for optional types to eliminate runtime crashes.
  • Layer Visibility Enforcement - Maintains strict boundaries between architectural layers through the application of visibility modifiers.
  • Composition Over Inheritance - Provides standards for favoring composition and protocol-oriented design over deep class inheritance hierarchies.
  • Swift Access Control Standards - Defines the application of explicit visibility modifiers to protect internal logic in Swift.
  • Swift Architectural Guidelines - Sets standards for prioritizing value types and composition over complex class inheritance hierarchies.
  • Value Type Prioritization - Favors structs and enums over classes to ensure predictable state and reduce memory overhead.
  • Explicit Modifier Requirements - Enforces explicit visibility modifiers on top-level definitions to protect internal implementation details.
  • Explicit Visibility Enforcement - Hides internal logic from external components by applying explicit access control specifiers.
  • Code Style Standardization - Provides guidelines for maintaining consistent whitespace, indentation, and visual structure across the codebase.
  • Access Control Policies - Defines policies for applying explicit visibility modifiers to isolate internal implementation details from public APIs.
  • Architectural Preference Standards - Provides architectural standards for choosing between value and reference types to simplify maintenance.
  • Code Readability Optimizations - Implements techniques to improve code readability through patterns like early exits and concise property declarations.
  • Early Return Patterns - Standardizes logic flows by using early returns to align the happy path and improve readability.
  • Early-Return Patterns - Implements early-return patterns using guard statements to reduce nesting and handle edge cases efficiently.
  • Swift API Design Guidelines - Offers design guidelines for creating robust and type-safe APIs in Swift.
  • General - Applies safety patterns including immutable bindings and safe optional handling to prevent crashes.
  • Mobile Development Guides - Swift coding conventions used at GitHub.
  • Programming Language Standards - Official Swift style and conventions.
  • Coding Standards - Swift coding style and habits guide.

Historique des stars

Graphique de l'historique des stars pour github/swift-style-guideGraphique de l'historique des stars pour github/swift-style-guide

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Questions fréquentes

Que fait github/swift-style-guide ?

Ce projet est un ensemble de normes de codage, de patterns architecturaux et de directives de sécurité de type pour l'écriture de code source Swift. Il fournit un framework pour maintenir un code propre et maintenable grâce à des conventions établies et des règles de formatage.

Quelles sont les fonctionnalités principales de github/swift-style-guide ?

Les fonctionnalités principales de github/swift-style-guide sont : Swift Linting Standards, Immutable Variables, Type Safety, Swift Type Safety Patterns, Architectural Governance, Protocol-Oriented Design, Value Unwrapping, Layer Visibility Enforcement.

Quelles sont les alternatives open-source à github/swift-style-guide ?

Les alternatives open-source à github/swift-style-guide incluent : johnsundell/swifttips — SwiftTips is a curated collection of guides, libraries, and design patterns focused on Swift language mastery,… kodecocodes/swift-style-guide — This project is a comprehensive set of standards for the Swift ecosystem, providing a code style guide, API design… raywenderlich/swift-style-guide — This project is a collection of Swift coding standards and static analysis rules designed to ensure consistency across… zakirullin/cognitive-load — This project is a collection of software engineering principles and architectural design patterns designed to minimize… nytimes/objective-c-style-guide — This project provides a comprehensive set of standardized design patterns, naming conventions, and environment… github/objective-c-style-guide — **Archived** Style guide & coding conventions for Objective-C projects.

Alternatives open source à Swift Style Guide

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Swift Style Guide.
  • johnsundell/swifttipsAvatar de JohnSundell

    JohnSundell/SwiftTips

    4,014Voir sur GitHub↗

    SwiftTips is a curated collection of guides, libraries, and design patterns focused on Swift language mastery, application architecture, and API design. It provides a technical resource for implementing advanced coding techniques and architectural best practices. The project emphasizes creating type-safe and conversational interfaces through strategic protocol composition and generics. It offers specialized patterns for building modular UI systems and managing complex view hierarchies, alongside comprehensive strategies for unit testing and dependency injection. The resource covers a broad s

    Voir sur GitHub↗4,014
  • kodecocodes/swift-style-guideAvatar de kodecocodes

    kodecocodes/swift-style-guide

    13,173Voir sur GitHub↗

    This project is a comprehensive set of standards for the Swift ecosystem, providing a code style guide, API design standards, and a memory management guide. It establishes standardized naming and formatting rules to ensure consistent and maintainable source code. The project includes a linting configuration used by automated tools to detect and enforce syntax patterns. These rules are designed to standardize code style and can be integrated into build phases to block commits with formatting errors. The guidelines cover a broad range of development capabilities, including the use of access mo

    Voir sur GitHub↗13,173
  • raywenderlich/swift-style-guideAvatar de raywenderlich

    raywenderlich/swift-style-guide

    13,173Voir sur GitHub↗

    This project is a collection of Swift coding standards and static analysis rules designed to ensure consistency across Swift projects. It provides a defined set of naming conventions and structural guidelines to maintain a shared style for teams. The repository centers on a SwiftLint configuration used to automate the detection and correction of style violations in source code. This configuration enables automated style enforcement, ensuring that code adheres to organizational standards without requiring manual review. The guidelines cover the standardization of code formatting, naming, and

    Voir sur GitHub↗13,173
  • zakirullin/cognitive-loadAvatar de zakirullin

    zakirullin/cognitive-load

    12,288Voir sur GitHub↗

    This project is a collection of software engineering principles and architectural design patterns designed to minimize the mental effort required to understand and maintain source code. It serves as a guide for implementing clean code methodologies and architectural simplification to reduce the overall cognitive load on developers. The framework emphasizes aligning module boundaries and ubiquitous language with business stakeholders to prevent architectural ripple effects. It advocates for balancing service granularity to avoid the overhead of distributed monoliths and suggests favoring objec

    Voir sur GitHub↗12,288
  • Voir les 30 alternatives à Swift Style Guide→