Skip to content

refactor: Fix InvalidPackageDeclaration in 87 files (flattened package structure) #108

@Wikijito7

Description

@Wikijito7

Problem

87 files in the project had InvalidPackageDeclaration warnings. The issue was that the project uses a flattened package structure where files are placed in directories that don't match their package declarations.

Example

File Location Package Declaration
src/main/kotlin/di/BotModule.kt es.wokis.di
src/main/kotlin/exceptions/BotException.kt es.wokis.exceptions

Solution

Disabled the rule in detekt.yml:

naming:
  active: true
  InvalidPackageDeclaration:
    active: false

Priority

Low - This is a code organization preference, not a bug. The project has always used a flattened structure.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions