{"action":"created","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/2783","repository_url":"https://api.github.com/repos/bbatsov/rubocop","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2783/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2783/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2783/events","html_url":"https://github.com/bbatsov/rubocop/issues/2783","id":131500533,"number":2783,"title":"Migration between trailing cop rules sucks","user":{"login":"ptarjan","id":40143,"avatar_url":"https://avatars.githubusercontent.com/u/40143?v=3","gravatar_id":"","url":"https://api.github.com/users/ptarjan","html_url":"https://github.com/ptarjan","followers_url":"https://api.github.com/users/ptarjan/followers","following_url":"https://api.github.com/users/ptarjan/following{/other_user}","gists_url":"https://api.github.com/users/ptarjan/gists{/gist_id}","starred_url":"https://api.github.com/users/ptarjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptarjan/subscriptions","organizations_url":"https://api.github.com/users/ptarjan/orgs","repos_url":"https://api.github.com/users/ptarjan/repos","events_url":"https://api.github.com/users/ptarjan/events{/privacy}","received_events_url":"https://api.github.com/users/ptarjan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-02-04T23:02:22Z","updated_at":"2016-02-05T09:25:21Z","closed_at":null,"body":"How should I deal with having 100s of engineers needing to upgrade in unison? (Most are using editor integration so just using `bundle exec rubocop` won't work).\r\n\r\nRight now I have this in my config:\r\n\r\n```\r\nStyle/TrailingComma:\r\n  EnforcedStyleForMultiline: consistent_comma\r\n```\r\n\r\nAnd I need to have\r\n\r\n```\r\nStyle/TrailingCommaInLiteral:\r\n  EnforcedStyleForMultiline: consistent_comma\r\nStyle/TrailingCommaInArguments:\r\n  EnforcedStyleForMultiline: consistent_comma\r\n```\r\n\r\nIf I put the new options in now, they spew but the old version works. Great. But when someone uses the new version it stops and emits:\r\n\r\n```\r\nError: The `Style/TrailingComma` cop no longer exists. Please use `Style/TrailingCommaInLiteral` and/or `Style/TrailingCommaInArguments` instead.\r\n(obsolete configuration found in .rubocop.yml, please update it)\r\n```\r\n\r\nIf I leave the old config only then the new version pukes with the same. How the heck do I migrate this for everyone at my company?"},"comment":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments/180264625","html_url":"https://github.com/bbatsov/rubocop/issues/2783#issuecomment-180264625","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2783","id":180264625,"user":{"login":"ptarjan","id":40143,"avatar_url":"https://avatars.githubusercontent.com/u/40143?v=3","gravatar_id":"","url":"https://api.github.com/users/ptarjan","html_url":"https://github.com/ptarjan","followers_url":"https://api.github.com/users/ptarjan/followers","following_url":"https://api.github.com/users/ptarjan/following{/other_user}","gists_url":"https://api.github.com/users/ptarjan/gists{/gist_id}","starred_url":"https://api.github.com/users/ptarjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptarjan/subscriptions","organizations_url":"https://api.github.com/users/ptarjan/orgs","repos_url":"https://api.github.com/users/ptarjan/repos","events_url":"https://api.github.com/users/ptarjan/events{/privacy}","received_events_url":"https://api.github.com/users/ptarjan/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T09:25:21Z","updated_at":"2016-02-05T09:25:21Z","body":"I'm perfectly happy breaking stuff, I just want a migration window where I can yell at everyone and say \"please upgrade or it breaks in a month\".\r\n\r\nWe have a heterogenous mixture of editors. Vim, Emacs, Sublime and Rubymine are the prominent ones.\r\n\r\nMaybe we can put something in the `.rubocop.yml` indicating the minimum needed version and do something that shows up nicely in editors if you don't meet that with then `gem install` instruction would be nice? (Above and beyond the migration window, which is higher priority I feel). How do other linters deal with this?"}}