Automic VaultAutomic Vault

brew

Install swiftlint with Homebrew, dnf, MacPorts, Nix

Tool to enforce Swift style and conventions. Version 0.65.0 via Homebrew; verified 2026-06-27.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install swiftlint

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install swiftlint

MacPorts ports tree · devel/swiftlint/Portfile · source: api.github.com

Linux

Fedora dnfverified · 92%
sudo dnf install swiftlint

Fedora Rawhide package metadata · swiftlint · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#swiftlint

nixpkgs package indexes · pkgs/by-name/sw/swiftlint/package.nix · source: api.github.com

overview

Package summary

Tool to enforce Swift style and conventions

Commands and aliases

  • swiftlint

history

Project history and usage

SwiftLint is a Swift style and convention linter originally published by Realm. It became one of the default package-manager-installed tools in Swift projects because it gives teams a shared command-line style gate for local development, Xcode, SwiftPM, Bazel, CocoaPods, Mint, and CI.

Project history

The SwiftLint repository was created in May 2015. The README describes the tool as loosely based on the archived GitHub Swift Style Guide and aligned with rules generally accepted by the Swift community.

As Swift tooling matured, SwiftLint moved from simple command-line linting into several build-system surfaces. Its README now documents Swift Package command and build-tool plugins, Xcode package integration, Homebrew, CocoaPods, Mint, Bazel, prebuilt packages, and source builds.

Adoption history

SwiftLint's adoption follows the rise of Swift as a production language: teams needed automated style checks that could run before code review and inside Xcode builds. The official README includes a 2017 video introduction by JP Simard, showing that the project had already become notable in the Swift community by then.

The input package facts show broad packaging beyond Homebrew, including DNF, MacPorts, and Nix. That cross-manager presence is unusual for a Swift-specific CLI and signals sustained use outside one local macOS setup.

How it is used

Common usage is `swiftlint` in a project directory, usually governed by `.swiftlint.yml`. The README emphasizes that SwiftLint analyzes valid, compilable Swift source, which is why teams often place it after or alongside normal build steps rather than as a substitute compiler.

Modern usage includes SwiftPM plugins and Bazel targets as well as traditional Homebrew-installed binaries called from Xcode script phases.

Why package nerds care

SwiftLint is package-nerd significant because it packages a moving style rule set as a reproducible CLI. Version pinning matters: rule defaults, SwiftSyntax behavior, and autocorrection can affect source diffs across a whole repository.

It also demonstrates how Swift command-line tools escaped the single-machine Homebrew model and became build plugins, package dependencies, and CI artifacts.

Timeline

  • 2015: GitHub repository created.
  • 2017: Official README links a recorded video introduction.
  • 2018: GitHub release metadata includes 0.28.x and 0.29.x releases.
  • 2026: GitHub release metadata shows active 0.63.x through 0.65.x maintenance.

Related projects

  • Related projects include SwiftFormat for formatting, SwiftSyntax for rule implementation, SourceKit/Clang for type information, SwiftLintPlugins for SwiftPM plugin consumption, and Bazel rules for build integration.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
.swiftlint.yml

executables

Installed executables

CommandKindExposureNote
swiftlintcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version0.65.0
manager updated2026-06-27
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/realm/SwiftLint

install metadata

Package metadata

Package keybrew:swiftlint
Version0.65.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/swiftlint
Homepagehttps://github.com/realm/SwiftLint
Repositoryhttps://github.com/realm/SwiftLint
Upstream docshttps://github.com/realm/SwiftLint#readme
LicenseMIT
Source archivehttps://github.com/realm/SwiftLint.git
Last updated2026-06-27T09:34:51Z
Pulseupdated
Uses from macOScurl, libxml2
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameswiftlint
Version Scheme0
Revision0
Head VersionHEAD
Requirements
  • macos
  • xcode
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

swiftlint

nix profile install nixpkgs#swiftlint
  • normalized package name match
  • Matched by: Swiftlint
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/sw/swiftlint/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
dnf95%

swiftlint 0.63.0-1.fc45

Tool to enforce Swift style and conventions

https://realm.github.io/SwiftLint/

sudo dnf install swiftlint
  • License: MIT AND Apache-1.0 AND Apache-2.0
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: swiftlint
  • 15 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Swiftlint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: swiftlint from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
MacPorts95%

swiftlint

sudo port install swiftlint
  • normalized package name match
  • Matched by: Swiftlint
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/swiftlint/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment