vkcom/noverify
Composer 安装命令:
composer require vkcom/noverify
包简介
Pretty fast linter (code static analysis utility) for PHP
README 文档
README
NoVerify
NoVerify is a PHP linter: it finds possible bugs and style violations in your code.
- NoVerify has no config: any reported issue in your PHPDoc or PHP code must be fixed.
- NoVerify aims to understand PHP code at least as well as PHPStorm does. If it behaves incorrectly or sub optimally, please report issue.
- This tool is written in Go and uses fork of z7zmey/php-parser.
Features
- Fast: analyze ~100k LOC/s (lines of code per second) on Core i7;
- Incremental: can analyze changes in git and show only new reports. Indexing speed is ~1M LOC/s;
- Auto fixes for some warnings;
- PHP 7 and PHP 8 support;
- Diff and baseline modes support.
Default lints
NoVerify by default has the following checks:
- Unreachable code
- Too few arguments when calling a function/method
- Call to undefined function/method
- Fetching of undefined constant/class property
- Class not found
- PHPDoc is incorrect
- Undefined variable
- Variable not always defined
- Case without
break; - Syntax error
- Unused variable
- Incorrect access to private/protected elements
- Incorrect implementation of
IteratorAggregateinterface - Incorrect array definition, e.g. duplicate keys
- And others, you can see the entire list here
Playground
Try NoVerify now in Playground (not supported Safari yet).
Plugins
User Guide
Using NoVerify as linter:
Extending NoVerify:
Using NoVerify as PHP language server (version 0.3.0 and bellow):
- Using NoVerify as language server for VSCode
- Using NoVerify as language server for Sublime Text
- Writing new IDE/editor plugin
Contributing
Feel free to contribute to this project. See CONTRIBUTING.md for more information. Join our chat ru in a telegram if you want to discuss something.
The License
NoVerify is distributed under the MIT License, on behalf of VK LLC.
vkcom/noverify 适用场景与选型建议
vkcom/noverify 是一款 基于 Go 开发的 Composer 扩展包,目前已累计 65.19k 次下载、GitHub Stars 达 687, 最近一次更新时间为 2021 年 08 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 vkcom/noverify 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vkcom/noverify 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 65.19k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 688
- 点击次数: 17
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-08-27
