Skip to content

Add Detekt configuration - #22

Merged
Vladyslav-Kuksiuk merged 5 commits into
masterfrom
add-detekt
Jul 27, 2026
Merged

Add Detekt configuration#22
Vladyslav-Kuksiuk merged 5 commits into
masterfrom
add-detekt

Conversation

@Vladyslav-Kuksiuk

Copy link
Copy Markdown
Collaborator

This PR provides Detekt.

Resolves this issue.

@Vladyslav-Kuksiuk Vladyslav-Kuksiuk self-assigned this Jul 24, 2026
@Vladyslav-Kuksiuk
Vladyslav-Kuksiuk marked this pull request as ready for review July 24, 2026 12:18

@Oleg-Melnik Oleg-Melnik left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the Detekt setup. It is well-scoped and I verified locally that ./gradlew detekt passes against the committed baseline, that detekt is wired into check, and that configuration cache is preserved. Detekt correctly analyzes main, test, and functionalTest sources (the *Spec.kt complexity/naming excludes confirm the large functional spec is in scope). Only two optional nits below; no blocking issues.

Comment thread config/detekt/detekt.yml Outdated
LargeClass:
excludes: *testFiles
TooManyFunctions:
excludes:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit (consistency): TooManyFunctions.excludes re-lists the test-file globs literally, whereas every other rule in this file reuses the *testFiles YAML anchor defined on ClassNaming (line 3). Using excludes: *testFiles here too keeps the exclusion set defined in a single place, so future changes to which files count as tests only need one edit.

*/
object Detekt {

// The alpha version is used, because latest stable version doesn't support JDK 25.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit (wording, optional): "because latest stable version doesn't support JDK 25" reads more naturally as "because the latest stable version does not support JDK 25" (add the article; the Spine writing style also tends to avoid contractions in doc prose).

@Oleg-Melnik Oleg-Melnik left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Vladyslav-Kuksiuk LGTM with minor comments.

@Vladyslav-Kuksiuk
Vladyslav-Kuksiuk merged commit b235e47 into master Jul 27, 2026
3 checks passed
@Vladyslav-Kuksiuk
Vladyslav-Kuksiuk deleted the add-detekt branch July 27, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use detekt as an additional quality checker in the project

2 participants