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

multiple location members in JSON output #158

Closed
bardware opened this issue Apr 30, 2016 · 3 comments
Closed

multiple location members in JSON output #158

bardware opened this issue Apr 30, 2016 · 3 comments

Comments

@bardware
Copy link

I was parsing the JSON output of CFLINT with Visual Basic. This didn't work with the JSON output by a recent CFLINT version, as there are multiple location members within a single error message. This seems to be limited to the PARSE_ERROR finding.

  "severity" : "ERROR",
  "id" : "PARSE_ERROR",
  "message" : "PARSE_ERROR",
  "category" : "CFLINT",
  "abbrev" : "PE",
  "location" : {
    "file" : "D:\projects\source\app\ApplicationConfigLoader.cfc\r\n",
    "fileName" : "ApplicationConfigLoader.cfc\r\n",
    "column" : "30",
    "line" : "25",
    "message" : "Unable to parse",
    "variable" : "",
    "expression" : "extraneous input '(' expecting {<EOF>, CONTAINS, GT, GTE, LTE, LT, EQ, NEQ, OR, EQV, XOR, AND, '.', '++', '--', '||', '&&', '[', '?'}"
  },
  "location" : {
    "file" : "D:\projects\source\app\ApplicationConfigLoader.cfc\r\n",
    "fileName" : "ApplicationConfigLoader.cfc\r\n",
    "column" : "30",
    "line" : "26",
    "message" : "Unable to parse",
    "variable" : "",
    "expression" : "extraneous input '(' expecting {<EOF>, CONTAINS, GT, GTE, LTE, LT, EQ, NEQ, OR, EQV, XOR, AND, '.', '++', '--', '||', '&&', '[', '?'}"
  }
}

ryaneberly added a commit that referenced this issue May 1, 2016
@ryaneberly
Copy link
Contributor

fixed in dev.branch

@bardware
Copy link
Author

bardware commented May 2, 2016

dev does compile but does not run. When I run maven -Dmaven.test.skip=true and use the jar I get the same error.
Tests fail like so:

java.lang.NoClassDefFoundError: org/jdom/JDOMException
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at cfml.parsing.cfmentat.tag.CFMLTags.register(CFMLTags.java:45)
    at cfml.parsing.CFMLSource.<init>(CFMLSource.java:24)
    at com.cflint.integration.TestCFMLParse.test(TestCFMLParse.java:11)

@ryaneberly
Copy link
Contributor

a clean build revealed my mistake. fixed. thanks.

ryaneberly added a commit that referenced this issue May 10, 2016
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