-
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.
- Loading branch information
1 parent
afb8941
commit 301c579
Showing
168 changed files
with
13,614 additions
and
6 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,27 @@ | ||
<?xml version="1.0" ?> | ||
<SmellBaseline> | ||
<ManuallySuppressedIssues></ManuallySuppressedIssues> | ||
<CurrentIssues> | ||
<ID>Indentation:BrowserPage.kt$ </ID> | ||
<ID>MagicNumber:AndroidThumbnailProvider.kt$AndroidThumbnailProvider$0.07</ID> | ||
<ID>MagicNumber:Argon2.kt$Argon2$3</ID> | ||
<ID>MagicNumber:Argon2.kt$Argon2$4</ID> | ||
<ID>MagicNumber:DatabaseFileSynchronization.kt$DatabaseFileSynchronization$2000</ID> | ||
<ID>MagicNumber:Extensions.kt$0xFF</ID> | ||
<ID>MagicNumber:Extensions.kt$16</ID> | ||
<ID>MaxLineLength:CipherEntityGrid.kt$if (isSelected) Icons.Default.CheckCircle else Icons.AutoMirrored.Default.InsertDriveFile</ID> | ||
<ID>MaximumLineLength:CipherEntityGrid.kt$ </ID> | ||
<ID>MayBeConst:Vault.kt$Vault.Companion$internal val realmSchemaVersion = 2L</ID> | ||
<ID>ModifierMissing:MainView.kt$DirectorySelection</ID> | ||
<ID>ModifierMissing:MainView.kt$MainView</ID> | ||
<ID>ModifierMissing:MainView.kt$PasswordField</ID> | ||
<ID>ModifierMissing:MainView.kt$VaultCreation</ID> | ||
<ID>ModifierMissing:MainView.kt$VaultUnlocking</ID> | ||
<ID>ModifierNotUsedAtRoot:VideoContentView.kt$modifier = modifier</ID> | ||
<ID>ParameterNaming:PasswordField.kt$onKeyboardDone</ID> | ||
<ID>UnusedPrivateProperty:SchedulerFake.kt$SchedulerFake$i</ID> | ||
<ID>ViewModelForwarding:MainView.kt$DirectorySelection(viewModel)</ID> | ||
<ID>ViewModelForwarding:MainView.kt$VaultCreation(viewModel)</ID> | ||
<ID>ViewModelForwarding:MainView.kt$VaultUnlocking(viewModel)</ID> | ||
</CurrentIssues> | ||
</SmellBaseline> |
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,115 @@ | ||
# SPDX-FileCopyrightText: 2022 Lukas Pieper | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
output-reports: | ||
active: true | ||
exclude: | ||
- 'TxtOutputReport' | ||
- 'XmlOutputReport' | ||
|
||
complexity: | ||
# Missing ignoreAnnotated for LongMethod and CyclomaticComplexMethod to ignore Composable functions | ||
CyclomaticComplexMethod: | ||
threshold: 30 | ||
LongMethod: | ||
threshold : 300 | ||
LongParameterList: | ||
functionThreshold: 10 | ||
ignoreAnnotated: [ 'Composable' ] | ||
TooManyFunctions: | ||
active: false | ||
|
||
exceptions: | ||
TooGenericExceptionCaught: | ||
active: false | ||
|
||
formatting: | ||
MaximumLineLength: | ||
excludes: [ '**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**' ] | ||
NoWildcardImports: | ||
active: false | ||
|
||
naming: | ||
MatchingDeclarationName: | ||
excludes: [ '**/ui/controls/**' ] | ||
FunctionNaming: | ||
ignoreAnnotated: [ 'Composable' ] | ||
|
||
style: | ||
ForbiddenComment: | ||
active: false | ||
MagicNumber: | ||
excludes: [ '**/ui/**', '**.kts', '**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**' ] | ||
MaxLineLength: | ||
excludes: [ '**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**' ] | ||
UnnecessaryAbstractClass: | ||
excludes: [ '**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**' ] | ||
WildcardImport: | ||
active: false | ||
ReturnCount: | ||
max: 3 | ||
UnusedPrivateMember: | ||
ignoreAnnotated: | ||
- 'Preview' | ||
- 'PagePreviews' | ||
- 'ElementPreviews' | ||
|
||
Compose: | ||
ComposableAnnotationNaming: | ||
active: true | ||
CompositionLocalAllowlist: | ||
active: false | ||
# allowedCompositionLocals: LocalSomething,LocalSomethingElse | ||
CompositionLocalNaming: | ||
active: true | ||
ContentEmitterReturningValues: | ||
active: true | ||
# You can optionally add your own composables here | ||
# contentEmitters: MyComposable,MyOtherComposable | ||
DefaultsVisibility: | ||
active: true | ||
ModifierClickableOrder: | ||
active: true | ||
ModifierComposable: | ||
active: true | ||
ModifierMissing: | ||
active: true | ||
ModifierNaming: | ||
active: true | ||
ModifierNotUsedAtRoot: | ||
active: true | ||
# You can optionally add your own composables here | ||
# contentEmitters: MyComposable,MyOtherComposable | ||
ModifierReused: | ||
active: true | ||
ModifierWithoutDefault: | ||
active: true | ||
MultipleEmitters: | ||
active: false | ||
# You can optionally add your own composables here | ||
# contentEmitters: MyComposable,MyOtherComposable | ||
MutableParams: | ||
active: false | ||
ComposableNaming: | ||
active: true | ||
# You can optionally disable the checks in this rule for regex matches against the composable name (e.g. molecule presenters) | ||
# allowedComposableFunctionNames: .*Presenter,.*MoleculePresenter | ||
ComposableParamOrder: | ||
active: true | ||
PreviewAnnotationNaming: | ||
active: false | ||
PreviewPublic: | ||
active: true | ||
RememberMissing: | ||
active: true | ||
RememberContentMissing: | ||
active: true | ||
UnstableCollections: | ||
active: false | ||
ViewModelForwarding: | ||
active: true | ||
ViewModelInjection: | ||
active: true | ||
# You can optionally add your own ViewModel factories here | ||
# viewModelFactories: hiltViewModel,potatoViewModel |
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,37 @@ | ||
# SPDX-FileCopyrightText: 2022 Lukas Pieper | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
name: continuous | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'dependabot/**' | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
detekt: | ||
uses: lukaspieper/android-actions/.github/workflows/lint-detekt.yml@main | ||
|
||
lint: | ||
uses: lukaspieper/android-actions/.github/workflows/lint.yml@main | ||
|
||
build: | ||
uses: lukaspieper/android-actions/.github/workflows/assembleDebug.yml@main | ||
|
||
jvmtests: | ||
uses: ./.github/workflows/tests-jvm.yml | ||
|
||
licensing: | ||
name: Run License Linter | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Lint licensing | ||
uses: fsfe/reuse-action@v5 |
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,42 @@ | ||
# SPDX-FileCopyrightText: 2022 Lukas Pieper | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
name: Run JVM Tests workflow | ||
|
||
on: [workflow_call] | ||
|
||
jobs: | ||
jvmtests: | ||
name: Run JVM Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
- name: Run JVM Tests | ||
run: ./gradlew common:test | ||
|
||
- name: Upload Markdown Report | ||
run: | | ||
echo "<details>" >> $GITHUB_STEP_SUMMARY | ||
echo "<summary>Show Report</summary>" >> $GITHUB_STEP_SUMMARY | ||
sed -n '/<body>/,/<\/body>/p' common/build/reports/tests/test/index.html >> $GITHUB_STEP_SUMMARY | ||
echo "</details>" >> $GITHUB_STEP_SUMMARY | ||
if: success() || failure() | ||
|
||
- name: Upload HTML Reports | ||
uses: actions/upload-artifact@v4 | ||
if: success() || failure() | ||
with: | ||
name: Tests-HTML | ||
path: common/build/reports/tests |
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,46 @@ | ||
# SPDX-FileCopyrightText: 2022 Lukas Pieper | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
# Gradle files | ||
.gradle/ | ||
build/ | ||
release/ | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
||
# Log/OS Files | ||
*.log | ||
|
||
# Android Studio generated files and folders | ||
captures/ | ||
.externalNativeBuild/ | ||
.cxx/ | ||
*.apk | ||
output.json | ||
|
||
# IntelliJ | ||
*.iml | ||
.idea/* | ||
!*/icon.svg | ||
!/.idea/codeStyles | ||
!/.idea/inspectionProfiles | ||
misc.xml | ||
deploymentTargetDropDown.xml | ||
render.experimental.xml | ||
|
||
# Keystore files | ||
*.jks | ||
*.keystore | ||
|
||
# Google Services (e.g. APIs or Firebase) | ||
google-services.json | ||
|
||
# Android Profiling | ||
*.hprof | ||
|
||
# Truvark specific files | ||
.github/dependabot.yml | ||
.github/ISSUE_TEMPLATE/ | ||
desktop/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.