Skip to content

Commit

Permalink
Add qodana build for code analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
Andronnix committed Sep 25, 2024
1 parent 1e0966c commit 10319f3
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .teamcity/settings.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import jetbrains.buildServer.configs.kotlin.*
import jetbrains.buildServer.configs.kotlin.buildFeatures.PullRequests
import jetbrains.buildServer.configs.kotlin.buildFeatures.pullRequests
import jetbrains.buildServer.configs.kotlin.buildSteps.Qodana
import jetbrains.buildServer.configs.kotlin.buildSteps.gradle
import jetbrains.buildServer.configs.kotlin.buildSteps.qodana
import jetbrains.buildServer.configs.kotlin.buildSteps.script
import jetbrains.buildServer.configs.kotlin.triggers.schedule
import jetbrains.buildServer.configs.kotlin.triggers.vcs

version = "2023.05"
Expand Down Expand Up @@ -143,6 +146,53 @@ project {
}
}

buildType {
id("SecurityCheck")
name = "Security check with Qodana"

vcs {
cleanCheckout = true
root(DslContext.settingsRoot)
}

triggers {
vcs {
branchFilter = """
+:<default>
+:pull/*
""".trimIndent()
}

schedule {
daily {
hour = 8
}

branchFilter = "+:<default>"
}
}

features {
pullRequests {
provider = github {
authType = vcsRoot()
filterAuthorRole = PullRequests.GitHubRoleFilter.MEMBER_OR_COLLABORATOR
ignoreDrafts = true
}
}
}

steps {
qodana {
linter = jvm {
version = Qodana.JVMVersion.LATEST
}
inspectionProfile = default()
param("report-as-test-mode", "each-problem-is-test")
}
}
}

buildType {
id("Publish")
name = "Publish to Space"
Expand Down

0 comments on commit 10319f3

Please sign in to comment.