It not as hard as rust where the binary is not built if a rule is violated.
If it is then it can be made part of the build process and the effect will be the same: the binary will not get built if the rules are violated.
If it is then it can be made part of the build process and the effect will be the same: the binary will not get built if the rules are violated.