littlemanco/arcanist-lint-checkstyle
Composer 安装命令:
composer require littlemanco/arcanist-lint-checkstyle
包简介
A package that extends Arcanist lints to support checkstyle output
README 文档
README
Project Goals
Arcanist provides an excellent linting system, that aggregates other linting tools for easy consumption. This makes tools that output content in the checkstyle format consumable by arcanist.
Similar Work
This was largely based off the script-and-regex check that already existed
Justification
I could not figure out a way to get checkstyle content into arcanist easily otherwise; Checkstyle is XML, so it was easy and interesting to build a parser.
Limitations
- Only tested with shellcheck
Summary
- License: MIT
- Code Style: PSR2*
- Locale: en-AU [lang]_
- Amusingly, it fails PSR2
Compatibility
PHP
- 5.6 (probably)
- 7
Installation
This tool can be installed with composer:
$ composer require --dev littlemanco/arcanist-lint-checkstyle
It's available on Packagist, so it should "Just Work"
Usage
This linter integrates with the normal Arcanist lints, however some additional setup is required to get Arcanist to find the linter. Create a file in your repo as follows:
{
"load": [
"vendor/littlemanco/arcanist-lint-checkstyle/src/"
]
}
This allows arcanist to discover the lint. Then, it can be configured like other lints:
{
"linters": {
...
"sh": {
"type": "checkstyle",
"include": "(\\.sh$)",
"checkstyle.script": "sh -c 'shellcheck --format=checkstyle \"$0\" || true'"
}
...
}
}
Thanks
- Phabricator
- Checkstyle
- Shellcheck
Contributing
Contributions are always welcome! Nothing is too small, and the best place to start is to open an issue.
References
.. [lang] Lingoes.net,. (2015). Language Code Table. Retrieved 4 June 2015, from http://www.lingoes.net/en/translator/langcode.htm
littlemanco/arcanist-lint-checkstyle 适用场景与选型建议
littlemanco/arcanist-lint-checkstyle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.08k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2017 年 01 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 littlemanco/arcanist-lint-checkstyle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 littlemanco/arcanist-lint-checkstyle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.08k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-01-29