CFLint
CFLint copied to clipboard
Static code analysis for CFML (a linter)
For example: for rule SelectStarChecker. Bug can be found in a commented block. ` SELECT a FROM bbb ` Maybe we should on element.getContent() - remove all commented blocks, instantly....
For example: ``` ``` 1) while parsing first cftransaction have null EndTag 2) For second cftransaction, endTag is = "``" I add a new rule: EndTagChecker ``` @Override public void...
Hi, I added some setters to combine several results in one report. In CFLintResult.java add: ``` public void setIssues(Map bugsList){ BugList bugs = cflint.getBugs(); bugs.setBugList(bugsList); cflint.setBugs(bugs); } ``` In BugList.java...
When declaring a ordered struct, I do: ``` a = structNew( "ordered" ); ``` and cflint complains about the use of structnew. I don't see in the docs another way...
---- from @denuno That would be a pretty interesting thing to have in CFLint itself, actually, along with a mode where you could enable auto-fixing (or maybe auto-ignoring)... e.g. instead...
I've seen this a lot. Someone has written something like ``` ... ``` when it would be preferable to just write ``` ... ``` The hashes in that example are...
A `cfm` file with the content ``` ``` has the following JSON output ```json { "version" : "1.4.1", "timestamp" : 1540257038, "issues" : [ { "severity" : "INFO", "id" :...
See https://github.com/cflint/CFLint/issues/594 Script tags are currently 'simulated' in CFLint by generating the corresponding cfml tags. This should be changed.
Are there any linter rules for managing white space? Like detecting tabs vs spaces, indentation issues, trailing spaces, etc.?
The following are legal ways to declare a struct or array. - `addressComponents.streetName = "Main";` - `sampleCollection[7] = "Hello, World";` It should recommend being explicit with the type declaration in...