
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
gulp-phplint
Advanced tools
PHPLint plugin for Gulp
Install phplint service (globally)
npm i -g phplint
yarn global add phplint
Install gulp-phplint as a development dependency to your project (for each project)
npm i -S gulp-phplint
yarn add gulp-phplint -D
After you have installed the plugin, reference it in to your gulpfile.js:
var phplint = require('gulp-phplint');
Default format. Equivalent to using phplint in command line (no options).
var gulp = require('gulp');
var phplint = require('gulp-phplint');
gulp.task('phplint', function() {
gulp.src('')
.pipe(phplint());
});
Default format using the error reporter.
gulp.task('phplint', function() {
return gulp.src(['./src/AppBundle/**/*.php'])
.pipe(phplint('', { /*opts*/ }))
.pipe(phplint.reporter('error'));
});
Custom src files and custom reporter.
gulp.task('phplint:custom', function () {
return gulp.src(['./src/AppBundle/**/*.php'])
.pipe(phplint('', { /*opts*/ }))
.pipe(phplint.reporter(function(file){
var report = file.phplintReport || {};
if (report.error) {
console.error(report.message+' on line '+report.line+' of '+report.filename);
}
}));
});
Type: String
Path to php binary.
If not supplied, the default php path will be used.
Type: Boolean
Default: false
Enable debug mode (enables --debug switch as well).
Type: Boolean
Default: false
Clear console before executing command.
Type: Boolean
Default: false
Simulates script execution. Doesn't actually execute tests, just echoes command that would be executed.
Type: Boolean
Default: true
Conditionally display notification (both console and growl where applicable).
Type: Boolean
Default: true
Displays status lines as follows:
debug property enabled (will also display red and green statuses)Type: Boolean
Default: false
Suppress reporting files which don't have syntax errors (files that passed linting).
gulp-phplint written by Mike Erickson
E-Mail: codedungeon@gmail.com
Twitter: @codedungeon
Website: codedungeon.org
Inspired By: jamarzka/gulp-phplint
FAQs
PHPLint plugin for Gulp
The npm package gulp-phplint receives a total of 508 weekly downloads. As such, gulp-phplint popularity was classified as not popular.
We found that gulp-phplint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.