10.0.3 • Published 1 month ago

grunt-cfpathcheck v10.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
1 month ago

grunt-cfpathcheck

Grunt wrapper for cfpathcheck

npm version Downloads/month Build Status XO code style Code Climate DepShield Badge Known Vulnerabilities

About grunt-cfpathcheck

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 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-cfpathcheck --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

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().

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.

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.

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.

Release History

See CHANGELOG.

Release support matrix

ReleaseMin Node ver.Support
1.x4.0.0Obsolete
2.x6.0.0Obsolete
3.x8.0.0Obsolete
4.x12.0.0Obsolete
5.x12.0.0Obsolete
6.x12.17.0Obsolete
7.x14.13.0Obsolete
8.x14.17.0Obsolete
9.x16.14.0Maintenance
10.x18.0.0Current

License

Copyright (c) 2015-2019 Tim Beadle. Licensed under the MIT license.

10.0.3

1 month ago

10.0.2

4 months ago

10.0.0

6 months ago

10.0.1

6 months ago

7.0.3

6 months ago

8.0.2

7 months ago

9.0.0

7 months ago

6.0.2

10 months ago

7.0.2

10 months ago

8.0.1

10 months ago

5.1.0

1 year ago

7.0.1

1 year ago

8.0.0

1 year ago

4.3.0

1 year ago

7.0.0

1 year ago

6.0.1

2 years ago

6.0.0

2 years ago

5.0.0

2 years ago

2.0.2

3 years ago

3.0.4

3 years ago

4.2.1

3 years ago

4.2.0

4 years ago

4.1.0

4 years ago

4.0.0

4 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.1

5 years ago

2.0.0

6 years ago

1.2.0

6 years ago

1.1.1

7 years ago

1.1.0

8 years ago

1.0.1

8 years ago

0.6.1

8 years ago

1.0.0

8 years ago

0.6.0

8 years ago

0.5.0

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago