Skip to content

simhayoz/eval-code-quality

Repository files navigation

Build Status Maintainability Test Coverage

Evaluating code quality

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.

Checks

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 Product class and Builder class form a Builder Pattern
    • VisitorPattern: checks that a certain Visitor class, Parent class and multiple Children classes 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

About

Bachelor project at the Dependable Systems Lab at EPFL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages