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

```cfml var address = variables.addressService.getAddressById( addressId = billingAddressId ); addressColumns.each(function (addressColumn) { variables['billing' & addressColumn] = address.find(addressColumn, ''); }); ``` `[cflint] UNUSED_LOCAL_VARIABLE: Local variable address is not used in function...

bug
false positive

The example `.cflintrc` will not return you any errors even if you do have errors in your cfml as it has an empty structure in the `includes` key. This example...

getting a heap of repeated errors with 1.4.0 (the error is repeated for a whole range of checkers, not just CFXTagChecker) java.lang.NullPointerException: Message definition not found for [AVOID_USING_CREATEOBJECT] in CFXTagChecker...

To prevent compatibility issues across engines and versions user defined functions inside and outside of components should be checked to ensure they don't conflict with BIF names.

enhancement

```cfscript var genericData = request.newObj('dataloader').getData(redacted); return QueryExecute(" select redacted, genericData.* from redacted, genericData where redacted ", {}, { dbtype: 'query' }); ``` ```plain Message code:UNUSED_LOCAL_VARIABLE File:/Users/jared/redacted/redacted.cfc Column:6 Line:78 Message:Local variable...

enhancement
false positive

The config file and the filter file seem to fill similar roles, deprecate the filter file

`` in older versions of ACF did not allow `#` in the `query` attribute. `` requires `#` in the `array` attribute as it expects a name of a variable. Otherwise...

enhancement

It happens to write code like this: ``` if(listFindNoCase("a,b", someVar)) { doSomething(); } ``` this should be reported at least as a warning because the intended logic is probably ```...

enhancement

If i have a CFC in `/abc/123/Def/Object.cfc` and yet i initialise it as `abc.123.def.object` that cflint will warn me when casing does not match?

enhancement