Skip to content

Commit eb22eda

Browse files
committed
chore: update detekt baselines
Signed-off-by: Sam Gammon <[email protected]>
1 parent 6b892c2 commit eb22eda

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

packages/cli/detekt-baseline.xml

+1-9
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,8 @@
1414
<ID>LargeClass:ToolShellCommand.kt$ToolShellCommand : AbstractSubcommand</ID>
1515
<ID>LoopWithTooManyJumpStatements:ToolShellCommand.kt$ToolShellCommand$while</ID>
1616
<ID>MagicNumber:ElideTool.kt$ElideTool$30</ID>
17-
<ID>MagicNumber:Mosaic.kt$.7f</ID>
18-
<ID>MagicNumber:Mosaic.kt$1234</ID>
1917
<ID>MagicNumber:Mosaic.kt$1_000</ID>
20-
<ID>MagicNumber:Mosaic.kt$20</ID>
21-
<ID>MagicNumber:Mosaic.kt$250</ID>
22-
<ID>MagicNumber:Mosaic.kt$2_500L</ID>
23-
<ID>MagicNumber:Mosaic.kt$4</ID>
2418
<ID>MagicNumber:Mosaic.kt$40</ID>
25-
<ID>MagicNumber:Mosaic.kt$4_000L</ID>
26-
<ID>MagicNumber:Mosaic.kt$50</ID>
2719
<ID>MagicNumber:Mosaic.kt$500L</ID>
2820
<ID>MagicNumber:NativeUtil.kt$NativeUtil$8192</ID>
2921
<ID>MagicNumber:RuntimeWorkdirManager.kt$RuntimeWorkdirManager$15</ID>
@@ -32,7 +24,6 @@
3224
<ID>MagicNumber:ToolShellCommand.kt$ToolShellCommand$40</ID>
3325
<ID>MatchingDeclarationName:SanityTests.kt$SanitySelfTest : SelfTest</ID>
3426
<ID>MaxLineLength:ToolShellCommand.kt$ToolShellCommand$" or: elide @|bold,fg(cyan) run|shell|serve|start|@ [OPTIONS] [@|bold,fg(cyan) -c|@|@|bold,fg(cyan) --code|@ CODE]"</ID>
35-
<ID>MaxLineLength:ToolShellCommand.kt$ToolShellCommand$logging.trace("Entered VM for script execution (language: ${primaryLanguage.id}). Consuming script from: '$label'")</ID>
3627
<ID>NestedBlockDepth:SelfTestCommand.kt$SelfTestCommand$override suspend fun CommandContext.invoke(state: ToolContext&lt;ToolState>): CommandResult</ID>
3728
<ID>ReturnCount:ExecutionController.kt$ExecutionController$private fun toHost(polyglotException: PolyglotException): Throwable</ID>
3829
<ID>ReturnCount:NativeUtil.kt$NativeUtil$@JvmStatic internal fun loadOrCopy( workdir: File, path: String, libName: String, loader: ClassLoader, forceCopy: Boolean = false, forceLoad: Boolean = false, loadFromPath: Boolean = true, ): Pair&lt;Boolean, Boolean></ID>
@@ -66,6 +57,7 @@
6657
<ID>TooGenericExceptionCaught:ToolShellCommand.kt$ToolShellCommand$ioe: Exception</ID>
6758
<ID>TooGenericExceptionThrown:NativeUtil.kt$NativeUtil$throw RuntimeException("An error occurred while getting the resources for $path", iox)</ID>
6859
<ID>TooManyFunctions:ToolShellCommand.kt$ToolShellCommand : AbstractSubcommand</ID>
60+
<ID>UnusedPrivateMember:NativeEngine.kt$NativeEngine$@JvmStatic private fun HostPlatform.loadNativeTooling(workdir: File, loader: ClassLoader)</ID>
6961
<ID>UnusedPrivateProperty:AbstractToolCommand.kt$AbstractToolCommand$// Initialization state. private val initialized: AtomicBoolean = AtomicBoolean(false)</ID>
7062
<ID>UnusedPrivateProperty:ExecutionController.kt$ExecutionController$private val tRunException: Lazy&lt;Value> = Lazy.of { loadClass("jdk.jshell.spi.ExecutionControl\$RunException") }</ID>
7163
<ID>UnusedPrivateProperty:RuntimeWorkdirManager.kt$RuntimeWorkdirManager.Companion$private const val tempDir = "temp"</ID>

