Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
grunt-sonar-runner
Advanced tools
Sonar Analysis Runner from grunt. The major version is kept in sync with sonar runner distribution version.
Sonar Analysis Runner from grunt
This plugin requires Grunt ~0.4.2
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-sonar-runner --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-sonar-runner');
In your project's Gruntfile, add a section named sonarRunner
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
sonarRunner: {
analysis: {
options: {
debug: true,
separator: '\n',
sonar: {
host: {
url: 'http://localhost:9000'
},
jdbc: {
url: 'jdbc:mysql://localhost:3306/sonar',
username: 'sonar',
password: 'sonar'
},
projectKey: 'sonar:grunt-sonar-runner:0.1.0',
projectName: 'Grunt Sonar Runner',
projectVersion: '0.10',
sources: ['test'].join(','),
language: 'js',
sourceEncoding: 'UTF-8'
}
}
}
}
});
Type: Boolean
Default value: 'false'
A Boolean value to display debug information when preparing sonar analysis.
Type: String
Default value: os.EOL
A string value representing a new line character to separate individual sonar properties
Type: String
Default value: 'http://localhost:9000'
Sonar Dashboard URL
Type: String
Default value: ''
JDBC connection url
Type: String
Default value: ''
JDBC connection username
Type: String
Default value: ''
JDBC connection password
Type: String
Default value: ''
comma separated list of directories to analyse. All js files in the provided directories will be included.
Type: String
Default value: ''
project key usually of form group:artifactId:version
Type: String
Default value: ''
Project Summary
Type: String
Default value: ''
Current project build version
The configuration code below shows all possible options that are currently supported by the plugin. Any additional sonar properties can be added right inside the sonar object literal.
grunt.initConfig({
sonarRunner: {
analysis: {
options: {
debug: true,
separator: '\n',
sonar: {
host: {
url: 'http://localhost:9000'
},
jdbc: {
url: 'jdbc:mysql://localhost:3306/sonar',
username: 'sonar',
password: 'sonar'
},
projectKey: 'sonar:grunt-sonar-runner:0.1.0',
projectName: 'Grunt Sonar Runner',
projectVersion: '0.10',
sources: ['test'].join(','),
language: 'js',
sourceEncoding: 'UTF-8'
}
}
}
}
});
To run
grunt sonarRunner:analysis
FAQs
Sonar Analysis Runner from grunt. The major version is kept in sync with sonar runner distribution version.
The npm package grunt-sonar-runner receives a total of 745 weekly downloads. As such, grunt-sonar-runner popularity was classified as not popular.
We found that grunt-sonar-runner 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.