Skip to content

Commit cbc6d0c

Browse files
committed
Lint fixes
1 parent 731add9 commit cbc6d0c

File tree

49 files changed

+67
-73
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+67
-73
lines changed

.editorconfig

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,19 @@ trim_trailing_whitespace = true
99
[*.{kt,kts}]
1010
ij_kotlin_allow_trailing_comma = true
1111
ij_kotlin_allow_trailing_comma_on_call_site = true
12-
ktlint_standard_multiline-if-else = disabled
12+
ktlint_standard_multiline-expression-wrapping = disabled
13+
# string-template-indent requires multiline-expression-wrapping to be enabled
14+
ktlint_standard_string-template-indent = disabled
15+
ktlint_standard_parameter-list-wrapping = disabled
16+
ktlint_standard_function-signature = disabled
17+
ktlint_standard_blank-line-before-declaration = disabled
18+
ktlint_standard_value-argument-comment = disabled
19+
ktlint_function_naming_ignore_when_annotated_with = Composable
20+
ktlint_standard_annotation = disabled
21+
max_line_length = 200
22+
23+
[**/test/**/*.kt]
24+
ktlint_experimental = disabled
1325

1426
[*.md]
1527
trim_trailing_whitespace = false

compose/src/main/java/com/kizitonwose/calendar/compose/CalendarLayoutInfo.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import com.kizitonwose.calendar.core.CalendarMonth
1313
*/
1414
class CalendarLayoutInfo(info: LazyListLayoutInfo, private val month: (Int) -> CalendarMonth) :
1515
LazyListLayoutInfo by info {
16-
1716
/**
1817
* The list of [CalendarItemInfo] representing all the currently visible months.
1918
*/

compose/src/main/java/com/kizitonwose/calendar/compose/CalendarState.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ class CalendarState internal constructor(
7676
outDateStyle: OutDateStyle,
7777
visibleItemState: VisibleItemState?,
7878
) : ScrollableState {
79-
8079
/** Backing state for [startMonth] */
8180
private var _startMonth by mutableStateOf(startMonth)
8281

compose/src/main/java/com/kizitonwose/calendar/compose/heatmapcalendar/HeatMapCalendarState.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class HeatMapCalendarState internal constructor(
7272
firstDayOfWeek: DayOfWeek,
7373
visibleItemState: VisibleItemState?,
7474
) : ScrollableState {
75-
7675
/** Backing state for [startMonth] */
7776
private var _startMonth by mutableStateOf(startMonth)
7877

compose/src/main/java/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarLayoutInfo.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class WeekCalendarLayoutInfo(
1616
info: LazyListLayoutInfo,
1717
private val getIndexData: (Int) -> Week,
1818
) : LazyListLayoutInfo by info {
19-
2019
/**
2120
* The list of [WeekCalendarItemInfo] representing all the currently visible weeks.
2221
*/

compose/src/main/java/com/kizitonwose/calendar/compose/weekcalendar/WeekCalendarState.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ class WeekCalendarState internal constructor(
7878
firstDayOfWeek: DayOfWeek,
7979
visibleItemState: VisibleItemState?,
8080
) : ScrollableState {
81-
8281
/**
8382
* The adjusted first date on the calendar to ensure proper alignment
8483
* of the provided [firstDayOfWeek].

compose/src/test/java/com/kizitonwose/calendar/compose/CalendarStateTests.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import java.time.LocalDate
99
import java.time.YearMonth
1010

1111
class CalendarStateTests {
12-
1312
@Test
1413
fun `start month update is reflected in the state`() {
1514
val now = YearMonth.now()

compose/src/test/java/com/kizitonwose/calendar/compose/HeatMapCalendarStateTests.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import java.time.LocalDate
99
import java.time.YearMonth
1010

1111
class HeatMapCalendarStateTests {
12-
1312
@Test
1413
fun `start month update is reflected in the state`() {
1514
val now = YearMonth.now()

compose/src/test/java/com/kizitonwose/calendar/compose/StateSaverTests.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import java.time.YearMonth
1919
* state restoration (e.g via rotation) will likely not happen often.
2020
*/
2121
class StateSaverTests {
22-
2322
@Test
2423
fun `month calendar state can be restored`() {
2524
val now = YearMonth.now()

compose/src/test/java/com/kizitonwose/calendar/compose/WeekCalendarStateTests.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import java.time.DayOfWeek
99
import java.time.LocalDate
1010

1111
class WeekCalendarStateTests {
12-
1312
@Test
1413
fun `start date update is reflected in the state`() {
1514
val now = LocalDate.now()

0 commit comments

Comments
 (0)