apache / apache/pekko

Create sbt plugin for header check?

Open
#210 12 comments 1 reaction 0 assignees View on GitHub
question
Dominant language
Scala
Stars
1.6k
Forks
211
Avg merge
1d 6h
Merged PRs (30d)
89

Description

So I just realized that we probably have to abstract all of the `sbt-header-check` logic that is done for checking the Apache copyright headers into its own sbt plugin because in the current setup, while it does correctly check for the sources that are part of the main project, it doesn’t check for the sources that are extending the sbt build (i.e. `*.scala` files in `project/`).

Theoretically to solve this you would have to add do `addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.7.0")` in `project/project/plugins.sbt` (take note of the additional nested `project` folder) so that the plugin applies to the sbt source files however we would also have to redefine all of the logic in `CopyrightHeader.scala` (hence the need to put it into a sbt plugin).

@pjfanning What do you think?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.