{"action":"created","issue":{"url":"https://api.github.com/repos/AtomLinter/linter-rubocop/issues/124","repository_url":"https://api.github.com/repos/AtomLinter/linter-rubocop","labels_url":"https://api.github.com/repos/AtomLinter/linter-rubocop/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/AtomLinter/linter-rubocop/issues/124/comments","events_url":"https://api.github.com/repos/AtomLinter/linter-rubocop/issues/124/events","html_url":"https://github.com/AtomLinter/linter-rubocop/issues/124","id":155551856,"number":124,"title":"Feature Request: Allow custom severity level mappings","user":{"login":"davefp","id":298309,"avatar_url":"https://avatars.githubusercontent.com/u/298309?v=3","gravatar_id":"","url":"https://api.github.com/users/davefp","html_url":"https://github.com/davefp","followers_url":"https://api.github.com/users/davefp/followers","following_url":"https://api.github.com/users/davefp/following{/other_user}","gists_url":"https://api.github.com/users/davefp/gists{/gist_id}","starred_url":"https://api.github.com/users/davefp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davefp/subscriptions","organizations_url":"https://api.github.com/users/davefp/orgs","repos_url":"https://api.github.com/users/davefp/repos","events_url":"https://api.github.com/users/davefp/events{/privacy}","received_events_url":"https://api.github.com/users/davefp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-18T16:55:11Z","updated_at":"2016-05-18T19:56:51Z","closed_at":null,"body":"## Problem\r\n\r\nAtom-linter supports 3 severity levels:\r\n\r\n* info\r\n* warning\r\n* error\r\n\r\nWhile rubocop has 5:\r\n\r\n* refactor\r\n* convention\r\n* warning\r\n* error\r\n* fatal\r\n\r\nIn my environment, warning and above will break the build while refactor and convention will not. It would be useful if I could display refactor and convention offences as info level to reflect this.\r\n\r\n## Suggestion:\r\n\r\nHave a hash setting that allows rubocop severities to be mapped onto atom-linter severities like so:\r\n\r\n```\r\n'linter-rubocop':\r\n  'severity-mapping':\r\n    'info': ['refactor', 'convention']\r\n    'warning': ['warning']\r\n    'error': ['error', 'fatal']\r\n```\r\n(Or whatever valid CSON should look like)\r\n\r\nIf I worked on a PR for this would it be considered for merging?"},"comment":{"url":"https://api.github.com/repos/AtomLinter/linter-rubocop/issues/comments/220139737","html_url":"https://github.com/AtomLinter/linter-rubocop/issues/124#issuecomment-220139737","issue_url":"https://api.github.com/repos/AtomLinter/linter-rubocop/issues/124","id":220139737,"user":{"login":"Arcanemagus","id":427137,"avatar_url":"https://avatars.githubusercontent.com/u/427137?v=3","gravatar_id":"","url":"https://api.github.com/users/Arcanemagus","html_url":"https://github.com/Arcanemagus","followers_url":"https://api.github.com/users/Arcanemagus/followers","following_url":"https://api.github.com/users/Arcanemagus/following{/other_user}","gists_url":"https://api.github.com/users/Arcanemagus/gists{/gist_id}","starred_url":"https://api.github.com/users/Arcanemagus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arcanemagus/subscriptions","organizations_url":"https://api.github.com/users/Arcanemagus/orgs","repos_url":"https://api.github.com/users/Arcanemagus/repos","events_url":"https://api.github.com/users/Arcanemagus/events{/privacy}","received_events_url":"https://api.github.com/users/Arcanemagus/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T19:56:51Z","updated_at":"2016-05-18T19:56:51Z","body":"@caseywebdev is the maintainer here, but I'd certainly consider it if you can think of a good UI for implementing it.\r\n\r\nJust a note that the currently released version of `linter` only respects the `type` attribute, defining some styles for some guessed values, the `severity` attribute is new and uses a predefined list... but won't be supported until a version of `linter` is released that utilizes `linter-ui-default`."}}