Skip to content

Commit

Permalink
chore: remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch committed Oct 2, 2024
1 parent 27746b1 commit be2038c
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/main/kotlin/io/snyk/plugin/SnykBulkFileListener.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package io.snyk.plugin

import com.intellij.ide.impl.ProjectUtil
import com.intellij.openapi.project.Project
import com.intellij.openapi.roots.ProjectFileIndex
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.openapi.vfs.isFile
import com.intellij.openapi.vfs.newvfs.BulkFileListener
Expand Down
1 change: 0 additions & 1 deletion src/main/kotlin/io/snyk/plugin/events/SnykScanListener.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package io.snyk.plugin.events
import com.intellij.util.messages.Topic
import snyk.common.SnykError
import snyk.container.ContainerResult
import snyk.iac.IacResult

interface SnykScanListener {
companion object {
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/io/snyk/plugin/ui/UIUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ fun getReadOnlyClickableHtmlJEditorPaneFixedSize(
}

fun getStandardLayout(rowCount: Int = 2, columnCount: Int = 2) =
GridLayoutManager(rowCount, columnCount, Insets(5, 5, 5, 5), -1, -1)
GridLayoutManager(rowCount, columnCount, JBUI.insets(5), -1, -1)

fun getPanelWithColumns(rowCount: Int, columnCount: Int): JPanel =
JPanel().apply { layout = getStandardLayout(rowCount, columnCount) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,14 @@ import io.snyk.plugin.ui.wrapWithScrollPane
import org.jetbrains.annotations.TestOnly
import snyk.common.ProductType
import snyk.common.SnykError
import snyk.common.lsp.settings.FolderConfigSettings
import snyk.common.lsp.LanguageServerWrapper
import snyk.common.lsp.ScanIssue
import snyk.common.lsp.settings.FolderConfigSettings
import snyk.container.ContainerIssuesForImage
import snyk.container.ContainerResult
import snyk.container.ContainerService
import snyk.container.ui.ContainerImageTreeNode
import snyk.container.ui.ContainerIssueTreeNode
import snyk.iac.IacIssue
import snyk.iac.IacResult
import snyk.iac.ignorableErrorCodes
import java.awt.BorderLayout
import java.util.Objects.nonNull
import javax.swing.JPanel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import io.snyk.plugin.SnykFile
import io.snyk.plugin.getSnykCachedResults
import io.snyk.plugin.getSnykCachedResultsForProduct
import io.snyk.plugin.pluginSettings
import io.snyk.plugin.ui.PackageManagerIconProvider.Companion.getIcon
import io.snyk.plugin.ui.getDisabledIcon
import io.snyk.plugin.ui.snykCodeAvailabilityPostfix
import io.snyk.plugin.ui.toolwindow.nodes.leaf.SuggestionTreeNode
Expand Down
2 changes: 0 additions & 2 deletions src/main/kotlin/snyk/common/SnykCachedResults.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ import snyk.common.lsp.ScanIssue
import snyk.common.lsp.SnykScanParams
import snyk.container.ContainerResult
import snyk.container.ContainerService
import snyk.iac.IacResult
import java.util.concurrent.ConcurrentHashMap

@Service(Service.Level.PROJECT)
class SnykCachedResults(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import com.intellij.openapi.application.invokeLater
import com.intellij.openapi.project.DumbService
import com.intellij.openapi.project.Project
import com.intellij.openapi.roots.ProjectFileIndex
import com.intellij.openapi.roots.ProjectRootManager
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.openapi.vfs.VirtualFileManager
import com.intellij.openapi.vfs.readText
Expand Down

0 comments on commit be2038c

Please sign in to comment.