Skip to content

Commit 8c8ae1b

Browse files
committed
Update project, add icon, set ignores
1 parent e3e947c commit 8c8ae1b

10 files changed

+607
-9
lines changed

.gitignore

+97-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,98 @@
1+
### macOS template
2+
# General
3+
.DS_Store
4+
.AppleDouble
5+
.LSOverride
6+
7+
# Icon must end with two \r
8+
Icon
9+
10+
# Thumbnails
11+
._*
12+
13+
### Gradle template
114
.gradle
2-
.idea
3-
.qodana
4-
build
15+
build/
16+
17+
### Terraform template
18+
# Local .terraform directories
19+
**/.terraform/*
20+
21+
# .tfstate files
22+
*.tfstate
23+
*.tfstate.*
24+
25+
### JetBrains template
26+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
27+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
28+
29+
*.iml
30+
*.ipr
31+
*.iws
32+
.idea/*
33+
out/
34+
local.properties
35+
36+
# IDEA/Android Studio project settings ignore exceptions
37+
!.idea/codeStyles/
38+
!.idea/copyright/
39+
!.idea/dataSources.xml
40+
!.idea/detekt.xml
41+
!.idea/encodings.xml
42+
!.idea/externalDependencies.xml
43+
!.idea/fileTemplates/
44+
!.idea/icon.svg
45+
!.idea/icon.png
46+
!.idea/icon_dark.png
47+
!.idea/inspectionProfiles/
48+
!.idea/ktlint.xml
49+
!.idea/runConfigurations/
50+
!.idea/scopes/
51+
!.idea/vcs.xml
52+
53+
### Kotlin template
54+
# Compiled class file
55+
*.class
56+
57+
# Log file
58+
*.log
59+
60+
# Package Files #
61+
*.jar
62+
*.war
63+
*.nar
64+
*.ear
65+
*.zip
66+
*.tar.gz
67+
*.rar
68+
69+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
70+
hs_err_pid*
71+
72+
### Windows template
73+
# Windows thumbnail cache files
74+
Thumbs.db
75+
ehthumbs.db
76+
ehthumbs_vista.db
77+
78+
# Dump file
79+
*.stackdump
80+
81+
# Folder config file
82+
[Dd]esktop.ini
83+
84+
# Recycle Bin used on file shares
85+
$RECYCLE.BIN/
86+
87+
# Windows Installer files
88+
*.cab
89+
*.msi
90+
*.msix
91+
*.msm
92+
*.msp
93+
94+
# Windows shortcuts
95+
*.lnk
96+
97+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
98+
!gradle-wrapper.jar

.idea/detekt.xml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/externalDependencies.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/icon.svg

+283
Loading

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle.kts

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fun properties(key: String) = providers.gradleProperty(key)
55
fun environment(key: String) = providers.environmentVariable(key)
66

77
plugins {
8-
id("java")
8+
java
99
alias(libs.plugins.kotlin)
1010
alias(libs.plugins.gradleIntelliJPlugin)
1111
alias(libs.plugins.changelog)
@@ -122,3 +122,8 @@ tasks {
122122
enabled = false
123123
}
124124
}
125+
126+
java {
127+
sourceCompatibility = JavaVersion.VERSION_17
128+
targetCompatibility = JavaVersion.VERSION_17
129+
}

detekt.yml

+189
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
build:
2+
maxIssues: 0
3+
excludeCorrectable: false
4+
weights:
5+
# complexity: 2
6+
# LongParameterList: 1
7+
# style: 1
8+
# comments: 1
9+
10+
config:
11+
validation: true
12+
# when writing own rules with new properties, exclude the property path e.g.: 'my_rule_set,.*>.*>[my_property]'
13+
excludes: ''
14+
15+
processors:
16+
active: true
17+
exclude:
18+
- 'DetektProgressListener'
19+
# - 'FunctionCountProcessor'
20+
# - 'PropertyCountProcessor'
21+
# - 'ClassCountProcessor'
22+
# - 'PackageCountProcessor'
23+
# - 'KtFileCountProcessor'
24+
25+
console-reports:
26+
active: true
27+
exclude:
28+
- 'ProjectStatisticsReport'
29+
- 'ComplexityReport'
30+
- 'NotificationReport'
31+
# - 'FindingsReport'
32+
- 'FileBasedFindingsReport'
33+
34+
comments:
35+
active: false
36+
37+
complexity:
38+
active: true
39+
LongParameterList:
40+
active: false
41+
TooManyFunctions:
42+
active: false
43+
LongMethod:
44+
active: false
45+
CyclomaticComplexMethod:
46+
active: false
47+
48+
coroutines:
49+
active: true
50+
GlobalCoroutineUsage:
51+
active: true
52+
RedundantSuspendModifier:
53+
active: true
54+
SleepInsteadOfDelay:
55+
active: true
56+
SuspendFunWithFlowReturnType:
57+
active: true
58+
59+
exceptions:
60+
active: true
61+
NotImplementedDeclaration:
62+
active: true
63+
ObjectExtendsThrowable:
64+
active: true
65+
66+
performance:
67+
active: true
68+
SpreadOperator:
69+
active: false
70+
excludes: [ '**/test/**', '**/androidTest/**', '**/*.Test.kt', '**/*.Spec.kt', '**/*.Spek.kt' ]
71+
72+
potential-bugs:
73+
active: true
74+
DontDowncastCollectionTypes:
75+
active: true
76+
ExitOutsideMain:
77+
active: true
78+
HasPlatformType:
79+
active: true
80+
IgnoredReturnValue:
81+
active: true
82+
ImplicitUnitReturnType:
83+
active: true
84+
allowExplicitReturnType: true
85+
MapGetWithNotNullAssertionOperator:
86+
active: true
87+
UnconditionalJumpStatementInLoop:
88+
active: true
89+
UnreachableCatchBlock:
90+
active: true
91+
UselessPostfixExpression:
92+
active: true
93+
94+
style:
95+
active: true
96+
CollapsibleIfStatements:
97+
active: true
98+
DataClassShouldBeImmutable:
99+
active: true
100+
EqualsOnSignatureLine:
101+
active: true
102+
ExpressionBodySyntax:
103+
active: true
104+
includeLineWrapping: false
105+
ForbiddenComment:
106+
active: true
107+
comments:
108+
- value: 'STOPSHIP'
109+
reason: 'Forbidden STOPSHIP marker in comment, please address before shipping'
110+
allowedPatterns: ''
111+
LoopWithTooManyJumpStatements:
112+
active: true
113+
maxJumpCount: 3
114+
MagicNumber:
115+
active: false
116+
excludes: [ '**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**', '**/*.Test.kt', '**/*.Spec.kt', '**/*.Spek.kt' ]
117+
ignoreNumbers: [ '-1', '0', '1', '2' ]
118+
ignoreHashCodeFunction: true
119+
ignorePropertyDeclaration: true
120+
ignoreLocalVariableDeclaration: true
121+
ignoreConstantDeclaration: true
122+
ignoreCompanionObjectPropertyDeclaration: true
123+
ignoreAnnotation: true
124+
ignoreNamedArgument: true
125+
ignoreEnums: true
126+
ignoreRanges: true
127+
MandatoryBracesLoops:
128+
active: true
129+
MaxLineLength:
130+
active: true
131+
maxLineLength: 150
132+
excludePackageStatements: true
133+
excludeImportStatements: true
134+
excludeCommentStatements: false
135+
NoTabs:
136+
active: true
137+
OptionalUnit:
138+
active: true
139+
PreferToOverPairSyntax:
140+
active: true
141+
RedundantExplicitType:
142+
active: true
143+
ReturnCount:
144+
active: false
145+
SpacingBetweenPackageAndImports:
146+
active: true
147+
ThrowsCount:
148+
active: true
149+
max: 5
150+
TrailingWhitespace:
151+
active: true
152+
UnnecessaryLet:
153+
active: true
154+
UnnecessaryParentheses:
155+
active: false
156+
UnnecessaryAbstractClass:
157+
ignoreAnnotated:
158+
- Module
159+
UntilInsteadOfRangeTo:
160+
active: true
161+
UnusedImports:
162+
active: true
163+
UnusedPrivateMember:
164+
# We need to disable this otherwise we'd need to @Suppress all Composable previews...
165+
active: false
166+
UseArrayLiteralsInAnnotations:
167+
active: true
168+
UseCheckNotNull:
169+
active: true
170+
UseCheckOrError:
171+
active: true
172+
UseEmptyCounterpart:
173+
active: true
174+
UseIfEmptyOrIfBlank:
175+
active: true
176+
UseIsNullOrEmpty:
177+
active: true
178+
UseRequire:
179+
active: true
180+
UseRequireNotNull:
181+
active: true
182+
VarCouldBeVal:
183+
active: true
184+
185+
naming:
186+
FunctionNaming:
187+
active: false
188+
ignoreAnnotated:
189+
- Composable

gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ pluginVersion=2.1.1
55
pluginSinceBuild=231.8109.175
66

77
platformType=IC
8-
platformVersion=2023.2
8+
platformVersion=2023.1
99

1010
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
1111
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
1212
platformPlugins=
13-
gradleVersion=8.2.1
13+
gradleVersion=8.5.0
1414
kotlin.stdlib.default.dependency=false
1515
org.gradle.configuration-cache=true
1616
org.gradle.caching=true

gradle/libs.versions.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
annotations = "24.0.1"
44

55
# plugins
6-
dokka = "1.8.20"
7-
kotlin = "1.8.21"
6+
dokka = "1.9.20"
7+
kotlin = "1.9.21"
88
changelog = "2.1.2"
9-
gradleIntelliJPlugin = "1.15.0"
9+
gradleIntelliJPlugin = "1.17.1"
1010
qodana = "0.1.13"
1111

1212
[libraries]

0 commit comments

Comments
 (0)