Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sorting 从Gradle插件生成CodeNarc可排序表报告_Sorting_Gradle_Report_Codenarc - Fatal编程技术网

Sorting 从Gradle插件生成CodeNarc可排序表报告

Sorting 从Gradle插件生成CodeNarc可排序表报告,sorting,gradle,report,codenarc,Sorting,Gradle,Report,Codenarc,在CodeNarc的网站上,他们列出了一种报告类型“” 我试图在通过Gradle(v6.8.1)运行CodeNarc时生成此报告类型,但该版本似乎不支持此类型 我希望这是所需的配置: apply plugin: 'groovy' apply plugin: 'codenarc' targetCompatibility = 1.8 sourceCompatibility = 1.8 configurations { compile.exclude module: 'groovy-tes

在CodeNarc的网站上,他们列出了一种报告类型“”

我试图在通过Gradle(v6.8.1)运行CodeNarc时生成此报告类型,但该版本似乎不支持此类型

我希望这是所需的配置:

apply plugin: 'groovy'
apply plugin: 'codenarc'

targetCompatibility = 1.8
sourceCompatibility = 1.8

configurations {
    compile.exclude module: 'groovy-test-junit5'
    compile.exclude module: 'groovy-test'
}

dependencies {
    compile 'org.codehaus.groovy:groovy-all:2.5.14'
    compile 'org.codehaus.groovy:groovy-dateutil:2.5.14'
    codenarc 'org.codenarc:CodeNarc:2.1.0'
}

codenarc {
    reportFormat = 'sortable'
}
但此错误与
>“sortable”不是有效的codenarc报告格式有关

显然,这不是正确的解决方案

还有人知道这是否可以通过Gradle实现吗