{"action":"created","issue":{"url":"https://api.github.com/repos/rossPatton/stylint/issues/106","labels_url":"https://api.github.com/repos/rossPatton/stylint/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/rossPatton/stylint/issues/106/comments","events_url":"https://api.github.com/repos/rossPatton/stylint/issues/106/events","html_url":"https://github.com/rossPatton/stylint/issues/106","id":78186806,"number":106,"title":"[Feature Suggestion] Different severity levels on warnings","user":{"login":"eric-adstage","id":4295226,"avatar_url":"https://avatars.githubusercontent.com/u/4295226?v=3","gravatar_id":"","url":"https://api.github.com/users/eric-adstage","html_url":"https://github.com/eric-adstage","followers_url":"https://api.github.com/users/eric-adstage/followers","following_url":"https://api.github.com/users/eric-adstage/following{/other_user}","gists_url":"https://api.github.com/users/eric-adstage/gists{/gist_id}","starred_url":"https://api.github.com/users/eric-adstage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eric-adstage/subscriptions","organizations_url":"https://api.github.com/users/eric-adstage/orgs","repos_url":"https://api.github.com/users/eric-adstage/repos","events_url":"https://api.github.com/users/eric-adstage/events{/privacy}","received_events_url":"https://api.github.com/users/eric-adstage/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rossPatton/stylint/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/rossPatton/stylint/labels/low%20priority","name":"low priority","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/rossPatton/stylint/milestones/4","html_url":"https://github.com/rossPatton/stylint/milestones/1.0.0","labels_url":"https://api.github.com/repos/rossPatton/stylint/milestones/4/labels","id":1113730,"number":4,"title":"1.0.0","description":"In order to continue improving stylint, some refactoring needs to occur, and backwards compatibility will be broken.\r\n\r\nGoals for this release:\r\n\r\nAbility to use stylint as raw node module outside of cli ( https://github.com/rossPatton/stylint/issues/99 )\r\n\r\nJSCS style config options ( https://github.com/rossPatton/stylint/issues/98 && https://github.com/rossPatton/stylint/issues/34 )\r\n\r\noptions for different reporters ( https://github.com/rossPatton/stylint/issues/85 )\r\n\r\n100% Coverage ( https://github.com/rossPatton/stylint/issues/84 )\r\n\r\nReduced Complexity && Improved Performance\r\n","creator":{"login":"rossPatton","id":2379901,"avatar_url":"https://avatars.githubusercontent.com/u/2379901?v=3","gravatar_id":"","url":"https://api.github.com/users/rossPatton","html_url":"https://github.com/rossPatton","followers_url":"https://api.github.com/users/rossPatton/followers","following_url":"https://api.github.com/users/rossPatton/following{/other_user}","gists_url":"https://api.github.com/users/rossPatton/gists{/gist_id}","starred_url":"https://api.github.com/users/rossPatton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossPatton/subscriptions","organizations_url":"https://api.github.com/users/rossPatton/orgs","repos_url":"https://api.github.com/users/rossPatton/repos","events_url":"https://api.github.com/users/rossPatton/events{/privacy}","received_events_url":"https://api.github.com/users/rossPatton/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":0,"state":"open","created_at":"2015-05-17T05:51:02Z","updated_at":"2015-05-25T20:28:48Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-05-19T17:46:43Z","updated_at":"2015-05-29T20:38:54Z","closed_at":null,"body":"It would be awesome if stylint supported both error and warning level alerts, such that even one error would cause the linting task to exit with failure at the end, whereas warnings would be just that: warnings, and not necessarily cause a linting failure\r\n\r\nE.g. \r\n```\r\n{\r\n    \"borderNone\":  {\r\n        \"report\": true,\r\n        \"severity\": \"error\"\r\n    },\r\n    \"brackets\": false,\r\n    \"colons\": false,\r\n    \"colors\": false,\r\n    ...\r\n```"},"comment":{"url":"https://api.github.com/repos/rossPatton/stylint/issues/comments/106929177","html_url":"https://github.com/rossPatton/stylint/issues/106#issuecomment-106929177","issue_url":"https://api.github.com/repos/rossPatton/stylint/issues/106","id":106929177,"user":{"login":"eric-adstage","id":4295226,"avatar_url":"https://avatars.githubusercontent.com/u/4295226?v=3","gravatar_id":"","url":"https://api.github.com/users/eric-adstage","html_url":"https://github.com/eric-adstage","followers_url":"https://api.github.com/users/eric-adstage/followers","following_url":"https://api.github.com/users/eric-adstage/following{/other_user}","gists_url":"https://api.github.com/users/eric-adstage/gists{/gist_id}","starred_url":"https://api.github.com/users/eric-adstage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eric-adstage/subscriptions","organizations_url":"https://api.github.com/users/eric-adstage/orgs","repos_url":"https://api.github.com/users/eric-adstage/repos","events_url":"https://api.github.com/users/eric-adstage/events{/privacy}","received_events_url":"https://api.github.com/users/eric-adstage/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T20:38:54Z","updated_at":"2015-05-29T20:38:54Z","body":"Alright, as a bit of a compromise, how about this?:\r\n\r\n```\r\n{\r\n    \"propA\": {\r\n        \"expect\": \"always\",\r\n        \"level\": \"error\"\r\n    },\r\n    \"propB\": false, // { \"expect\": false, \"level\": \"warning\" }\r\n    \"propC\": \"always\", // { \"expect\": \"always\", \"level\": \"warning\" }\r\n    \"propD\": \"never\", // { \"expect\": \"never\", \"level\": \"warning\" }\r\n    \"propE\": {\r\n        \"expect\": \"never\",\r\n        \"level\": \"error\"\r\n    }\r\n}\r\n```\r\n\r\nOR\r\n\r\n```\r\n{\r\n    \"propA\": {\r\n        \"expect\": \"always\",\r\n        \"error\": true\r\n    },\r\n    \"propB\": false, // { \"expect\": false, \"error\": false }\r\n    \"propC\": \"always\", // { \"expect\": \"always\", \"error\": false }\r\n    \"propD\": \"never\", // { \"expect\": \"never\", \"error\": false }\r\n    \"propE\": {\r\n        \"expect\": \"never\",\r\n        \"error\": true\r\n    }\r\n}\r\n```"}}