diffplug / diffplug/spotless

LicenseHeaderStep: Support repeating placeholders

Aperta
#787 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Java
Stelle
5.6k
Fork
559
Merge medio
1g 13h
PR unite (30g)
34

Descrizione

We have the case of requiring multiple copyright years in our license headers for our source files.

Example:
```
/*
* (c) Copyright CompanyA Inc., 2010-2020
* (c) Copyright CompanyB Inc., 2020-2021
*/
```

Currently the `LicenseHeaderStep` only supports replacing/updating the placeholder for the year (`$YEAR` or `$today.year`) only a single time.

Using this template:
```
/*
* (c) Copyright CompanyA Inc., $YEAR
* (c) Copyright CompanyB Inc., $YEAR
*/
```

The result would be as follows:
```
/*
* (c) Copyright CompanyA Inc., 2010-2020
* (c) Copyright CompanyB Inc., $YEAR
*/
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.