Checkstyle for ColdFusion?

Is there any Checkstyle plugin for Eclipse available for ColdFusion.

+4
source share
4 answers

There are no coding specifications on ColdFusion. Sean Corfield wrote one for Macromediaโ€™s internal development departments, which some people use, but in fact there is no set of coding rules and rules that the community adheres to. Thus, there is no plugin to verify that your code follows these rules.

However, if you have standards that you prefer / apply in your company or team, then you can use code formatting in ColdFusion Builder 2 ( still in public beta now ) to quickly check / update the source files.

You set the formatting rules in the Eclipse settings, and then you can start the formatter from the menu: Change> Format (keyboard shortcut: cmd / control + shift + F)

+5
source

I am looking a bit for a special Checkstyle tool, no luck. I think, since CF is a tag language, as well as a scripting language, it lags behind in such tools. You can check out the eclipse plugin specific to ColdFusion, it may have some of its type authentication features.

http://cfeclipse.org/

0
source

In the hope that this is still true for someone ...

Once upon a time, I tried using regexp checkstyle tags. I wrote a blog post, check if there is a useful hint:

http://rcastagno.blogspot.it/2009/09/checkstyle-50-regexps-and-eclipse.html

0
source

There is a static code check written in ColdFusion for ColdFusion. see https://github.com/wellercs/CodeChecker . There is also a linter that can connect to Eclipse or ColdFusion Builder called CFLint. See https://github.com/cflint/CFLint for this tool. Therefore, CodeChecker is a standalone application, and CFLint can be used, as I recall, standalone or as a plugin for a number of IDEs. You can easily add rules and guides to CodeChecker, I have not tried with CFLint.

0
source

Source: https://habr.com/ru/post/1348120/


All Articles