macOS
brew install yamllintlocal Homebrew formula metadata
sudo port install yamllintMacPorts ports tree · devel/yamllint/Portfile · 来源: api.github.com
安装
brew install yamllintlocal Homebrew formula metadata
sudo port install yamllintMacPorts ports tree · devel/yamllint/Portfile · 来源: api.github.com
sudo apk add yamllintAlpine Linux edge package indexes · yamllint · 来源: dl-cdn.alpinelinux.org
sudo apt install yamllintDebian stable package indexes · yamllint · 来源: deb.debian.org
sudo dnf install yamllintFedora Rawhide package metadata · yamllint · 来源: dl.fedoraproject.org
nix profile install nixpkgs#yamllintnixpkgs package indexes · yamllint · 来源: raw.githubusercontent.com
sudo pacman -S yamllintArch Linux sync databases · yamllint · 来源: geo.mirror.pkgbuild.com
概览
Linter for YAML files
历史
yamllint is a Python linter for YAML files. It checks syntax validity, duplicate keys, and style problems such as line length, trailing spaces, indentation, comments, and document markers.
The GitHub repository was created on 2016-01-11. From the beginning of its public documentation, yamllint occupied the linter niche rather than the formatter niche: it reports problems and lets users tune rules rather than rewriting files wholesale.
The official docs organize the project around a rule system. Each rule is independent and can be enabled, disabled, or configured, with bundled `default` and `relaxed` configurations and custom configuration through files, inline `-d` values, or comments that disable checks in selected places.
yamllint became the default YAML linting package across many Unix-like environments. The official quickstart documents installation on Fedora/CentOS, Debian/Ubuntu, macOS through Homebrew, FreeBSD, OpenBSD, Alpine Linux, pip, and source builds.
Its adoption tracks YAML becoming infrastructure glue: CI definitions, Ansible playbooks, Kubernetes manifests, packaging metadata, and documentation configs all benefit from a linter that catches both invalid YAML and review-noise style drift.
Common usage is `yamllint file.yml other-file.yaml`, `yamllint .` for a directory, or `echo ... | yamllint -` for stdin. Output formats include standard terminal output and parsable output for editor integrations.
Configuration is normally kept in `.yamllint`, `.yamllint.yaml`, or `.yamllint.yml` in a project tree, a file referenced by `YAMLLINT_CONFIG_FILE`, or XDG config paths. Configurations can extend the default ruleset and adjust rule severity to warnings or errors.
yamllint is one of the canonical examples of a small language-specific linter becoming packaging infrastructure. It is not tied to one YAML-using ecosystem, so it appears wherever maintainers need reproducible checks for human-edited YAML.
It also matters because YAML has edge cases that parsers may accept but humans do not want in shared repos, such as duplicate keys, truthy values, bad indentation, and noisy whitespace. yamllint gives package maintainers a standard policy layer for those files.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
.yamllint.yamllint.yaml.yamllint.yml$YAMLLINT_CONFIG_FILE$XDG_CONFIG_HOME/yamllint/config~/.config/yamllint/config可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
yamllint | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:yamllint |
|---|---|
| 版本 | 1.38.0 |
| 软件包管理器 | Homebrew |
| 主页 | https://github.com/adrienverge/yamllint |
| 仓库 | https://github.com/adrienverge/yamllint |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
yamllint 1.37.1-1
Linter for YAML files
https://github.com/adrienverge/yamllint
sudo apt install yamllintyamllint
nix profile install nixpkgs#yamllintyamllint 1.33.0-1
Linter for YAML files
https://github.com/adrienverge/yamllint
sudo apt install yamllintyamllint 1.38.0-r0
A linter for YAML files
https://github.com/adrienverge/yamllint
sudo apk add yamllintyamllint-pyc 1.38.0-r0
Precompiled Python bytecode for yamllint
https://github.com/adrienverge/yamllint
sudo apk add yamllint-pycyamllint 1.38.0-3.fc45
A linter for YAML files
https://github.com/adrienverge/yamllint
sudo dnf install yamllintyamllint 1.38.0-1
Linter for YAML files
https://github.com/adrienverge/yamllint
sudo pacman -S yamllintyamllint
sudo port install yamllint来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.