Skip to content

Commit 2e936b8

Browse files
committed
Code formatting.
1 parent 71bc518 commit 2e936b8

File tree

25 files changed

+115
-91
lines changed

25 files changed

+115
-91
lines changed

.idea/codeStyles/Project.xml

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.junie/guidelines.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ purposes, there are no tagged releases or published build outputs.
5050
- AssertJ is used for fluent assertions
5151
- Mockk is available for mocking
5252
- Prefer plain Kotlin mocks
53-
- Use Gradle [test fixtures](https://docs.gradle.org/current/userguide/java_testing.html#sec:java_test_fixtures) for shared test doubles and utilities
53+
- Use
54+
Gradle [test fixtures](https://docs.gradle.org/current/userguide/java_testing.html#sec:java_test_fixtures)
55+
for shared test doubles and utilities
5456
- Tests are organized into unit (`src/test`) and integration (`src/it`) suites
5557
- JUnit 5's `@DynamicTest` feature is used for test parameterization
5658
- Run unit tests: `./gradlew test`

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,20 @@
33

44
# San Diego Kotlin User Group Talks
55

6-
Code examples from the [San Diego Kotlin User Group](https://www.meetup.com/sd-kotlin/) meetings on the [Kotlin](http://kotlinlang.org/) programming language.
6+
Code examples from
7+
the [San Diego Kotlin User Group](https://www.meetup.com/sd-kotlin/) meetings on
8+
the [Kotlin](http://kotlinlang.org/) programming language.
79

810
## Building
911

10-
The project is built with [Gradle](https://docs.gradle.org/current/userguide/userguide.html) and uses the [Gradle Wrapper](https://docs.gradle.org/current/userguide/gradle_wrapper.html#gradle_wrapper_reference), which can be invoked from the project root once the [Gradle prerequisites](https://docs.gradle.org/current/userguide/installation.html#sec:prerequisites) are met.
12+
The project is built
13+
with [Gradle](https://docs.gradle.org/current/userguide/userguide.html) and uses
14+
the [Gradle Wrapper](https://docs.gradle.org/current/userguide/gradle_wrapper.html#gradle_wrapper_reference),
15+
which can be invoked from the project root once
16+
the [Gradle prerequisites](https://docs.gradle.org/current/userguide/installation.html#sec:prerequisites)
17+
are met.
1118

12-
The project currently requires Gradle to be invoked with a Java Development Kit (JDK) version 21 or higher.
19+
The project currently requires Gradle to be invoked with a Java Development
20+
Kit (JDK) version 21 or higher.
1321

1422
The primary build task is `build`.

config/detekt/detekt.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
build:
2-
maxIssues: 0
3-
excludeCorrectable: false
2+
maxIssues: 0
3+
excludeCorrectable: false
44

55
config:
6-
validation: true
7-
warningsAsErrors: true
8-
checkExhaustiveness: false
9-
# when writing own rules with new properties,
10-
# exclude the property path e.g.: 'my_rule_set,.*>.*>[my_property]'
11-
excludes: ''
6+
validation: true
7+
warningsAsErrors: true
8+
checkExhaustiveness: false
9+
# when writing own rules with new properties,
10+
# exclude the property path e.g.: 'my_rule_set,.*>.*>[my_property]'
11+
excludes: ''
1212

1313
processors:
14-
active: true
15-
exclude:
16-
- 'DetektProgressListener'
14+
active: true
15+
exclude:
16+
- 'DetektProgressListener'
1717

1818
console-reports:
19-
active: true
20-
exclude:
21-
- 'ProjectStatisticsReport'
22-
- 'ComplexityReport'
23-
- 'NotificationReport'
24-
#- 'FindingsReport'
25-
- 'FileBasedFindingsReport'
19+
active: true
20+
exclude:
21+
- 'ProjectStatisticsReport'
22+
- 'ComplexityReport'
23+
- 'NotificationReport'
24+
#- 'FindingsReport'
25+
- 'FileBasedFindingsReport'
2626

2727
output-reports:
28-
active: true
29-
exclude:
30-
- 'HtmlOutputReport'
31-
- 'TxtOutputReport'
32-
- 'XmlOutputReport'
33-
- 'SarifOutputReport'
34-
#- 'MdOutputReport'
28+
active: true
29+
exclude:
30+
- 'HtmlOutputReport'
31+
- 'TxtOutputReport'
32+
- 'XmlOutputReport'
33+
- 'SarifOutputReport'
34+
#- 'MdOutputReport'
3535

3636
junit:
37+
active: true
38+
InvalidTestFactoryReturnType:
3739
active: true
38-
InvalidTestFactoryReturnType:
39-
active: true

detekt-rules/build.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import org.gradle.kotlin.dsl.libs
2-
31
plugins {
42
alias(libs.plugins.kotlin.gradle.plugin)
53
id("jvm-test-suite")
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
junit:
2-
InvalidTestFactoryReturnType:
3-
active: true
2+
InvalidTestFactoryReturnType:
3+
active: true

subprojects/di-with-koin/src/main/kotlin/org/sdkotlin/koin/hello/RandomGreetingService.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ import kotlin.random.Random
55
class RandomGreetingService : GreetingService {
66

77
companion object {
8-
val GREETINGS = listOf("Hello, World!", "¡Hola Mundo!", "Salamu, Dunia!", "Aloha nui kāua!")
8+
val GREETINGS = listOf(
9+
"Hello, World!",
10+
"¡Hola Mundo!",
11+
"Salamu, Dunia!",
12+
"Aloha nui kāua!"
13+
)
914
}
1015

1116
override fun getGreeting(): String {
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.sdkotlin.koin.hello
22

3-
class SimpleHelloController(private val greetingService: GreetingService) : HelloController {
3+
class SimpleHelloController(private val greetingService: GreetingService) :
4+
HelloController {
45

56
override fun sayHello() = greetingService.getGreeting()
67
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# Effective Kotlin
22

3-
Code examples from the San Diego Kotlin User Group's [June 2018 meeting](https://www.meetup.com/sd-kotlin/events/nlxltpyxjbjb/) on popular Kotlin idioms, and how Kotlin addresses several items from Joshua Bloch's seminal book, _[Effective Java](https://www.pearson.com/us/higher-education/program/Bloch-Effective-Java-3rd-Edition/PGM1763855.html)_.
3+
Code examples from the San Diego Kotlin User
4+
Group's [June 2018 meeting](https://www.meetup.com/sd-kotlin/events/nlxltpyxjbjb/)
5+
on popular Kotlin idioms, and how Kotlin addresses several items from Joshua
6+
Bloch's seminal book,
7+
_[Effective Java](https://www.pearson.com/us/higher-education/program/Bloch-Effective-Java-3rd-Edition/PGM1763855.html)_.
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
# Introduction to Kotlin for Java Developers
22

3-
Code examples from the [San Diego Kotlin User Group](https://www.meetup.com/sd-kotlin/events/nlxltpyxjbjb/)'s meetings on introducing the [Kotlin](http://kotlinlang.org/) programming language to Java developers (and friends).
3+
Code examples from
4+
the [San Diego Kotlin User Group](https://www.meetup.com/sd-kotlin/events/nlxltpyxjbjb/)'
5+
s meetings on introducing the [Kotlin](http://kotlinlang.org/) programming
6+
language to Java developers (and friends).

0 commit comments

Comments
 (0)