承接 njoannidi/php-lint-bash 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

njoannidi/php-lint-bash

Composer 安装命令:

composer require njoannidi/php-lint-bash

包简介

A short bash script to recursively lint PHP files with a nice output

README 文档

README

A quick bash script to recursively lint PHP files in a given directory. Nice to use as part of a testing stragegy for CI, or after doing an epic merge.

Returns:

  • Number of Files linted
  • Number of Files passed
  • Number of Files failed
  • Offending errors
  • Output on STDERR if any files fail linting
  • Pass / Fail "Sanity check"
  • Proper Exit codes

Usage

$ phpLint

  • Will recursively lint all PHP files in default directory specified in script

$ phpLint [directory]

Lint all files recursively of specified directory

Overview:

  • Will return a pass / fail
  • Will only pass if all files pass
  • Any errors will be output in addition to the file they were found in

Scope:

  • This is a syntax checker. It will not run methods and check for correct returns
  • It is not a static analysis tool. Code quality / specs are not enforced or searched for

Caveats and Best Practice:

  • The nature of PHP's lint operation is to abort linting of a file once an error has been found, so...
  • If a file has multiple errors you will only be notified of the first error
  • Run until you're error-free
  • Although linting of the current file may have stopped due to a syntax error, linting of any remaining files in the queue will continue.

Scripting / Deployment Usage:

  • This will return proper exit codes so it can be used for scripting deployments, etc.
  • Pass
  • Exit 0 (clean)
  • Output on stdin
  • Fail
  • Exit 1
  • Output on stderr

Requires:

  • PHP
  • Bash

统计信息

  • 总下载量: 24.94k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 3
  • 开发语言: Shell

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-10-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固