Lint for ColdFusion [closed]
Asked Answered
H

5

17

Is there an equivalent of JSLint for ColdFusion?

Holcombe answered 8/6, 2009 at 22:51 Comment(1)
There is a GitHub project called CFLint github.com/cflint/CFLint with multi-platform releases here github.com/cflint/CFLint/releasesNildanile
B
13

I've not encountered anything particularly lint-like for CF, but there are assorted syntax checkers:

Bannon answered 8/6, 2009 at 23:22 Comment(2)
No idea why this was the accepted answer. The answer is no, there isn't one. Wish there was.Steelyard
This is a lint for ColdFusion - github.com/cflint/CFLintThruway
E
3

There are no online validators that I am aware of for ColdFusion. You can download the free open source Eclipse (1.4) and install the free CFEclipse Plug-In for ColdFusion which includes a dictionary reference for ColdFusion as well as a syntax error checker. Very handy for checking for errors as you write your CFML.

You can download Eclipse at www.eclipse.org and the CFEclipse plug-in at cfeclipse.org.

Except answered 9/6, 2009 at 0:41 Comment(0)
K
2

Although woefully inadequate for what you want, the Code Compatibility Analyzer that comes with Coldfusion can do some basic checking.

It is primailary focused on upgrading from earlier versions so you won't get a lot of a WHOLE lot out of it.

It will not perform any scoping checks, which I believe Coldfusion Really needs.

Kwan answered 9/6, 2009 at 11:6 Comment(0)
M
1

Not exactly what you're looking for, but IntelliJ IDEA has a CFML plugin, and it highlights various kinds of (things it thinks are) errors. In my experience, it shows some false positives, mostly references it can't resolve, but it also does flag many real errors; often saves some test-fail-fix cycles. (It's also an awesome IDE in general IMO.)

Metaphor answered 28/1, 2012 at 16:4 Comment(2)
When I first read this post I was giddy with glee. Maybe, just maybe, a decent IDE. But, alas, glee was fleeting. It sucked just like the others. I still have hope that IntelliJ will come through on some of my questions. I will definitely let you know.Quinone
To each their own, but I use IDEA for CFML all day every day and I love it. It's got warts for sure, but IMO it's head and shoulders above everything else in terms of features that improve productivity and code quality. If you have specific questions or problems, check the google group (groups.google.com/forum/?#!forum/cfml-plugin-for-intellij-idea).Metaphor
R
1

The ColdFusion builder product that Adobe put out has pretty good error trapping. Standard red x on the line number where you have an error with a brief description as to why your code is currently broken.

Rockwell answered 1/2, 2012 at 14:46 Comment(1)
It appears that JSLint is to make sure code has higher quality. That is different from whether it throws errors. Consider SELECT * FROM myTable where ID = #url.id# It may be correct and not throw an error, but it's dangerously flawedTelescopy

© 2022 - 2024 — McMap. All rights reserved.