packages/graalvm/detekt-baseline.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<CurrentIssues>
55
<ID>CyclomaticComplexMethod:AbstractVMEngine.kt$AbstractVMEngine.GuestVFSConfigurator$private fun resolveOsArch(): Pair&lt;String, String></ID>
66
<ID>CyclomaticComplexMethod:ConsoleIntrinsic.kt$ConsoleIntrinsic$internal fun formatLogComponent(arg: Any?): Any</ID>
7-
<ID>CyclomaticComplexMethod:NodeOperatingSystem.kt$NodeOperatingSystem.BaseOS$override fun getMember(key: String): Any</ID>
7+
<ID>CyclomaticComplexMethod:NodeOperatingSystem.kt$NodeOperatingSystem.ModuleBase$override fun getMember(key: String?): Any?</ID>
88
<ID>ForbiddenComment:HostVFS.kt$HostVFS$// @TODO: OS-specific? configurable?</ID>
99
<ID>ForbiddenComment:NettyHttpResponse.kt$NettyHttpResponse$// TODO: support JSON objects and other types of content</ID>
1010
<ID>ForbiddenComment:NodeOperatingSystem.kt$NodeOperatingSystem.BaseOS$// @TODO: implement 5 and 15 minute averages</ID>
@@ -38,6 +38,7 @@
3838
<ID>MatchingDeclarationName:VfsPlugin.kt$Vfs</ID>
3939
<ID>MaxLineLength:JsConcurrentMap.kt$JsConcurrentMap.Factory$*</ID>
4040
<ID>MaxLineLength:JsMutableMultiMap.kt$JsMutableMultiMap.Factory$@JvmStatic override</ID>
41+
<ID>MaxLineLength:NodeModuleConformanceTest.kt$NodeModuleConformanceTest$assertContains(require("node:$moduleName").memberKeys, member, "member '$member' should be present on module '$moduleName'")</ID>
4142
<ID>MaxLineLength:URLIntrinsicTest.kt$URLIntrinsicTest$"equal,https://dl.elide.dev/test?abc=123&amp;def=456,https://dl.elide.dev/test?abc=123&amp;def=456,true,URLs should be equal"</ID>
4243
<ID>MaxLineLength:URLIntrinsicTest.kt$URLIntrinsicTest$"equal,https://dl.elide.dev:123/test?abc=123&amp;def=456#hi,https://dl.elide.dev:123/test?abc=123&amp;def=456#hi,true,URLs should be equal"</ID>
4344
<ID>MaxLineLength:URLIntrinsicTest.kt$URLIntrinsicTest$"equal,https://user:[email protected]/test?abc=123&amp;def=456,https://user:[email protected]/test?abc=123&amp;def=456,true,URLs should be equal"</ID>
@@ -81,7 +82,7 @@
8182
<ID>TooManyFunctions:AbstractDelegateVFS.kt$AbstractDelegateVFS&lt;VFS> : GuestVFSAbstractBaseVFS</ID>
8283
<ID>TooManyFunctions:BaseMutableJsMultiMap.kt$BaseMutableJsMultiMap&lt;K: Any, V> : BaseJsMultiMapMutableMapMutableMultiMapLike</ID>
8384
<ID>TooManyFunctions:CompoundVFSImpl.kt$CompoundVFSImpl : AbstractBaseVFS</ID>
84-
<ID>TooManyFunctions:NodeOperatingSystem.kt$NodeOperatingSystem$BaseOS : OperatingSystemAPIProxyObject</ID>
85+
<ID>TooManyFunctions:NodeOperatingSystem.kt$NodeOperatingSystem$BaseOS : ModuleBaseOperatingSystemAPIProxyObject</ID>
8586
<ID>UnusedParameter:VfsPlugin.kt$Vfs$@Suppress("unused_parameter") builder: PolyglotEngineBuilder</ID>
8687
<ID>UnusedPrivateProperty:AbstractJsIntrinsicTest.kt$AbstractJsIntrinsicTest$private val testInject: Boolean = true</ID>
8788
<ID>UnusedPrivateProperty:JsRuntime.kt$JsRuntime.Companion$// Root where we can find runtime-related files. private const val EMBEDDED_ROOT = "/META-INF/elide/embedded/runtime/js"</ID>

0 commit comments

Comments
 (0)