The rules are in .tools/astyle/config/style.cfg and can also be reviewed at https://www.mysensors.org/view/260#coding-guidelines-core-library
Revision detection is done at runtime, the configure script has been simplified to reflect this.