3
I need to do an automatic Code Review on my codes.
We used the Jenkins
that triggers the 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 impossible to fire the Job
of Jenkins
for commit
.
I would therefore like to know if it is possible to develop a code analysis component that validates the code during the build of the Delphi
.
I did some research on how to make these validations at compile time.
One of the options I found would be to extend the compiler Delphi
.
I found this guy but I saw he’s been down for a year.
I don’t know if that’s 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 the code during the compilation.
Ex.: Prevent manufacturers from being declared without inherited.
Zanella, give an example of the validation you need to do during the compilation, because we could solve it differently.
– David
@David, the validations I need would be the ones that Sonar identifies as Code Smells, I just edited the question with one of them.
– Victor Tadashi
Ahhh understood, be more proactive than reactive ! Good, but do not know, let’s wait :)
– David
Which version of Delphi ?
– David
@David, 10 Seattle
– Victor Tadashi