-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8938457
commit a647d8c
Showing
5 changed files
with
47 additions
and
12 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,35 @@ | ||
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 | ||
permissions: | ||
security-events: write | ||
|
||
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
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
10 changes: 7 additions & 3 deletions
10
core/src/main/java/org/openedx/core/domain/model/AppConfig.kt
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 |
---|---|---|
@@ -1,14 +1,18 @@ | ||
package org.openedx.core.domain.model | ||
|
||
import java.io.Serializable | ||
import com.google.gson.annotations.SerializedName | ||
|
||
data class AppConfig( | ||
val courseDatesCalendarSync: CourseDatesCalendarSync = CourseDatesCalendarSync(), | ||
) : Serializable | ||
) | ||
|
||
data class CourseDatesCalendarSync( | ||
@SerializedName("is_enabled") | ||
val isEnabled: Boolean = false, | ||
@SerializedName("is_self_paced_enabled") | ||
val isSelfPacedEnabled: Boolean = false, | ||
@SerializedName("is_instructor_paced_enabled") | ||
val isInstructorPacedEnabled: Boolean = false, | ||
@SerializedName("is_deep_link_enabled") | ||
val isDeepLinkEnabled: Boolean = false, | ||
) : Serializable | ||
) |
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