There is tool `brew audit [formula]` that you can run to check formulas:
```
brew audit ./mummer.rb 
mummer:
 * stable version 3.23 is redundant with version scanned from URL
 * "#{prefix}/lib" should be "#{lib}"
 * Trailing whitespace was found

Error: 3 problems in 1 formulae
```