File tree 4 files changed +8
-4
lines changed
4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 2
2
# https://github.com/detekt/detekt/blob/master/detekt-core/src/main/resources/default-detekt-config.yml
3
3
4
4
build :
5
- maxIssues : 8 # todo: zero out
5
+ maxIssues : 6 # todo: zero out
6
6
7
7
formatting :
8
8
Indentation :
@@ -41,6 +41,10 @@ exceptions:
41
41
excludes : [ '**/test/**' ]
42
42
43
43
complexity :
44
+ NestedBlockDepth :
45
+ threshold : 5
46
+ TooManyFunctions :
47
+ thresholdInClasses : 15
44
48
LongParameterList :
45
49
functionThreshold : 8
46
50
LongMethod :
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ import spp.cli.commands.developer.view.SubscribeView
44
44
45
45
object Main {
46
46
47
- lateinit var args: Array <String >
47
+ private lateinit var args: Array <String >
48
48
49
49
@JvmStatic
50
50
fun main (args : Array <String >) {
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ object ExitManager {
41
41
fun exitProcess (e : List <Error >): Nothing {
42
42
echo(e[0 ].message, err = true )
43
43
if (standalone) exitProcess(- 1 )
44
- throw Exception (e[0 ].message)
44
+ throw IllegalStateException (e[0 ].message)
45
45
}
46
46
47
47
private fun echo (
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import java.io.OutputStream
28
28
import java.io.PrintStream
29
29
import kotlin.reflect.KClass
30
30
31
- abstract class CLIIntegrationTest {
31
+ open class CLIIntegrationTest {
32
32
companion object {
33
33
init {
34
34
ExitManager .standalone = false
You can’t perform that action at this time.
0 commit comments