The goal of this project was to create an automatic tool for checking code quality.
The report PDF can be found here.
Bachelor project at Dependable Systems Lab at EPFL.
Currently this app can do the following checks:
- BlankLines: checks that there is not more than one blank line in a row
- Braces: do the following checks:
- checks that braces are either aligned with parent or on the following line
- checks that every parent - opening braces respects the same style (i.e. all with braces on the same line or all with braces on the following line)
- Do the same for the child - previous block closing braces and child - opening braces
- checks that one liner block either all have braces or none have them
- DesignPattern:
- SingletonPattern: checks that a certain class is a Singleton Pattern
- BuilderPattern: checks that a certain
Productclass andBuilderclass form a Builder Pattern - VisitorPattern: checks that a certain
Visitorclass,Parentclass and multipleChildrenclasses form a Visitor Pattern
- Indentation: checks that every element within a block is aligned, that every block has the same tab difference from parent and that this difference is positive
- Naming: checks that for the same modifiers (public, static, etc) the name of the variables and methods respects the same convention