I need to do an automatic Code Review on my codes.
We use Jenkins
which triggers compilation with some other validations every day, but at non-commercial times.
As the project is very extensive and undergoes constant changes during the day, it is unfeasible to fire Job
from Jenkins
to commit
.
So I wonder if it's possible to develop a code parsing component that validates code while compiling the project in Delphi
.
I gave one a lookup on how to do this at compile time.
One of the options I found would be to extend the Delphi
compiler.
I found this guy but saw that he's been standing for 1 year.
I do not know if this is the only option, so I wonder if it's possible to do it in other ways.
PS: What I need to do are some validations similar to CodeSmells
of Sonar
in code during compilation.
Eg prevent constructors from being declared without inherited.