-
Notifications
You must be signed in to change notification settings - Fork 84
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
Exception Writing Output From API #691
Comments
Looks like that method is used two places |
Yeah, I tried all of the ones in https://github.com/cflint/CFLint/tree/master/src/main/resources/findbugs |
I get this error if I use plain.xsl or default.xsl and writeHTML or writeFindBugsXml
This is the stack trace from writeHTML():
FWIW, I'm running this from a gradle task using Gradle 6.7: buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.github.cflint:CFLint:1.5.0'
}
}
import com.cflint.api.CFLintAPI
import com.cflint.api.CFLintResult
import com.cflint.Levels
task cflint(group: 'verification') {
doFirst {
mkdir "${project.buildDir}/reports/cflint"
}
doLast {
CFLintAPI api = new CFLintAPI()
def scanFiles = new ArrayList<String>()
fileTree("src").each {
if (it.name.toLowerCase().endsWithAny("cfc","cfm")) {
scanFiles.add(it.absolutePath)
}
}
CFLintResult result = api.scan(scanFiles)
result.writeXml(
file("${project.buildDir}/reports/cflint/main.xml").newWriter()
)
/*
--- these both fail ---
result.writeHTML(
"plain.xsl",
file("${project.buildDir}/reports/cflint/main.html").newWriter()
)
result.writeFindBugsXml(file("${project.buildDir}/reports/cflint/main.xml").newWriter())
*/
}
} |
I'm utilizing the CFLintAPI, and am attempting to call result.writeHTML("default.xsl",writer) - it doesn't matter which htmlStyle value I provide, I get:
net.sf.saxon.trans.XPathException: Values of 'standalone' and 'omit-xml-declaration' conflict
The text was updated successfully, but these errors were encountered: