You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run CFLint-0.6.1-all.jar -includeRule AVOID_USING_CFINCLUDE_TAG,AVOID_USING_CFINCUDE_TAG,AVOID_USING_CFMODULE_TAG and receive one result: Avoid using <cfmodule> tags.
It seems test AVOID_USING_CFINCLUDE_TAGis only executed inside a component. That looks right to me. Why is the CFINCLUDE test executed without the check for component?
The text was updated successfully, but these errors were encountered:
cfinclude can be use outside of components to good effect - think something like including the header or footer of a page. With the example above it seems to be OK to use cfmodule. Depending on your point of view perhaps better due to scoping. These days however I can't imagine that cfmodule would need to be used that often when you have cfimport and just use cf_xxxx to call the custom tag (or prefix:xxxx with cfimport).
I have a
.cfm
file with the content:I run
CFLint-0.6.1-all.jar -includeRule AVOID_USING_CFINCLUDE_TAG,AVOID_USING_CFINCUDE_TAG,AVOID_USING_CFMODULE_TAG
and receive one result:Avoid using <cfmodule> tags.
It seems test
AVOID_USING_CFINCLUDE_TAG
is only executed inside a component. That looks right to me. Why is the CFINCLUDE test executed without the check for component?The text was updated successfully, but these errors were encountered: