pkg.soopen package index

brew / 排名 174

使用 Homebrew, dnf, MacPorts, Nix 安装 swiftlint

查看 swiftlint 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install swiftlint

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install swiftlint

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

Linux

Fedora dnf已验证 · 92%
sudo dnf install swiftlint

Fedora Rawhide package metadata · swiftlint · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#swiftlint

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

概览

软件包摘要

Tool to enforce Swift style and conventions

命令和别名

  • swiftlint

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
swiftlint可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本0.65.0
管理器更新时间2026-06-27
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:swiftlint
版本0.65.0
软件包管理器Homebrew
主页https://github.com/realm/SwiftLint
仓库https://github.com/realm/SwiftLint
最后更新2026-06-27T09:34:51Z
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

swiftlint

nix profile install nixpkgs#swiftlint
  • normalized package name match
  • 匹配方式: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-2.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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst
MacPorts95%

swiftlint

sudo port install swiftlint
  • normalized package name match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation