1.0.3 • Published 4 years ago

gulp-cflint v1.0.3

Weekly downloads
17
License
ISC
Repository
github
Last release
4 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

4 years ago

1.0.2

4 years ago

1.0.0

6 years ago

0.1.1

6 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.1

7 years ago