1.0.3 • Published 5 years ago

gulp-cflint v1.0.3

Weekly downloads
17
License
ISC
Repository
github
Last release
5 years ago

gulp-cflint

A Gulp plugin for identifying and reporting on patterns found in CFML code.

Installation

Use npm.

npm install gulp-cflint --save-dev

Usage

const {src, task} = require('gulp');
const cflint = require('gulp-cflint');

const cfFiles = [
  './**/*.cf[cm]',
  '!./WEB-INF/**/*',
  '!./CFIDE/**/*'
];

task('lint:cf', () => {
  return src(cfFiles)
    .pipe(cflint());
});

task('test:cf', () => {
  return src(cfFiles)
    .pipe(cflint({ failOnError: true, quiet: true }));
});

Options

failOnError

Type: Boolean

Default: true

When true, Stop a task/stream if a CFLint error has been reported for any file.

quiet

Type: Boolean

Default: true

When false, this option will show each file name as its proccessed.

folder

Type: String

If used, the file path will be ignored and cflint will process the folder instead using the '-folder' argument.

task('test:cf', () => {
  return src(['./index.cfm'])
    .pipe(cflint({ failOnError: true, quiet: true, folder: './system/customtags' }));
});

logError

Type: Boolean

Default: true

When true, log parsing errors as bugs.

maxBuffer

Type: Number

Default: 10000000 (10MB)

Largest amount of data in bytes allowed from the error. When running with the folder option on a large project this might have to be ajusted. If you exceed the limit you will get this error 'stderr maxBuffer exceeded'

1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

7 years ago

0.1.1

7 years ago

0.0.17

8 years ago

0.0.16

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.1

8 years ago