diffplug / diffplug/spotless

Support author name in LicenseHeaderStep

Offen
#323 5 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Java
Sterne
5.6k
Forks
559
Ø Merge
1 T. 13 Std.
Gemergte PRs (30 T.)
34

Beschreibung

Some license texts include the name of the file's initial creator. This is currently not possible to do with the `LicenseHeaderStep`.
Maybe the step could should work with templates rather than constant strings, e,g,
```groovy
licenseHeader('/* Copyright ${year} ${author}*/',
[year: java.time.LocalDate.now().year, author: 'John Doe'])
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.