INRIA/spoon

feat: add SpoonCheckstyleCompliantPrettyPrinter to be compliant with Spoon's own formatting rules

Offen

#3.623 geöffnet am 01.10.2020

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (383 Forks)github user discovery
featuregood first issue

Repository-Metriken

Stars
 (1.933 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 19T 11h) (49 gemergte PRs in 30 T)

Beschreibung

We want to use Spoon to transform the code of Spoon. For this, we need a Spoon pretty-printer that is compliant with Spoon's checkstyle.

The idea is to create a class SpoonCheckstyleCompliantPrettyPrinter which extends DefaultJavaPrettyPrinter

Here are the rules with the number of violations in src/main/java today:

2 [modifierorder]
2 [rightcurly]
2 [unusedimports]
5 [regexpsinglelinejava]
77 [whitespaceafter]
99 [nowhitespacebefore]
167 [parenpad]
237 [regexpsingleline]
1629 [whitespacearound]

Contributor Guide