Skip to content

Commit 0085ee5

Browse files
committed
supress false postitive detekt issues
1 parent 4f60b93 commit 0085ee5

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLspService.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ class AmazonQLspService @VisibleForTesting constructor(
331331
private const val RESTART_WINDOW_MS = 3 * 60 * 1000
332332
fun getInstance(project: Project) = project.service<AmazonQLspService>()
333333

334+
@Suppress("RedundantSuspendModifier")
334335
suspend fun <T> executeAsyncIfRunning(project: Project, runnable: suspend AmazonQLspService.(AmazonQLanguageServer) -> T): T? =
335336
project.serviceIfCreated<AmazonQLspService>()?.executeIfRunning(runnable)
336337
}

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/artifacts/ArtifactHelper.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ class ArtifactHelper(private val lspArtifactsPath: Path = DEFAULT_ARTIFACT_PATH,
110110
return !hasInvalidFiles
111111
}
112112

113+
@Suppress("RedundantSuspendModifier")
113114
suspend fun tryDownloadLspArtifacts(project: Project, targetVersion: Version, target: VersionTarget): Path? {
114115
val destinationPath = lspArtifactsPath.resolve(targetVersion.serverVersion.toString())
115116

plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/services/lambda/Lambda.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ object Lambda {
6464
}?.isHandlerValid(project, handler) == true
6565
}
6666

67-
@Suppress("MissingRecentApi")
67+
@Suppress("MissingRecentApi", "UnusedPrivateMember")
6868
private fun findSamBuildContents(project: Project): Collection<VirtualFile> =
6969
ModuleManager.getInstance(project).modules.flatMap { findSamBuildContents(it) }
7070

0 commit comments

Comments
 (0)