neilime / php-css-lint
强大的且内存高效的PHP CSS代码检查器
v3.2.0
2023-06-19 16:35 UTC
Requires
- php: >=8.0
- ext-json: *
Requires (Dev)
- mikey179/vfsstream: ^1.6
- pcov/clobber: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^0.12
- phpstan/phpstan-phpunit: ^0.12
- phpunit/phpunit: ^9.5.27
- slam/phpstan-laminas-framework: ^0.12
- squizlabs/php_codesniffer: ^3.7
README
📢 Php CSS Lint 是一个用于检查CSS文件和字符串的PHP脚本
===========================================================
____ _ ____ ____ ____ _ _ _
| _ \| |__ _ __ / ___/ ___/ ___| | | (_)_ __ | |_
| |_) | '_ \| '_ \ | | \___ \___ \ | | | | '_ \| __|
| __/| | | | |_) | | |___ ___) |__) | | |___| | | | | |_
|_| |_| |_| .__/ \____|____/____/ |_____|_|_| |_|\__|
|_|
===========================================================
# Lint file "/path/to/css/file.css"...
=> File "/path/to/css/file.css" is not valid :
- Unknown CSS property "bordr-top-style" (line: 8, char: 20)
- Unexpected char ":" (line: 15, char: 5)
帮助项目
❤️ 如果这个项目帮助您节省了开发时间,或者您想帮助这个项目的维护者。您可以赞助他。谢谢!
贡献
👍 如果您想为此项目做出贡献,请阅读CONTRIBUTING.md文件。注意:如果您想做出贡献,请毫不犹豫,我会审查任何PR。
文档
开发
设置
PHP_VERSION
是开发期间使用的PHP版本。例如:8.2
make build-php PHP_VERSION make install PHP_VERSION
运行测试
make test PHP_VERSION
修复代码检查
make lint-fix PHP_VERSION
运行CI脚本
make ci PHP_VERSION