INRIA / INRIA/spoon

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

Open
#3,623 2 comments 0 reactions 0 assignees View on GitHub
feature good first issue
Dominant language
Java
Stars
2k
Forks
392
Avg merge
11h 24m
Merged PRs (30d)
36

Description

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.