[swift-evolution] "bad smells" should be compiler errors with suggestions on how to fix them
amichail at gmail.com
Fri Dec 4 17:53:27 CST 2015
Perhaps you could specify a programming style at the top of each file (e.g., OOP, functional, hybrid, etc.) and code that doesn’t match that style would result in a compiler error.
For example, a long method could trigger an error along with suggestions for refactorings to fix this “bad smell”.
If you don’t want to fix the problem, you could use a style exception construct to surround the code in question and it would get rid of the compile error.
More information about the swift-evolution