Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] License header is not being written to test classes #243

Closed
dbwiddis opened this issue Nov 12, 2022 · 1 comment · Fixed by #247
Closed

[BUG] License header is not being written to test classes #243

dbwiddis opened this issue Nov 12, 2022 · 1 comment · Fixed by #247
Assignees
Labels
bug Something isn't working

Comments

@dbwiddis
Copy link
Member

dbwiddis commented Nov 12, 2022

What is the bug?

Test classes have no license header, or the old one not updated by #194

The paths implemented in #51 only include src/main/java.

How can one reproduce the bug?

  1. Run spotless.
  2. Observe no change in license headers in src/test/java

What is the expected behavior?

License headers match src/test/main and the template.

@dbwiddis dbwiddis added bug Something isn't working untriaged labels Nov 12, 2022
@dbwiddis
Copy link
Member Author

Clearly whoever implemented this should never be allowed to commit to this repo again:

format("license", {
licenseHeaderFile("${rootProject.file("formatter/license-header.txt")}", "package ");
target("src/main/java/**/*.java")
})

Easy add of another line including test...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant