
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
gulp-sonar2
Advanced tools
Sonar for gulp, removed dependency on gulp-util
npm install --save-dev gulp-sonar2
gulp.task('sonar', function () {
var options = {
sonar: {
host: {
url: 'http://localhost:9000'
},
jdbc: {
url: 'jdbc:mysql://localhost:3306/sonar',
username: 'sonar',
password: 'sonar'
},
projectKey: 'sonar:my-project:1.0.0',
projectName: 'My Project',
projectVersion: '1.0.0',
// comma-delimited string of source directories
sources: 'src/app/js,src/libs/js',
language: 'js',
sourceEncoding: 'UTF-8',
javascript: {
lcov: {
reportPath: 'test/sonar_report/lcov.info'
}
},
exec: {
// All these properties will be send to the child_process.exec method (see: https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback )
// Increase the amount of data allowed on stdout or stderr (if this value is exceeded then the child process is killed, and the gulp-sonar will fail).
maxBuffer : 1024*1024
}
}
};
// gulp source doesn't matter, all files are referenced in options object above
return gulp.src('thisFileDoesNotExist.js', { read: false })
.pipe(sonar(options))
.on('error', util.log);
});
Inspired by grunt-sonar-runner by Suresh Khatri.
Forked from gulp-sonar by carsdotcom
FAQs
Sonar runner for gulp.
The npm package gulp-sonar2 receives a total of 5 weekly downloads. As such, gulp-sonar2 popularity was classified as not popular.
We found that gulp-sonar2 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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.