# 使用 Homebrew, apk, MacPorts, Nix, pacman, zypper, winget 安装 editorconfig-checker

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

## 安装

```sh
sudo av install brew:editorconfig-checker
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install editorconfig-checker
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install editorconfig-checker
```

  证据: MacPorts ports tree: devel/editorconfig-checker/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add editorconfig-checker
```

  证据: Alpine Linux edge package indexes: editorconfig-checker from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#editorconfig-checker
```

  证据: nixpkgs package indexes: pkgs/by-name/ed/editorconfig-checker/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S editorconfig-checker
```

  证据: Arch Linux sync databases: editorconfig-checker from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install editorconfig-checker
```

  证据: openSUSE Tumbleweed package metadata: editorconfig-checker from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id EditorConfig-Checker.EditorConfig-Checker -e
```

  证据: Windows Package Manager source index: EditorConfig-Checker.EditorConfig-Checker from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:editorconfig-checker
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/editorconfig-checker>
- **版本:** 3.8.0
- **来源摘要:** Tool to verify that your files are in harmony with your .editorconfig
- **主页:** <https://editorconfig-checker.github.io/>
- **仓库:** <https://github.com/editorconfig-checker/editorconfig-checker>
- **上游文档:** <https://editorconfig-checker.github.io/>
- **许可证:** MIT
- **源码归档:** <https://github.com/editorconfig-checker/editorconfig-checker/archive/refs/tags/v3.8.0.tar.gz>
- **最后更新:** 2026-08-02T15:15:24+09:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- editorconfig-checker (cli)
- editorconfig-checker (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.8.0
- 管理器更新时间: 2026-08-02
- 本地数据: OK
- 上游仓库: https://github.com/editorconfig-checker/editorconfig-checker
- 检测到的最新版本: v3.8.0 (当前)
## 项目历史与用法

editorconfig-checker is a small CI-friendly companion to EditorConfig: instead of teaching an editor how to apply a project's .editorconfig file, it checks the files in a tree and reports where they do not match the rules.

### 项目历史

The public GitHub repository was created in 2017 and describes the tool as a verifier for files against .editorconfig. Its README frames the project around the gap left by language-specific linters: one EditorConfig-aware checker can cover whitespace, line ending, final newline, indentation, maximum line length, and charset rules across a mixed repository.

The project is implemented as a standalone command-line tool and publishes prebuilt release archives. By the 3.x series it also documented Go installation, Docker use, Homebrew, Nix, Arch Linux packages, and language-specific wrappers for JavaScript/TypeScript, Python, and PHP ecosystems.

### 采用历史

Adoption has been mostly through automation and packaging rather than editor plugins. The README explicitly documents GitHub Actions-compatible output, Code Climate JSON output, GCC-style diagnostics, Docker execution, and package-manager installs, which made it fit naturally into CI jobs and pre-commit-style checks.

### 使用方式

The common usage is to run editorconfig-checker at a repository root. With no file arguments it checks tracked text files, and with explicit file arguments it checks just those paths while still honoring configured excludes.

Configuration can be passed on the command line or read from .editorconfig-checker.json, with .ecrc retained as a deprecated name. The tool also has an init mode for creating a starting configuration.

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

For package metadata, editorconfig-checker is interesting because it turns a cross-editor convention into an installable, headless validation tool. It is a natural dependency for distribution maintainers, CI images, and repositories that want formatting contracts without adopting a language-specific formatter.

### 时间线

- 2017: Public GitHub repository created.
- 2026: v3.8.0 published with README installation examples and release artifacts.

### Related projects

- Related projects include EditorConfig itself, editorconfig-core-c, and the npm, PyPI, and Composer wrappers listed by the checker README.

### 来源

- <https://github.com/editorconfig-checker/editorconfig-checker>
- <https://raw.githubusercontent.com/editorconfig-checker/editorconfig-checker/master/README.md>
- <https://api.github.com/repos/editorconfig-checker/editorconfig-checker>
- <https://github.com/editorconfig-checker/editorconfig-checker/releases/tag/v3.8.0>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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

- Unix: .editorconfig-checker.json
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** editorconfig-checker
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - editorconfig-checker: normalized package name match | nixpkgs package indexes: pkgs/by-name/ed/editorconfig-checker/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - editorconfig-checker - 3.0.3-r15: normalized package name match | Alpine Linux edge package indexes: editorconfig-checker from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A tool to verify that your files are in harmony with your .editorconfig | https://editorconfig-checker.github.io/
- pacman - editorconfig-checker - 3.9.0-1: normalized package name match | Arch Linux sync databases: editorconfig-checker from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A tool to verify that your files are in harmony with your .editorconfig | https://github.com/editorconfig-checker/editorconfig-checker
- zypper - editorconfig-checker - 3.8.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: editorconfig-checker from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tool to verify that your files are in harmony with your .editorconfig | https://github.com/editorconfig-checker/editorconfig-checker
- MacPorts - editorconfig-checker: normalized package name match | MacPorts ports tree: devel/editorconfig-checker/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - EditorConfig-Checker.EditorConfig-Checker: normalized package name match | Windows Package Manager source index: EditorConfig-Checker.EditorConfig-Checker from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [actionlint](https://pkg.so/zh-hans/brew/actionlint/) - Shares pkgdb curated category or tags: ci, cli, developer-tools, linting.
- [markdownlint-cli](https://pkg.so/zh-hans/brew/markdownlint-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, linting, style-checker.
- [markdownlint-cli2](https://pkg.so/zh-hans/brew/markdownlint-cli2/) - Shares pkgdb curated category or tags: cli, developer-tools, linting, style-checker.
- [cpplint](https://pkg.so/zh-hans/brew/cpplint/) - Shares pkgdb curated category or tags: cli, developer-tools, linting, style-checker.
- [bashate](https://pkg.so/zh-hans/brew/bashate/) - Shares pkgdb curated category or tags: cli, developer-tools, linting, style-checker.
- [cmake-lint](https://pkg.so/zh-hans/brew/cmake-lint/) - Shares pkgdb curated category or tags: cli, developer-tools, linting, style-checker.
- [ls-lint](https://pkg.so/zh-hans/brew/ls-lint/) - Shares pkgdb curated category or tags: ci, cli, developer-tools, linting.
- [codespell](https://pkg.so/zh-hans/brew/codespell/) - Shares pkgdb curated category or tags: cli, developer-tools, linting.
- [editorconfig-checker](https://pkg.so/zh-hans/npm/editorconfig-checker/) - Same normalized package name appears in another local ecosystem. Shared terms: are, checker, cli, developer, developer-tools.
- [editorconfig-checker](https://pkg.so/zh-hans/npm/editorconfig-checker/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/editorconfig-checker.yml](https://github.com/mxcl/pkgdb/blob/main/combined/editorconfig-checker.yml)


## 来源

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