google / google/google-java-format
avoid adding space on // comments?
Offen
- Vorherrschende Sprache
- Java
- Sterne
- 6.2k
- Forks
- 937
- Ø Merge
- 6 Min.
- Gemergte PRs (30 T.)
- 3
Beschreibung
its a special case but in jbang I use `//JAVA` , `//DEPS` etc as special markers.
I tried using @formatter:off but seem to have no effect.
```
///usr/bin/env jbang "$0" "$@" ; exit $?
// @formatter:off
//JAVA 21+
//PREVIEW
//DEPS org.imgscalr:imgscalr-lib:4.2
class test {
}
```
gets turned into:
```
/// usr/bin/env jbang "$0" "$@" ; exit $?
// @formatter:off
// JAVA 21+
// PREVIEW
// DEPS org.imgscalr:imgscalr-lib:4.2
```
the first line is a case of #1218 but the others below - how does one tell google-java-format not to mess with those?
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.