Skip to content

Sometimes CI throws an exception when running ktlintFormat on empty modules #1039

@nuhkoca

Description

@nuhkoca

Hello,

We’re occasionally experiencing CI failures where ktlintFormat fails on empty modules and we haven’t found a workaround yet.

* What went wrong:
Execution failed for task ':features:myModule:loadKtlintReporters'.
> A failure occurred while executing org.jlleitschuh.gradle.ktlint.worker.LoadReportersWorkAction
   > com/pinterest/ktlint/cli/reporter/core/api/ReporterProviderV2

Do you have any recommendations?

We apply ktlint and detekt through convention plugins. I’m not sure whether ktlint already skips modules that don’t contain any .kt files but I doubt no. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions