update rubocop, add common linter task, fix rubocop issues