A new analytical tool for ruby, the “Method Definition Validator”, is now available.
This tool can detect the omission of modifications when a method definition is changed.
It detects if there are ommisions of modification in places where the method is called, in cases such as renaming a method or changing the number of arguments. This tool is compatible with Ruby.
For example, when the ‘do_something’ method above is modified to ‘def do_something(p)’, the caller will become an error, because it won’t have enough arguments.
By enabling the new ‘Method Definition Validator’, it detects and indicates such ommisions before they end up in the production environment. This tool is useful because it can conduct detection on portions with no differences, which are often overlooked since code reviews are usually done based on differential files.
You can use this tool by enabling the ‘Method Definition Validator’ from SideCI’s “Select Analytical Tool” Menu.