This project is for EDUCATIONAL purposes ONLY.
You shouldn't code like this. EVER. ๐
During SoCraTes FR 2019 we wanted to see if we could write (really) bad code without getting caught by code-quality tools.
We wanted to see if it was at all possible to write unmaintainable code that still passed all the default checks, and how far we could take this.
Quite far as it happens. ๐ฉ We'll let you see by yourself.
We used Intellij IDEA 2019.2.3 and SonarLint 4.2.0.3434 with default settings.
We used a refuctored FizzBuzzQuux implementation as a starting base. The code was really horrible but all tests were passing. โ๏ธ
We then tried to get rid of any warnings the tools were raising, in the quickest way we could think of. Sometimes the worst way we could think of. Creativity never hurts. ๐
Of course, all tests still pass. โ๏ธ We even raised the code coverage to 100%. ๐ฏ Both SonarLint and IDEA give no warnings. ๐ฑ
- Code-quality tools are not bad, but they are are not enough.
- However smart the tools are, it's not that hard to game them.
- Please, please do Code Reviews with human beings. ๐