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

Catch java exception when try to check folder #705

Open
spanteleyko opened this issue Apr 19, 2021 · 2 comments
Open

Catch java exception when try to check folder #705

spanteleyko opened this issue Apr 19, 2021 · 2 comments

Comments

@spanteleyko
Copy link

Hello
I have some error when I Try to check directory:
java -jar c:\temp\cflint-1.5.0-all.jar -folder c:\repo\fork\ -quiet -text -stdout

java.lang.ClassCastException: cfml.parsing.cfscript.CFFunctionExpression cannot be cast to cfml.parsing.cfscript.CFIdentifier at cfml.parsing.cfscript.CFFullVarExpression.getIdentifier(CFFullVarExpression.java:31) at com.cflint.plugins.core.ArgVarChecker.expression(ArgVarChecker.java:32) at com.cflint.CFLint.process(CFLint.java:1107) at com.cflint.CFLint.process(CFLint.java:1145) at com.cflint.CFLint.process(CFLint.java:772) at com.cflint.CFLint.process(CFLint.java:509) at com.cflint.CFLint.processStack(CFLint.java:415) at com.cflint.CFLint.process(CFLint.java:516) at com.cflint.CFLint.processStack(CFLint.java:415) at com.cflint.CFLint.process(CFLint.java:543) at com.cflint.CFLint.processStack(CFLint.java:398) at com.cflint.CFLint.process(CFLint.java:341) at com.cflint.CFLint.scan(CFLint.java:294) at com.cflint.CFLint.scan(CFLint.java:280) at com.cflint.CFLint.scan(CFLint.java:280) at com.cflint.CFLint.scan(CFLint.java:204) at com.cflint.api.CFLintAPI.scan(CFLintAPI.java:66) at com.cflint.cli.CFLintCLI.execute(CFLintCLI.java:376) at com.cflint.cli.CFLintCLI.main(CFLintCLI.java:343)

@ryaneberly
Copy link
Contributor

Can you provide an example of the code that reproduces the issue?

@spanteleyko
Copy link
Author

spanteleyko commented Apr 21, 2021

I have an example function:

image

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

2 participants