mfn/detect_short_open_tag
Composer 安装命令:
composer require mfn/detect_short_open_tag
包简介
Scans the given directories / files and reports uses of short open tags
README 文档
README
Installation
composer require --dev mfn/detect_short_open_tag
Usage
bin/detect_short_open_tag [-e|--extension php] <dir1>... <dirn>
Scans the given paths for PHP files containing the use of short open tags and reports them.
-e|--extension File extensions to scan, defaults to 'php'
<dir> One or more directories to scan fo
The script will exit with 0 if no short open tags where found and 1 otherwise.
Example output (compatible with Github Actions):
::error file=tests/mixed_open_tags.php,line=2::short open tag not allowed
::error file=tests/mixed_open_tags.php,line=4::short open tag not allowed
::error file=tests/only_short_open_tag.php,line=1::short open tag not allowed
::error file=tests/short_open_tag_other_file_extension.foo,line=1::short open tag not allowed
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-07-07