{"action":"closed","issue":{"url":"https://api.github.com/repos/bbatsov/rubocop/issues/2663","repository_url":"https://api.github.com/repos/bbatsov/rubocop","labels_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2663/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2663/comments","events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2663/events","html_url":"https://github.com/bbatsov/rubocop/issues/2663","id":127231070,"number":2663,"title":"TargetRubyVersion is expected to be a Float","user":{"login":"NobodysNightmare","id":453584,"avatar_url":"https://avatars.githubusercontent.com/u/453584?v=3","gravatar_id":"","url":"https://api.github.com/users/NobodysNightmare","html_url":"https://github.com/NobodysNightmare","followers_url":"https://api.github.com/users/NobodysNightmare/followers","following_url":"https://api.github.com/users/NobodysNightmare/following{/other_user}","gists_url":"https://api.github.com/users/NobodysNightmare/gists{/gist_id}","starred_url":"https://api.github.com/users/NobodysNightmare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NobodysNightmare/subscriptions","organizations_url":"https://api.github.com/users/NobodysNightmare/orgs","repos_url":"https://api.github.com/users/NobodysNightmare/repos","events_url":"https://api.github.com/users/NobodysNightmare/events{/privacy}","received_events_url":"https://api.github.com/users/NobodysNightmare/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-18T13:57:48Z","updated_at":"2016-02-05T13:24:18Z","closed_at":"2016-02-05T13:24:18Z","body":"## Reproduction\r\n\r\nRubocop version: 0.36\r\n\r\nrubocop.yml:\r\n````yml\r\nAllCops:\r\n  TargetRubyVersion: \"2.3\"\r\n````\r\n\r\n## Expected\r\n\r\nRubocop will be satisfied\r\n\r\n## Actual\r\n\r\nRubocop will reject this, forcing me to leave out the quotes:\r\n````yml\r\nAllCops:\r\n  TargetRubyVersion: 2.3\r\n````\r\n\r\nNow please tell me if I am mistaken, but I think this means that the ruby version will be parsed as a floatingpoint number, won't it? That means you can get trouble with two digit minor numbers:\r\n\r\n````irb\r\n2.3.0 :001 > YAML.load('foo: 2.10')\r\n => {\"foo\"=>2.1} \r\n````"}}