Skip to content

updateYearWithLatest(false) is ignored/doesn't work #677

@ZacSweers

Description

@ZacSweers

When running with .updateYearWithLatest(false) on this PR, all the existing copyright headers are updated to 2020 anyway. Is there another configuration we're missing?

kotlin {
  ktlint("0.38.0").userData(mapOf("indent_size" to "2"))
  target("**/*.kt")
  trimTrailingWhitespace()
  endWithNewline()
  licenseHeaderFile("spotless/spotless.kt")
    .updateYearWithLatest(false)
  targetExclude("**/Dependencies.kt", "**/spotless.kt")
}

Spotless version: 0.38.0
macOS 10.15.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions