# 使用 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
- **版本:** 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>
- **最后更新:** 2026-08-02T15:15:24+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- editorconfig-checker (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.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
## 其他软件包管理器记录

- 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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
