-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add linting in CI using Detekt with SARIF output #229
Conversation
793f928
to
0055cd5
Compare
uses: github/codeql-action/upload-sarif@v1 | ||
if: ${{ always() }} | ||
with: | ||
sarif_file: . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tool can only use a single directory/file as input and will recursively search for any .sarif
file. Using .
will use the project directory to search in, this will search all directories in the project which might be slow (relatively speaking) but it will at least find all sarif files, even if we add more tools.
@@ -70,5 +70,10 @@ subprojects { | |||
buildUponDefaultConfig = true | |||
ignoreFailures = true | |||
config = files("$rootDir/detekt.yml") | |||
basePath = rootDir.absolutePath |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^ for relative paths in the linter output
@@ -10,7 +10,7 @@ object Plugins { | |||
object Versions { | |||
const val kotlin = "1.4.30" | |||
const val binaryCompatibilityValidatorVersion = "0.5.0" | |||
const val detekt = "1.14.2" | |||
const val detekt = "1.16.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sarif supported starting from 1.15, updated to latest
0055cd5
to
453ec08
Compare
Adds linting using Detekt with SARIF files.
Part of #220