Check if there are changes before call rubocop