[obs-commits] [openSUSE/software-o-o] c29959: Add rake tasks for Rubocop
Branch: refs/heads/master Home: https://github.com/openSUSE/software-o-o Commit: c29959f53599a19a4d9a08a222d53b618d19f04f https://github.com/openSUSE/software-o-o/commit/c29959f53599a19a4d9a08a222d5... Author: Ana María Martínez Gómez <anamaria@martinezgomez.name> Date: 2019-05-01 (Wed, 01 May 2019) Changed paths: M .travis.yml A lib/tasks/rubocop.rake Log Message: ----------- Add rake tasks for Rubocop To always run rubocop with the same options (specially important when regenerating the todo file). It creates the following three tasks: rake rubocop # Run RuboCop on the whole project rake rubocop:auto_correct # Auto-correct RuboCop offenses rake rubocop:auto_gen_config # Generate .rubocop_todo.yml `rake rubocop:auto_gen_config` uses `auto-gen-only-exclude` option, which excludes files with metrics offenses instead of increasing the maximum. This is specially useful for cops where we have few offenses which increase the maximum significantly (as it happens for example with the `Metrics/AbcSize` cop). Commit: 178c964dd79f3debaeee0735d0079350c9836380 https://github.com/openSUSE/software-o-o/commit/178c964dd79f3debaeee0735d007... Author: Ana María Martínez Gómez <anamaria@martinezgomez.name> Date: 2019-05-01 (Wed, 01 May 2019) Changed paths: M .rubocop_todo.yml Log Message: ----------- Regenerate rubocop-todo.yml Regenerate Rubocop todo file using the new configuration. In general, it is a good practise to regenerate this file once in a while to remove the files whose offenses where fixed in the meanwhile and to reduce the maximum for the metrics cops if possible. Commit: 17c922b3c2bf697c370c27315425a59bcca5aacc https://github.com/openSUSE/software-o-o/commit/17c922b3c2bf697c370c27315425... Author: Alexander Graul <agraul@suse.com> Date: 2019-05-02 (Thu, 02 May 2019) Changed paths: M .rubocop_todo.yml M .travis.yml A lib/tasks/rubocop.rake Log Message: ----------- Merge pull request #554 from Ana06/rubocop-task Add rake tasks for Rubocop & use auto-gen-only-exclude for the todo file Compare: https://github.com/openSUSE/software-o-o/compare/eaf3506b54cb...17c922b3c2bf
participants (1)
-
Alexander Graul