This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 691
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Configure Lint properly * Disable "ComposeViewModelInjection" for `:app` and add a baseline * Add Detekt baseline * Add `detektBaseline.sh` script * Add Qodana * Upload Qodana report * Configure QODANA reports
- Loading branch information
1 parent
f8d697d
commit d0aa12e
Showing
10 changed files
with
4,786 additions
and
734 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
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,25 @@ | ||
name: Qodana | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- 'releases/*' | ||
|
||
jobs: | ||
qodana: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
checks: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit | ||
fetch-depth: 0 # a full history is required for pull request analysis | ||
- name: 'Qodana Scan' | ||
uses: JetBrains/qodana-action@v2023.2 | ||
env: | ||
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,19 @@ | ||
#!/bin/bash | ||
|
||
# ------------------- | ||
# 0. ROOT DIRECTORY CHECK | ||
# ------------------- | ||
|
||
# Check if the script is being run from the root directory of the repo | ||
if [ ! -f "settings.gradle.kts" ]; then | ||
echo "ERROR:" | ||
echo "Please run this script from the root directory of the repo." | ||
exit 1 | ||
fi | ||
|
||
|
||
./gradlew detektBaseline || exit 0 | ||
git add config/detekt/baseline.yml || exit 0 | ||
git commit -m "Add Detekt baseline" || exit 0 | ||
echo "Detekt baseline added." | ||
echo "WARNING: Commit made. You need to push it" |
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
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,16 @@ | ||
#!/bin/bash | ||
|
||
# ------------------- | ||
# 0. ROOT DIRECTORY CHECK | ||
# ------------------- | ||
|
||
# Check if the script is being run from the root directory of the repo | ||
if [ ! -f "settings.gradle.kts" ]; then | ||
echo "ERROR:" | ||
echo "Please run this script from the root directory of the repo." | ||
exit 1 | ||
fi | ||
|
||
|
||
./gradlew lintR | ||
open build/reports/lint/lint.html |