# 使用 Homebrew, Nix, scoop 安装 ls-lint

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

## 安装

```sh
sudo av install brew:ls-lint
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ls-lint
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#ls-lint
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/ls-lint
```

  证据: Scoop official bucket manifest trees: bucket/ls-lint.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:ls-lint
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ls-lint>
- **版本:** 2.3.1
- **来源摘要:** Extremely fast file and directory name linter
- **主页:** <https://ls-lint.org/>
- **仓库:** <https://github.com/loeffel-io/ls-lint>
- **上游文档:** <https://ls-lint.org/>
- **许可证:** MIT
- **源码归档:** <https://github.com/loeffel-io/ls-lint/archive/refs/tags/v2.3.1.tar.gz>
- **最后更新:** 2026-07-26T13:41:03+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ls-lint (cli)
- ls-lint (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.3.1
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/loeffel-io/ls-lint
- 检测到的最新版本: v2.3.1 (当前)
## 项目历史与用法

ls-lint is a file and directory name linter that enforces naming rules from one or more `.ls-lint.yml` files.

### 项目历史

The official site and README present ls-lint as an extremely fast directory and filename linter intended to bring structure to project filesystems. The GitHub repository was created in February 2020, and releases show v1.0.0 published in March 2020.

The project grew into a cross-platform developer tool with documentation versions, a GitHub Action, npm distribution, Homebrew packaging, and Docker support. Its public docs emphasize minimal setup, Unicode support, and linting thousands of files and directories in milliseconds.

### 采用历史

The README advertises use by Renovate, Terser, and other projects, and GitHub metadata shows roughly 2.4k stars by July 2026. The supplied package-manager facts list Homebrew, Nix, and Scoop packages.

ls-lint fits the rise of repository hygiene tooling in CI: rather than linting code syntax, it makes naming conventions enforceable across folders, generated files, fixtures, and language-mixed monorepos.

### 使用方式

Users place rules in `.ls-lint.yml` and run `ls-lint` locally or in CI. The docs and README show YAML rules that map path globs and extensions to naming styles such as kebab-case, camelCase, PascalCase, regex rules, and existence checks.

No credentials are involved. Configuration is project-local and intentionally simple, with the README describing one or multiple `.ls-lint.yml` files.

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

ls-lint is notable because it treats the filesystem itself as lintable source. For package maintainers and CI users, it is a small binary that enforces repository conventions without depending on a specific programming language stack.

### 时间线

- 2020: GitHub repository created and v1.0.0 released.
- 2023: v2.0.0 released.
- 2025: v2.3.x releases published and official docs list 2.3 as the current documentation track.
- 2026: Official site copyright spans 2020-2026 and GitHub metadata shows continued activity.

### Related projects

- Related tooling includes language-specific linters, pre-commit hooks, GitHub Actions, Renovate, and repository policy tools that enforce naming or layout conventions.

### 来源

- <https://api.github.com/repos/loeffel-io/ls-lint>
- <https://api.github.com/repos/loeffel-io/ls-lint/releases?per_page=100>
- <https://github.com/loeffel-io/ls-lint>
- <https://ls-lint.org/>
- <https://raw.githubusercontent.com/loeffel-io/ls-lint/master/README.md>
- source_facts.package-manager


## 安全说明

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: .ls-lint.yml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ls-lint
- **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 - ls-lint: normalized package name match | nixpkgs package indexes: pkgs/by-name/ls/ls-lint/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/ls-lint: normalized package name match | Scoop official bucket manifest trees: bucket/ls-lint.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [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.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service 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.
- [editorconfig-checker](https://pkg.so/zh-hans/brew/editorconfig-checker/) - 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.
- [markdownlint-cli2](https://pkg.so/zh-hans/brew/markdownlint-cli2/) - Shares pkgdb curated category or tags: cli, developer-tools, linting.
- [codespell](https://pkg.so/zh-hans/brew/codespell/) - Shares pkgdb curated category or tags: cli, developer-tools, linting.
- [checkstyle](https://pkg.so/zh-hans/brew/checkstyle/) - Shares pkgdb curated category or tags: cli, developer-tools, linting.
- [checkmake](https://pkg.so/zh-hans/brew/checkmake/) - Shares pkgdb curated category or tags: cli, developer-tools, linting.
- [cpplint](https://pkg.so/zh-hans/brew/cpplint/) - Shares pkgdb curated category or tags: cli, developer-tools, linting.
- [stylelint](https://pkg.so/zh-hans/npm/stylelint/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, fast, file.
- [lint-prepush](https://pkg.so/zh-hans/npm/lint-prepush/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, file, lint.

## Combined YAML source

View the package source record on GitHub. [combined/ls-lint.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ls-lint.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
