-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from commandbox-modules/master
Tons of updates
- Loading branch information
Showing
10 changed files
with
480 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"array.empty_padding": false, | ||
"array.padding": true, | ||
"array.multiline.min_length": 40, | ||
"array.multiline.element_count": 2, | ||
"array.multiline.leading_comma.padding": true, | ||
"array.multiline.leading_comma": false, | ||
"alignment.consecutive.assignments": true, | ||
"alignment.consecutive.properties": true, | ||
"alignment.consecutive.params": true, | ||
"brackets.padding": true, | ||
"comment.asterisks": "align", | ||
"binary_operators.padding": true, | ||
"for_loop_semicolons.padding": true, | ||
"function_call.empty_padding": false, | ||
"function_call.padding": true, | ||
"function_call.multiline.leading_comma.padding": true, | ||
"function_call.casing.builtin": "cfdocs", | ||
"function_call.casing.userdefined": "camel", | ||
"function_call.multiline.element_count": 2, | ||
"function_call.multiline.leading_comma": false, | ||
"function_call.multiline.min_length": 40, | ||
"function_declaration.padding": true, | ||
"function_declaration.empty_padding": false, | ||
"function_declaration.multiline.leading_comma": false, | ||
"function_declaration.multiline.leading_comma.padding": true, | ||
"function_declaration.multiline.element_count": 2, | ||
"function_declaration.multiline.min_length": 40, | ||
"function_declaration.group_to_block_spacing": "compact", | ||
"function_anonymous.empty_padding": false, | ||
"function_anonymous.group_to_block_spacing": "compact", | ||
"function_anonymous.multiline.element_count": 2, | ||
"function_anonymous.multiline.leading_comma": false, | ||
"function_anonymous.multiline.leading_comma.padding": true, | ||
"function_anonymous.multiline.min_length": 40, | ||
"function_anonymous.padding": true, | ||
"indent_size": 4, | ||
"keywords.block_to_keyword_spacing": "spaced", | ||
"keywords.group_to_block_spacing": "spaced", | ||
"keywords.padding_inside_group": true, | ||
"keywords.spacing_to_block": "spaced", | ||
"keywords.spacing_to_group": true, | ||
"keywords.empty_group_spacing": false, | ||
"max_columns": 120, | ||
"metadata.multiline.element_count": 3, | ||
"metadata.multiline.min_length": 40, | ||
"method_call.chain.multiline" : 3, | ||
"newline":"\n", | ||
"property.multiline.element_count": 3, | ||
"property.multiline.min_length": 40, | ||
"parentheses.padding": true, | ||
"strings.quote": "double", | ||
"strings.attributes.quote": "double", | ||
"struct.separator": " : ", | ||
"struct.padding": true, | ||
"struct.empty_padding": false, | ||
"struct.multiline.leading_comma": false, | ||
"struct.multiline.leading_comma.padding": true, | ||
"struct.multiline.element_count": 2, | ||
"struct.multiline.min_length": 40, | ||
"tab_indent": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = false | ||
indent_style = tab | ||
indent_size = 4 | ||
tab_width = 4 | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.{md,markdown}] | ||
trim_trailing_whitespace = false | ||
insert_final_newline = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"line-length": false, | ||
"single-h1": false, | ||
"first-line-h1": false, | ||
"no-multiple-blanks": { | ||
"maximum": 2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
component { | ||
|
||
this.name = "commandbox-cflint"; | ||
this.cfmapping = "commandbox-cflint"; | ||
|
||
function configure() { | ||
|
||
} | ||
|
||
function onLoad(){ | ||
|
||
var bundleService = wirebox.getInstance("BundleService@commandbox-cflint"); | ||
var jarFile = modulePath & "/lib/CFLint-1.4.1-all/CFLint-1.4.1-all.jar"; | ||
|
||
if ( !bundleService.isBundleInstalled( "com.cflint.CFLint", "1.4.1" ) ) { | ||
bundleService.installBundle( jarFile ); | ||
} | ||
|
||
} | ||
|
||
} | ||
component { | ||
|
||
this.name = "commandbox-cflint"; | ||
this.cfmapping = "commandbox-cflint"; | ||
|
||
function configure(){ | ||
settings = { cflint_version : "1.5.0" }; | ||
} | ||
|
||
function onLoad(){ | ||
var bundleService = wirebox.getInstance( "BundleService@commandbox-cflint" ); | ||
var jarFile = modulePath & "/lib/CFLint-#settings.cflint_version#-all/CFLint-#settings.cflint_version#-all.jar"; | ||
|
||
if ( | ||
!bundleService.isBundleInstalled( | ||
"com.cflint.CFLint", | ||
settings.cflint_version | ||
) | ||
) { | ||
bundleService.installBundle( jarFile ); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,61 @@ | ||
# commandbox-cflint | ||
|
||
This is a [CommandBox](https://www.ortussolutions.com/products/commandbox) module for linting your CFML code using [CFLint](https://github.com/cflint/CFLint). | ||
|
||
CFLint Version: 1.4.1 | ||
|
||
## Install | ||
|
||
First you will need [CommandBox](https://www.ortussolutions.com/products/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 | ||
|
||
<img src="https://raw.githubusercontent.com/jsteinshouer/commandbox-cflint/master/examples/cflint-console-example.png" class="img-responsive" /> | ||
|
||
#### Example HTML Report | ||
|
||
<img src="https://raw.githubusercontent.com/jsteinshouer/commandbox-cflint/master/examples/cflint-html-example.png" class="img-responsive" /> | ||
# commandbox-cflint | ||
|
||
This is a [CommandBox](https://www.ortussolutions.com/products/commandbox) module for linting your CFML code using [CFLint](https://github.com/cflint/CFLint). | ||
|
||
CFLint Version: 1.5.0 | ||
|
||
## Install | ||
|
||
First you will need [CommandBox](https://www.ortussolutions.com/products/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 | ||
|
||
<img src="https://raw.githubusercontent.com/jsteinshouer/commandbox-cflint/master/examples/cflint-console-example.png" class="img-responsive" /> | ||
|
||
#### Example HTML Report | ||
|
||
<img src="https://raw.githubusercontent.com/jsteinshouer/commandbox-cflint/master/examples/cflint-html-example.png" class="img-responsive" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.