Skip to content

Commit

Permalink
chore: check lint
Browse files Browse the repository at this point in the history
  • Loading branch information
RyuNen344 committed Oct 24, 2024
1 parent 959b40c commit 5581a5b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cat app/build/reports/lint-results-debug.sarif | reviewdog -f=sarif -name="android lint" -reporter=github-pr-check
cat build/reports/detekt/detekt.xml | reviewdog -f=checkstyle -name="detekt" -reporter=github-pr-check
cat app/build/reports/lint-results-debug.sarif | reviewdog -f=sarif -name="android lint" -reporter=github-pr-review;
cat build/reports/detekt/detekt.xml | reviewdog -f=checkstyle -name="detekt" -reporter=github-pr-review;
- name: run reviewdog suggest
if: ${{ !cancelled() }}
env:
Expand All @@ -65,7 +65,7 @@ jobs:
- uses: EnricoMi/publish-unit-test-result-action@v2
if: ${{ !cancelled() }}
with:
check_name: unit-test
check_name: unit-test-result
files: |
**/test-results/**/*.xml
Expand All @@ -82,6 +82,6 @@ jobs:
- uses: EnricoMi/publish-unit-test-result-action@v2
if: ${{ !cancelled() }}
with:
check_name: android-test
check_name: android-test-result
files: |
**/outputs/androidTest-results/connected/**/*.xml
4 changes: 2 additions & 2 deletions .github/workflows/stability.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- uses: EnricoMi/publish-unit-test-result-action@v2
if: ${{ !cancelled() }}
with:
check_name: unit-test
check_name: unit-test-result
files: |
**/test-results/**/*.xml
Expand All @@ -56,6 +56,6 @@ jobs:
- uses: EnricoMi/publish-unit-test-result-action@v2
if: ${{ !cancelled() }}
with:
check_name: android-test
check_name: android-test-result
files: |
**/outputs/androidTest-results/connected/**/*.xml
6 changes: 4 additions & 2 deletions app/src/main/java/io/github/ryunen344/suburi/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ import io.github.ryunen344.suburi.ui.theme.SuburiTheme
@AndroidEntryPoint
class MainActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {

override fun onCreate(savedInstanceState:
Bundle?) {
installSplashScreen()
super.onCreate(savedInstanceState)
enableEdgeToEdge()
Expand All @@ -45,7 +47,7 @@ fun Greeting(name: String, modifier: Modifier = Modifier) {

@Preview(showBackground = true)
@Composable
private fun GreetingPreview() {
fun GreetingPreview() {
SuburiTheme {
Greeting("Android")
}
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<resources>
<string name="app_name">Suburi</string>
</resources>
<string name="unused_res">Test Lint</string>
</resources>

0 comments on commit 5581a5b

Please sign in to comment.