Skip to content

Commit

Permalink
Refactor enums
Browse files Browse the repository at this point in the history
  • Loading branch information
ashtanko committed Nov 1, 2024
1 parent 50392d5 commit d9ae550
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ optimizations.

## Complexity Report

* 7,633 lines of code (loc)
* 7,634 lines of code (loc)

* 3,709 source lines of code (sloc)
* 3,710 source lines of code (sloc)

* 2,870 logical lines of code (lloc)

Expand All @@ -79,4 +79,4 @@ optimizations.

## Findings (0)

generated with [detekt version 1.23.7](https://detekt.dev/) on 2024-11-01 19:15:48 UTC
generated with [detekt version 1.23.7](https://detekt.dev/) on 2024-11-01 19:17:21 UTC
2 changes: 1 addition & 1 deletion diktat-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@
enabled: true
# Checks that enum structure is correct: enum entries should be separated by comma and line break and last entry should have semicolon in the end.
- name: ENUMS_SEPARATED
enabled: false # todo temporary disabled
enabled: true
# Checks that value on integer or float constant is not too big
- name: LONG_NUMERICAL_VALUES_SEPARATED
enabled: true
Expand Down
3 changes: 2 additions & 1 deletion src/main/kotlin/dev/shtanko/algorithms/math/Fibonacci.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ enum class Fibonacci {
} else {
this(index - 1) + this(index - 2)
}
};
},
;

/**
* Calculates the Fibonacci number at the given index using the specified strategy.
Expand Down

0 comments on commit d9ae550

Please sign in to comment.