awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
swiftlang avatar

swiftlang/swift-format

0
View on GitHub↗

Swift Format

swift-format is a set of developer utilities for the Swift ecosystem designed for automated style enforcement, static analysis, and project-wide configuration management. It functions as a code formatter that rewrites source code to adhere to consistent style rules and as a linter that identifies style violations.

The tool provides a system for defining and applying custom formatting rules through a configuration tool. This includes the ability to load settings from configuration files discovered in a directory hierarchy or to export default settings for user customization.

Its capabilities include source code formatting and linting, which allow for the detection of style violations and the automatic rewriting of files. The project also provides an API for embedding formatting and linting logic directly into other applications.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Features

  • Source Code Formatters - Automatically rewrites Swift source files to adhere to a consistent and standardized style guide.
  • Preservation-Aware Rewrites - Performs structural code modifications while preserving all original whitespace and comments to prevent metadata loss.
  • Static Code Linting - Scans source code to detect style violations and report diagnostics via a linter.
  • Swift Linters - Performs static analysis on Swift code to identify style violations and ensure adherence to coding standards.
  • Swift Resources - Provides developer utilities built specifically to maintain code quality and consistency in Swift projects.
  • Swift Code Formatters - Applies visual style and consistent formatting specifically to the Swift programming language.
  • Swift Development Tooling - Provides a set of developer utilities to manage code style and quality within the Swift ecosystem.
  • Abstract Syntax Tree Parsing - Parses Swift source code into a structured abstract syntax tree to identify and manipulate specific language constructs.
  • Automated Linting Integrations - Enables the integration of style checks into development pipelines to treat formatting warnings as build errors.
  • Style Rule Configurations - Supports loading formatting rules from configuration files discovered in the directory hierarchy or command line flags.
  • Style Configuration Systems - Provides a system for defining and applying custom formatting rules for Swift projects via configuration files.
  • Configuration-Driven Rule Engines - Implements a rule engine that parses user-defined settings to apply specific style transformations to source code.
  • Configuration Path Resolution - Resolves the applicable style configuration by traversing up the directory tree from the current file to the root.
2,940 stars·265 forks·Swift·Apache-2.0·17 views

Star history

Star history chart for swiftlang/swift-formatStar history chart for swiftlang/swift-format

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Frequently asked questions

What does swiftlang/swift-format do?

swift-format is a set of developer utilities for the Swift ecosystem designed for automated style enforcement, static analysis, and project-wide configuration management. It functions as a code formatter that rewrites source code to adhere to consistent style rules and as a linter that identifies style violations.

What are the main features of swiftlang/swift-format?

The main features of swiftlang/swift-format are: Source Code Formatters, Preservation-Aware Rewrites, Static Code Linting, Swift Linters, Swift Resources, Swift Code Formatters, Swift Development Tooling, Abstract Syntax Tree Parsing.

Which projects share features with swiftlang/swift-format?

Projects with overlapping indexed features include: nicklockwood/swiftformat — SwiftFormat is a tool for the Swift language that functions as a code formatter, linter, and refactoring utility. It… google/yapf — YAPF is a Python code formatter and style compliance tool. It operates as an AST-based reformatter that uses concrete… realpython/materials — This project is a comprehensive collection of Python programming education materials, including tutorials, exercises,… rhysd/actionlint — actionlint is a static analysis tool and linter specifically designed for GitHub Actions workflow files. It functions… google/vim-codefmt — Vim-codefmt is a plugin for the Vim text editor that automates source code formatting by integrating external… google/google-java-format — google-java-format is a Java code formatter and style enforcement tool. It reformats Java source code to adhere to a…

Projects sharing features with Swift Format

These projects share indexed features with Swift Format. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • nicklockwood/swiftformatnicklockwood avatar

    nicklockwood/SwiftFormat

    8,835View on GitHub↗

    SwiftFormat is a tool for the Swift language that functions as a code formatter, linter, and refactoring utility. It automatically applies consistent style rules and visual formatting to source files to ensure a uniform appearance across a project. The project differentiates itself by providing both a command-line interface for batch processing and an Xcode extension for integration directly into the development environment. It includes specialized capabilities for modernizing legacy API usage, simplifying language constructs, and inferring formatting options by analyzing an existing codebase

    Swift
    View on GitHub↗8,835
  • google/yapfgoogle avatar

    google/yapf

    13,978View on GitHub↗

    YAPF is a Python code formatter and style compliance tool. It operates as an AST-based reformatter that uses concrete syntax trees to ensure structural consistency and a uniform visual presentation across source files. The engine utilizes a penalty-based layout optimizer to determine the best line breaks by calculating numerical costs for different formatting choices. It employs a multi-process code processor to distribute the formatting of multiple files across several CPU cores. The tool covers source code reformatting through in-place file modifications, difference analysis, and the proce

    Python
    View on GitHub↗13,978
  • realpython/materialsrealpython avatar

    realpython/materials

    5,173View on GitHub↗

    This project is a comprehensive collection of Python programming education materials, including tutorials, exercises, and curated code samples. It serves as a learning curriculum and software engineering toolkit, utilizing Jupyter Notebooks to combine executable code with descriptive educational text. The repository provides practical implementation guides for building large language model applications, such as retrieval-augmented generation systems, stateful AI agents, and machine learning workflows. It distinguishes itself by offering a structured approach to agentic coding workflows, cover

    Jupyter Notebook
    View on GitHub↗5,173
  • rhysd/actionlintrhysd avatar

    rhysd/actionlint

    3,617View on GitHub↗

    actionlint is a static analysis tool and linter specifically designed for GitHub Actions workflow files. It functions as a CI workflow validator and YAML configuration linter to ensure the syntax and logic of automation files are correct before deployment. The project distinguishes itself by performing deep security auditing and script analysis. It includes a shell script auditor to detect syntax bugs and script injection vulnerabilities in inline commands, and it scans for hardcoded credentials to prevent security leaks. The tool covers a broad range of validation capabilities, including ex

    Goactionscigithub-actions
    View on GitHub↗3,617
Compare all 30 related projects→

Curated searches featuring Swift Format

Hand-picked collections where Swift Format appears.
  • Automated Code Linting and Formatting