Skip to content

Commit

Permalink
refactor: simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 7, 2023
1 parent 96170aa commit c4174ed
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import org.archguard.scanner.core.sourcecode.CodeDatabaseRelation
import org.archguard.scanner.core.sourcecode.ContainerService

class ExtRuleAnalyser {
val webApiRuleSetProvider = WebApiRuleSetProvider()
val sqlRuleSetProvider = SqlRuleSetProvider()
private val webApiRuleSetProvider = WebApiRuleSetProvider()
private val sqlRuleSetProvider = SqlRuleSetProvider()

fun checkApi(services: List<ContainerService>): List<Issue> {
return WebApiRuleVisitor(services).visitor(listOf(webApiRuleSetProvider.get()))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
package cc.unitmesh.pick.picker

import chapi.domain.core.CodeContainer
import chapi.domain.core.CodeDataStruct
import kotlinx.serialization.Serializable
import kotlinx.serialization.Transient
import org.archguard.scanner.analyser.count.FileJob
import java.security.MessageDigest

@Serializable
class PickJob(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import org.archguard.rule.common.Language

class WorkerManager {
private val workers: Map<Language, LangWorker> = mapOf(
// todo: add more language support
Language.JAVA to JavaLangWorker(),
)

Expand Down

0 comments on commit c4174ed

Please sign in to comment.