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.