-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdetekt-baseline.xml
More file actions
83 lines (83 loc) · 10.3 KB
/
Copy pathdetekt-baseline.xml
File metadata and controls
83 lines (83 loc) · 10.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?xml version="1.0" ?>
<SmellBaseline>
<ManuallySuppressedIssues/>
<CurrentIssues>
<ID>ComplexCondition:FixtureTests.kt$FixtureTests$expected.has("isComplete") && !expected.get("isComplete").asBoolean && expected.has("hasHeaders") && !expected.get("hasHeaders").asBoolean</ID>
<ID>CyclomaticComplexMethod:EditorConfiguration.kt$EditorConfiguration$override fun equals(other: Any?): Boolean</ID>
<ID>CyclomaticComplexMethod:FixtureTests.kt$FixtureTests$@Test fun `request parsing - all incremental cases pass`()</ID>
<ID>CyclomaticComplexMethod:HTTPRequestSerializer.kt$HTTPRequestSerializer$fun parseHeaders(data: ByteArray): HeaderParseResult</ID>
<ID>CyclomaticComplexMethod:HttpServer.kt$HttpServer$private suspend fun handleRequest(socket: Socket)</ID>
<ID>CyclomaticComplexMethod:MultipartPart.kt$MultipartPart.Companion$fun parseChunked( source: RequestBody.FileBacked, boundary: String ): List<MultipartPart></ID>
<ID>ExplicitItLambdaParameter:EditorAssetsLibrary.kt$EditorAssetsLibrary${ str, it -> str + "%02x".format(it) }</ID>
<ID>FunctionNaming:EditorURLCache.kt$EditorURLCache$private fun __store( response: EditorURLResponse, url: String, httpMethod: EditorHttpMethod, currentDate: Date )</ID>
<ID>LongMethod:FixtureTests.kt$FixtureTests$@Test fun `request parsing - all basic cases pass`()</ID>
<ID>LongMethod:FixtureTests.kt$FixtureTests$@Test fun `request parsing - all incremental cases pass`()</ID>
<ID>LongMethod:HTTPRequestParser.kt$HTTPRequestParser$fun append(data: ByteArray): Unit</ID>
<ID>LongMethod:HTTPRequestSerializer.kt$HTTPRequestSerializer$fun parseHeaders(data: ByteArray): HeaderParseResult</ID>
<ID>LongMethod:HttpServer.kt$HttpServer$private suspend fun handleRequest(socket: Socket)</ID>
<ID>LongMethod:MultipartPart.kt$MultipartPart.Companion$fun parse( source: RequestBody, bodyData: ReadOnlyBytes, bodyFileOffset: Long, boundary: String ): List<MultipartPart></ID>
<ID>LongMethod:MultipartPart.kt$MultipartPart.Companion$fun parseChunked( source: RequestBody.FileBacked, boundary: String ): List<MultipartPart></ID>
<ID>LongParameterList:EditorService.kt$EditorService.Companion$( context: Context, configuration: EditorConfiguration, httpClient: EditorHTTPClientProtocol? = null, cachePolicy: EditorCachePolicy = EditorCachePolicy.Always, coroutineScope: CoroutineScope, storageRoot: File? = null, tempStorageRoot: File? = null, cacheRoot: File? = null )</ID>
<ID>LongParameterList:HttpServer.kt$HttpServer$( val name: String, private val requestedPort: Int = 0, private val externallyAccessible: Boolean, private val requiresAuthentication: Boolean = true, private val maxConnections: Int = DEFAULT_MAX_CONNECTIONS, private val maxBodySize: Long = DEFAULT_MAX_BODY_SIZE, private val readTimeoutMs: Int = DEFAULT_READ_TIMEOUT_MS, private val idleTimeoutMs: Int = DEFAULT_IDLE_TIMEOUT_MS, private val cacheDir: File? = null, private val handler: suspend (HttpRequest) -> HttpResponse )</ID>
<ID>LoopWithTooManyJumpStatements:HTTPRequestParser.kt$HTTPRequestParser$for</ID>
<ID>LoopWithTooManyJumpStatements:HTTPRequestSerializer.kt$HTTPRequestSerializer$for</ID>
<ID>LoopWithTooManyJumpStatements:HeaderValue.kt$HeaderValue$while</ID>
<ID>LoopWithTooManyJumpStatements:HttpServer.kt$HttpServer$while</ID>
<ID>LoopWithTooManyJumpStatements:HttpServer.kt$HttpServer.Companion$for</ID>
<ID>LoopWithTooManyJumpStatements:MultipartPart.kt$MultipartPart.Companion$for</ID>
<ID>LoopWithTooManyJumpStatements:MultipartPart.kt$MultipartPart.Companion$while</ID>
<ID>MaxLineLength:EditorConfiguration.kt$EditorConfiguration.Builder$fun setNamespaceExcludedPaths(namespaceExcludedPaths: Array<String>)</ID>
<ID>MaxLineLength:EditorConfiguration.kt$EditorConfiguration.Companion$fun</ID>
<ID>MaxLineLength:EditorHTTPClientTest.kt$EditorHTTPClientTest$val wpErrorJson = """{"code": "rest_invalid_param", "message": "Invalid parameter(s): title", "data": {"status": 400, "params": {"title": "Title is required."}}}"""</ID>
<ID>MaxLineLength:EditorHTTPClientTest.kt$EditorHTTPClientTest$val wpErrorJson = """{"code": "rest_invalid_param", "message": "Invalid parameter(s): title, content", "data": {"status": 400}, "additional_errors": [{"code": "rest_invalid_field", "message": "Content is required."}]}"""</ID>
<ID>MaxLineLength:EditorSettingsTest.kt$EditorSettingsTest$val jsonString = """{"styles": [{"css": ".theme-class { background: blue; }", "isGlobalStyles": true}, {"css": ".another { margin: 10px; }", "isGlobalStyles": false}]}"""</ID>
<ID>MaxLineLength:EditorSettingsTest.kt$EditorSettingsTest$val jsonString = """{"styles": [{"css": "body { color: red; }", "isGlobalStyles": true}, {"css": "h1 { font-size: 2em; }", "isGlobalStyles": false}]}"""</ID>
<ID>MaxLineLength:EditorSettingsTest.kt$EditorSettingsTest$val jsonString = """{"styles": [{"css": null, "isGlobalStyles": true}, {"css": "h1 { font-size: 2em; }", "isGlobalStyles": false}]}"""</ID>
<ID>MaxLineLength:GutenbergView.kt$GutenbergView$constructor</ID>
<ID>MaxLineLength:HttpServerAuthenticationTests.kt$HttpServerAuthenticationTests$val raw = "GET /test HTTP/1.1\r\nHost: 127.0.0.1\r\nProxy-Authorization: Bearer ${server.token}\r\nRelay-Authorization: Bearer wrong\r\n\r\n"</ID>
<ID>MaxLineLength:RESTAPIRepositoryTest.kt$RESTAPIRepositoryTest$val rawJSON = """{"styles":[{"css":".theme-style{color:blue}","isGlobalStyles":true},{"css":".another{margin:0}","isGlobalStyles":false}]}"""</ID>
<ID>MaxLineLength:RequestBody.kt$Buffer$internal</ID>
<ID>NestedBlockDepth:EditorAssetsLibrary.kt$EditorAssetsLibrary$private fun cleanupOldCache()</ID>
<ID>NestedBlockDepth:FileCache.kt$FileCache$fun copyToCache(context: Context, uri: Uri, maxSizeBytes: Long = DEFAULT_MAX_FILE_SIZE): Uri?</ID>
<ID>NestedBlockDepth:FileCache.kt$FileCache$private fun getFileSize(context: Context, uri: Uri): Long?</ID>
<ID>NestedBlockDepth:FixtureTests.kt$FixtureTests$@Test fun `multipart parsing - all cases pass`()</ID>
<ID>NestedBlockDepth:FixtureTests.kt$FixtureTests$@Test fun `request parsing - all incremental cases pass`()</ID>
<ID>NestedBlockDepth:MultipartPart.kt$MultipartPart.Companion$fun parseChunked( source: RequestBody.FileBacked, boundary: String ): List<MultipartPart></ID>
<ID>PrintStackTrace:GutenbergView.kt$GutenbergView$e</ID>
<ID>ReturnCount:GutenbergView.kt$GutenbergView.<no name provided>$override fun shouldOverrideUrlLoading(view: WebView?, request: WebResourceRequest): Boolean</ID>
<ID>ReturnCount:HTTPRequestSerializer.kt$HTTPRequestSerializer$fun parseHeaders(data: ByteArray): HeaderParseResult</ID>
<ID>ReturnCount:HttpServer.kt$HttpServer$private suspend fun handleRequest(socket: Socket)</ID>
<ID>ReturnCount:ParsedHTTPRequest.kt$ParsedHTTPRequest.Companion$private fun extractBoundary(contentType: String): String?</ID>
<ID>SwallowedException:EditorAssetsLibrary.kt$EditorAssetsLibrary$e: Exception</ID>
<ID>SwallowedException:EditorConfiguration.kt$EditorConfiguration$e: Exception</ID>
<ID>SwallowedException:EditorDependenciesSerializer.kt$EditorDependenciesSerializer$e: Exception</ID>
<ID>SwallowedException:EditorHTTPClient.kt$EditorHTTPClient$e: Exception</ID>
<ID>SwallowedException:EditorHTTPClient.kt$EditorHTTPClient$e: JsonSyntaxException</ID>
<ID>SwallowedException:EditorURLResponse.kt$EditorURLResponse$e: Exception</ID>
<ID>SwallowedException:LocalEditorAssetManifest.kt$LocalEditorAssetManifest$e: Exception</ID>
<ID>ThrowsCount:HTTPRequestSerializer.kt$HTTPRequestSerializer$internal fun validateContentLength(value: String, existing: Long?): Long</ID>
<ID>ThrowsCount:MultipartPart.kt$MultipartPart.Companion$fun parse( source: RequestBody, bodyData: ReadOnlyBytes, bodyFileOffset: Long, boundary: String ): List<MultipartPart></ID>
<ID>ThrowsCount:MultipartPart.kt$MultipartPart.Companion$fun parseChunked( source: RequestBody.FileBacked, boundary: String ): List<MultipartPart></ID>
<ID>ThrowsCount:MultipartPart.kt$MultipartPart.Companion$private fun parsePartHeaders(headerData: ByteArray, body: RequestBody): MultipartPart</ID>
<ID>ThrowsCount:ParsedHTTPRequest.kt$ParsedHTTPRequest$fun multipartParts(): List<MultipartPart></ID>
<ID>TooGenericExceptionCaught:CachedAssetRequestInterceptor.kt$CachedAssetRequestInterceptor$e: Exception</ID>
<ID>TooGenericExceptionCaught:EditorAssetsLibrary.kt$EditorAssetsLibrary$e: Exception</ID>
<ID>TooGenericExceptionCaught:EditorConfiguration.kt$EditorConfiguration$e: Exception</ID>
<ID>TooGenericExceptionCaught:EditorDependenciesSerializer.kt$EditorDependenciesSerializer$e: Exception</ID>
<ID>TooGenericExceptionCaught:EditorHTTPClient.kt$EditorHTTPClient$e: Exception</ID>
<ID>TooGenericExceptionCaught:EditorURLResponse.kt$EditorURLResponse$e: Exception</ID>
<ID>TooGenericExceptionCaught:FileCache.kt$FileCache$e: Exception</ID>
<ID>TooGenericExceptionCaught:GutenbergView.kt$GutenbergView$e: Exception</ID>
<ID>TooGenericExceptionCaught:HttpServer.kt$HttpServer$e: Exception</ID>
<ID>TooGenericExceptionCaught:LocalEditorAssetManifest.kt$LocalEditorAssetManifest$e: Exception</ID>
<ID>TooGenericExceptionThrown:EditorAssetsLibrary.kt$EditorAssetsLibrary$throw Exception("Failed to fetch asset: $httpURL (${connection.responseCode})")</ID>
<ID>TooGenericExceptionThrown:EditorAssetsLibrary.kt$EditorAssetsLibrary$throw Exception("Failed to fetch manifest: ${connection.responseCode}")</ID>
<ID>TooManyFunctions:GutenbergView.kt$GutenbergView : FrameLayout</ID>
<ID>UnusedParameter:EditorService.kt$EditorService.Companion$coroutineScope: CoroutineScope</ID>
<ID>UnusedPrivateMember:GutenbergView.kt$GutenbergView.Companion$private fun cleanupWarmup()</ID>
<ID>UnusedPrivateProperty:GutenbergView.kt$GutenbergView.Companion$private const val ASSET_LOADING_TIMEOUT_MS = 5000L</ID>
<ID>UseCheckOrError:TestResources.kt$TestResources$throw IllegalStateException( "Could not find iOS test resources. Tried: ${possiblePaths.map { it.absolutePath }}" )</ID>
<ID>UseRequire:EditorAssetsLibrary.kt$EditorAssetsLibrary$throw IllegalArgumentException("Unsupported URL for caching: $httpURL")</ID>
<ID>VariableNaming:HttpServer.kt$HttpServer$private val TAG = "GutenbergKit.HTTP"</ID>
</CurrentIssues>
</SmellBaseline>