Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CFScript in <cffunction> length check doesn't work #710

Open
adamcameron opened this issue Jun 30, 2021 · 0 comments
Open

CFScript in <cffunction> length check doesn't work #710

adamcameron opened this issue Jun 30, 2021 · 0 comments

Comments

@adamcameron
Copy link

v1.5 (via commandbox-cflint, v2.3)

Here's a gist with a function defined via <cffunction> tags with a CFScript body that is 101 lines long.

I am using this .cflintrc file, in the same directory:

{
    "rule": [ ],
    "excludes": [ ],
    "includes": [
		{"code": "EXCESSIVE_FUNCTION_LENGTH"}
	],
    "inheritParent": false,
    "parameters": {}
}

Here's the output of my test run:

root@3200b7c82b5e:/app# wc -l test/cflint/scriptInFunction.cfm
101 test/cflint/scriptInFunction.cfm
root@3200b7c82b5e:/app# box cflint test/cflint/scriptInFunction.cfm

        Total Files:    1
        Total Lines:    102

root@3200b7c82b5e:/app#

It should be reporting a warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant