https://github.com/timbeadle/grunt-cfpathcheck
Grunt wrapper for cfpathcheck
https://github.com/timbeadle/grunt-cfpathcheck
cfm cfml checkstyle grunt grunt-plugins static-analysis
Last synced: about 1 month ago
JSON representation
Grunt wrapper for cfpathcheck
- Host: GitHub
- URL: https://github.com/timbeadle/grunt-cfpathcheck
- Owner: timbeadle
- License: mit
- Created: 2015-12-03T12:20:08.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-10-14T11:21:05.000Z (7 months ago)
- Last Synced: 2024-10-14T11:35:53.988Z (7 months ago)
- Topics: cfm, cfml, checkstyle, grunt, grunt-plugins, static-analysis
- Language: JavaScript
- Homepage:
- Size: 5.18 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# grunt-cfpathcheck
> Grunt wrapper for [cfpathcheck](https://github.com/timbeadle/cfpathcheck)
[](https://www.npmjs.com/package/grunt-cfpathcheck)
[](https://www.npmjs.com/package/grunt-cfpathcheck)
[](https://github.com/timbeadle/grunt-cfpathcheck)
[](https://github.com/xojs/xo)
[](https://codeclimate.com/github/timbeadle/grunt-cfpathcheck)
[](https://depshield.github.io)
[](https://snyk.io/test/github/timbeadle/grunt-cfpathcheck)## About grunt-cfpathcheck
[cfpathcheck](https://github.com/timbeadle/cfpathcheck) is a static code analysis utility for finding incorrect/missing file paths and unused imported taglib namespaces in cfml (Adobe ColdFusion/Lucee/Railo/OpenBD) files.
The grunt-cfpathcheck plugin for grunt integrates this analysis into the grunt process.
## Getting Started
This plugin requires Grunt.If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
```shell
npm install grunt-cfpathcheck --save-dev
```Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
```js
grunt.loadNpmTasks('grunt-cfpathcheck');
```## The "cfpathcheck" task
### Overview
In your project's Gruntfile, add a section named `cfpathcheck` to the data object passed into `grunt.initConfig()`.```js
grunt.initConfig({
cfpathcheck: {
options: {
// Task-specific options go here.
},
your_target: {
// Target-specific file lists and/or options go here.
},
},
})
```### Options
#### options.reporter
Type: `String`
Default value: `console`The preferred reporter style that will be used in stdout.
#### options.outFile
Type: `String`
Default value: `undefined`The path to the desired output file containing the checkstyle-compatible result data.
### Usage Examples
#### Default Options
In this example, the default options are used to output analysis results to stdout, without saving the results to a file.```js
grunt.initConfig({
cfpathcheck: {
options: {},
files: {
'src': '..'
},
},
})
```#### Custom Options
In this example, custom options are used to output checkstyle-compatible xml to stdout and write the results to a file as well.```js
grunt.initConfig({
cfpathcheck: {
options: {
reporter: 'checkstyle',
outFile: 'path/to/results.xml',
},
files: {
'src': '..'
},
},
})
```## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).## Release History
See [CHANGELOG](https://github.com/timbeadle/grunt-cfpathcheck/blob/main/CHANGELOG.md).### Release support matrix
| Release | Min Node ver. | Support |
| ------- | ------------- | ----------- |
| 1.x | 4.0.0 | Obsolete |
| 2.x | 6.0.0 | Obsolete |
| 3.x | 8.0.0 | Obsolete |
| 4.x | 12.0.0 | Obsolete |
| 5.x | 12.0.0 | Obsolete |
| 6.x | 12.17.0 | Obsolete |
| 7.x | 14.13.0 | Obsolete |
| 8.x | 14.17.0 | Obsolete |
| 9.x | 16.14.0 | Obsolete |
| 10.x | 18.0.0 | Maintenance |
| 11.x | 20.0.0 | Current |## License
Copyright (c) 2015-2019 Tim Beadle. Licensed under the MIT license.