Fix RuboCop and YARD warnings.