Fix RuboCop and Yardstick errors introduced in #4