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

adds a duplicate header on reruns #177

Open
viboga opened this issue Mar 17, 2020 · 0 comments
Open

adds a duplicate header on reruns #177

viboga opened this issue Mar 17, 2020 · 0 comments

Comments

@viboga
Copy link

viboga commented Mar 17, 2020

I have a custom copyright header with following configuration for my projects:

headerLicense := Some(HeaderLicense.Custom(
"""|---------------------------------------------------------------------------------
|...
|---------------------------------------------------------------------------------""".stripMargin))
headerMappings := headerMappings.value + (HeaderFileType.scala -> HeaderCommentStyle.cppStyleLineComment)
headerEmptyLine := false

I have a root project (build.sbt) which doesn't have any scala files. I added the following to avoid #153.

headerLicense := Some(HeaderLicense.Custom(""""""))

All the old files already have the header. I want to use this plugin for new files which seems to be not working. 'headerCreate' adds a duplicate header to all the old files too. It adds a duplicate to every file on rerun as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant