j13k/yaml-lint
Composer 安装命令:
composer require j13k/yaml-lint
包简介
A compact command line utility for checking YAML file syntax
README 文档
README
A compact command line linting tool for validating YAML files, using the parsing facility of the Symfony Yaml Component.
Usage
usage: yaml-lint [options] [input source]
input source Path to file(s), or "-" to read from standard input
-q, --quiet Restrict output to syntax errors
-t, --parse-tags Enable parsing of custom YAML tags (symfony/yaml 3+ only)
-h, --help Display this help
-V, --version Display application version
Install
Composer
To get started using yaml-lint in a project, install it with Composer:
composer require --dev j13k/yaml-lint
It can then be run from the project's vendor/bin directory.
To set up yaml-lint globally, install it in the Composer home directory:
composer global require j13k/yaml-lint
It can then be run from the bin directory of Composer home (typically ~/.composer/vendor/bin).
Note
Binary Name Conflict: Both j13k/yaml-lint and symfony/yaml provide a yaml-lint binary. If you see this message during installation:
Skipped installation of bin bin/yaml-lint for package j13k/yaml-lint:
name conflicts with an existing file
You can either call the binary directly with vendor/j13k/yaml-lint/bin/yaml-lint, or create a symlink:
ln -sf ../j13k/yaml-lint/bin/yaml-lint vendor/bin/yaml-lint
See #181 for details.
Binary
A binary edition , yaml-lint.phar, is available for download with each release. This embeds the latest stable version of the Symfony Yaml component that is current at the time of the release.
The binary can be conveniently installed using PHIVE:
phive install yaml-lint
Verifying Signatures
Release binaries are signed with GPG. To verify the signature:
-
Download both
yaml-lint.pharandyaml-lint.phar.ascfrom the releases page -
Import the public key:
gpg --recv-keys 38A182AB413064D7
Or download it from this repository:
curl -O https://raw.githubusercontent.com/j13k/yaml-lint/master/j13k_users_noreply_github_com.pub gpg --import j13k_users_noreply_github_com.pub
-
Verify the signature:
gpg --verify yaml-lint.phar.asc yaml-lint.phar
You should see:
Good signature from "John Fitzpatrick (Software signing key) <j13k@users.noreply.github.com>"
Docker
yaml-lint is bundled in the phpqa Docker image, which provides a suite of static analysis tools for PHP. See the phpqa project for installation and usage instructions.
Change log
Please see CHANGELOG for information on what has changed recently.
Credits
License
The MIT License (MIT). Please see LICENCE for more information.
j13k/yaml-lint 适用场景与选型建议
j13k/yaml-lint 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.16M 次下载、GitHub Stars 达 16, 最近一次更新时间为 2016 年 03 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「symfony」 「yaml」 「cli」 「utility」 「syntax」 「yml」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 j13k/yaml-lint 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 j13k/yaml-lint 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 j13k/yaml-lint 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The bundle for easy using json-rpc api on your project
Bundle Symfony DaplosBundle
SUML for PHP
SUML support for Symfony
provides an facade for php-yaml, syck and symphony/yaml so switching in between is easier
Especificação do formato Cnab240 e Cnab400 traduzida para Yaml
统计信息
- 总下载量: 1.16M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 17
- 点击次数: 26
- 依赖项目数: 19
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-03