BoxLang 🚀 A New JVM Dynamic Language Learn More...

commandbox-cflint

v2.4.0 CommandBox Modules

commandbox-cflint

This is a CommandBox module for linting your CFML code using CFLint.

CFLint Version: 1.5.0

Install

First you will need CommandBox version 4 or higher installed. Then you can install the commandbox-cflint module using the following command.

box install commandbox-cflint

Usage

It can be run on a single file or against a list of files defined by a file globing pattern

box cflint **.cfc,**.cfm

Run for all components in the models directory.

box cflint models/**.cfc

Generate html report instead of console output.

box cflint models/**.cfc --html

Hide INFO level results.

box cflint reportLevel=WARNING

Hide INFO and WARNING level results.

box cflint reportLevel=ERROR

Generate a JUnit report

box cflint models/**.cfc --junit

Example Output

Example Console Output

Example HTML Report

Changelog

2.4.0

  • feature: Added excludePattern argument
  • feature: Sort results by filename
  • fix: Remove ANSI formmating from text file results
  • fix: Typo in help output #13

2.3.0

Added

  • Upgraded to store binaries in ForgeBox for faster installations
  • Upgraded cflint jar to latest release of v1.5.0
  • Added module setting for version loading
  • Added formatting rules and script runners: format, format:check, format:watch
  • Added editor configs for multi-os editing
  • Added markdown lint rc

2.2.0

  • Added JUnit report option

2.1.1

  • Forgot to update the README with new CFLint version

2.1.0

  • Added ability to filter out levels of errors
  • Upgraded CFLint to latest 1.4.1 release

2.0.1

  • Fixed issue where output does not write to the current working directory

2.0.0

  • Running CFLint via the Java API instead of via the command line
  • Fixes issue #4 where Windows users get error that the command line is too long
  • Bumping the major version because this load CFLint via an OSGi bundle which requires CommandBox 4 or above

1.2.1

  • Fixed default pattern parameter since the | no longer works in a glob pattern

1.2.0

  • Upgraded CFLint to latest 1.4.0 release

1.1.0

  • Fix for case sensitive OSs
  • Added the ability for the pattern argument to accept a list of globbing patterns: ex models/**.cfc,modules_app/**.cfc

1.0.0

  • Upgraded CFLint to latest 1.3.0 release
  • Added the ability to suppress the display output if needed via the suppress argument
  • Added the ability to generate multiple output types at once
  • Added the ability to have the choice to fail with an exit code or note using the exitOnError argument, great for not failing CI builds if needed
  • New text report output by using the text argument
  • New json report output by using the json argument
  • Added types for CLI introspection and tab completion.

0.5.0

  • Original Release

$ box install commandbox-cflint

No collaborators yet.
     
  • {{ getFullDate("2017-12-31T11:07:56Z") }}
  • {{ getFullDate("2024-02-09T13:50:42Z") }}
  • 9,348
  • 77,616