-
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.
- Remove "legacy" code from SRGDataProvider - Add code quality with Detekt
- Loading branch information
Showing
87 changed files
with
1,856 additions
and
3,732 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,31 @@ | ||
# .editorconfig | ||
|
||
# see http://EditorConfig.org | ||
|
||
# This is the file in the root of the project. | ||
# For sub folders you can have other files that override only some settings. | ||
# For these, this settings should be false. | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
max_line_length = 150 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[Makefile] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
[*.{rb,yml}] | ||
indent_size = 2 | ||
|
||
[*.properties] | ||
# Exception for Java properties files should be encoded latin1 (aka iso8859-1) | ||
charset = latin1 |
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,75 @@ | ||
name: Code quality | ||
on: | ||
merge_group: | ||
pull_request: | ||
types: [synchronize, opened, reopened, ready_for_review] | ||
|
||
jobs: | ||
android-lint: | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- uses: reviewdog/action-setup@v1 | ||
- name: Run android linter | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: lint | ||
- name: review linter | ||
uses: dvdandroid/action-android-lint@master | ||
with: | ||
github_token: ${{ secrets.RTS_DEVOPS_GITHUB_TOKEN }} | ||
lint_xml_file: ./build/reports/android-lint.xml | ||
reporter: github-pr-review | ||
- name: check linter | ||
uses: dvdandroid/action-android-lint@master | ||
with: | ||
github_token: ${{ secrets.RTS_DEVOPS_GITHUB_TOKEN }} | ||
lint_xml_file: ./build/reports/android-lint.xml | ||
reporter: github-pr-check | ||
|
||
detekt: | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- uses: reviewdog/action-setup@v1 | ||
- name: review detekt | ||
uses: alaegin/[email protected] | ||
with: | ||
github_token: ${{ secrets.RTS_DEVOPS_GITHUB_TOKEN }} | ||
detekt_config: config/detekt.yml | ||
reviewdog_reporter: github-pr-review | ||
detekt_excludes: "**/build/**,**/.idea/**,**/buildSrc/**,**/androidTest/**,**/test/**,**/resources/**" | ||
- name: check detekt | ||
uses: alaegin/[email protected] | ||
with: | ||
github_token: ${{ secrets.RTS_DEVOPS_GITHUB_TOKEN }} | ||
detekt_config: config/detekt.yml | ||
reviewdog_reporter: github-pr-check | ||
detekt_excludes: "**/build/**,**/.idea/**,**/buildSrc/**,**/androidTest/**,**/test/**,**/resources/**" | ||
|
||
android-unit-test: | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- name: Run android local unit test | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: testDebug |
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
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.