forked from openedx/openedx-app-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [FC-0072] Static code analyzer (openedx#403)
* feat: detekt * refactor: Changes according to detekt warnings * refactor: Address NestedBlockDepth warnings by reducing block nesting * refactor: Changes according to detekt warnings * refactor: minor rule changes
- Loading branch information
1 parent
88dfc54
commit af3b8a9
Showing
336 changed files
with
3,328 additions
and
2,445 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Detekt | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: { } | ||
|
||
env: | ||
GRADLE_OPTS: -Dorg.gradle.daemon=false | ||
CI_GRADLE_ARG_PROPERTIES: --stacktrace | ||
|
||
jobs: | ||
linting: | ||
name: Run Detekt | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' # See 'Supported distributions' for available options | ||
java-version: '17' | ||
|
||
- name: Run Detekt | ||
run: ./gradlew detektAll | ||
|
||
- name: Upload report | ||
uses: github/codeql-action/upload-sarif@v3 | ||
if: success() || failure() | ||
with: | ||
sarif_file: build/reports/detekt/detekt.sarif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.