CFLint icon indicating copy to clipboard operation
CFLint copied to clipboard

Static code analysis for CFML (a linter)

Results 108 CFLint issues
Sort by recently updated
recently updated
newest added

File: ``` ``` Result: ``` java.lang.NullPointerException at com.cflint.tools.CFMLTagInfo.isAssignmentAttribute(CFMLTagInfo.java:61) at com.cflint.tools.CFMLTagInfo.isExpressionAttribute(CFMLTagInfo.java:96) at com.cflint.tools.CFMLTagInfo.isExpressionAttribute(CFMLTagInfo.java:81) at com.cflint.CFLint.unpackTagExpressions(CFLint.java:681) at com.cflint.CFLint.process(CFLint.java:624) at com.cflint.CFLint.processStack(CFLint.java:399) at com.cflint.CFLint.process(CFLint.java:342) at com.cflint.CFLint.scan(CFLint.java:295) at com.cflint.CFLint.scan(CFLint.java:206) at com.cflint.api.CFLintAPI.scan(CFLintAPI.java:65) at com.cflint.cli.CFLintCLI.execute(CFLintCLI.java:371) at com.cflint.cli.CFLintCLI.main(CFLintCLI.java:339)...

bug

Unused variable on line 3 ```cfml SELECT #testVar# ``` related: https://github.com/cflint/CFLint/issues/464

bug
false positive

Obtain this error: Error in parsing : in on tag cfparam java.lang.IndexOutOfBoundsException: token index -1 out of range 0..1 at org.antlr.v4.runtime.BufferedTokenStream.get(BufferedTokenStream.java:186) at com.cflint.CFLint.syntaxError(CFLint.java:1600) ... Code to check: ``` WelcomeGoodbye: ```

bug

Hi, found that cfloop will execute startFunction method that can lead to errors for some rules. Example: Execute UNUSED_LOCAL_VARIABLE rule for: ```coldfusion ``` startFunction clear `localVariables` list variable

bug

Using CFLint-1.3.0 Given the following component named `test.cfc`: ``` /** * Test hint */ component { /** * Converts date to formatted string-representation of date * @dateObj The date object...

bug

Hi, I think would be more correct to name rule "UNSCOPED_VAR" instead of "missing_var", because it could be of any scope, not only local.

enhancement

.cflintrc can block out linting on certain dirs by not including any rules. But there should be a mechanism to block CFLint from even going into certain directories. An example...

enhancement

This crashes with an NPE in version 1.5.0: ``` foo = 'c'; if (!(['a','b'].findnocase(foo))) { WriteOutput('miss'); } ``` Workaround: use `not` instead of `!` Stack trace: ``` com.cflint.exception.CFLintScanException: com.cflint.exception.CFLintScanException: java.lang.NullPointerException...

Hi, it is possible to extract text from Element without losing amount of chars. For example replace all removed code to equal number of white spaces. It is useful when...

Hi, found that vars in condition statement are not parsed: ` ` loop_index_countvar - this var is reported as unused.

false positive