{"action":"closed","issue":{"url":"https://api.github.com/repos/Munkei/atom-linter-cppcheck/issues/1","repository_url":"https://api.github.com/repos/Munkei/atom-linter-cppcheck","labels_url":"https://api.github.com/repos/Munkei/atom-linter-cppcheck/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Munkei/atom-linter-cppcheck/issues/1/comments","events_url":"https://api.github.com/repos/Munkei/atom-linter-cppcheck/issues/1/events","html_url":"https://github.com/Munkei/atom-linter-cppcheck/issues/1","id":132675112,"number":1,"title":"Add C++14 grammar","user":{"login":"asmatic77","id":305648,"avatar_url":"https://avatars.githubusercontent.com/u/305648?v=3","gravatar_id":"","url":"https://api.github.com/users/asmatic77","html_url":"https://github.com/asmatic77","followers_url":"https://api.github.com/users/asmatic77/followers","following_url":"https://api.github.com/users/asmatic77/following{/other_user}","gists_url":"https://api.github.com/users/asmatic77/gists{/gist_id}","starred_url":"https://api.github.com/users/asmatic77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asmatic77/subscriptions","organizations_url":"https://api.github.com/users/asmatic77/orgs","repos_url":"https://api.github.com/users/asmatic77/repos","events_url":"https://api.github.com/users/asmatic77/events{/privacy}","received_events_url":"https://api.github.com/users/asmatic77/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Munkei/atom-linter-cppcheck/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"biffen","id":954005,"avatar_url":"https://avatars.githubusercontent.com/u/954005?v=3","gravatar_id":"","url":"https://api.github.com/users/biffen","html_url":"https://github.com/biffen","followers_url":"https://api.github.com/users/biffen/followers","following_url":"https://api.github.com/users/biffen/following{/other_user}","gists_url":"https://api.github.com/users/biffen/gists{/gist_id}","starred_url":"https://api.github.com/users/biffen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biffen/subscriptions","organizations_url":"https://api.github.com/users/biffen/orgs","repos_url":"https://api.github.com/users/biffen/repos","events_url":"https://api.github.com/users/biffen/events{/privacy}","received_events_url":"https://api.github.com/users/biffen/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Munkei/atom-linter-cppcheck/milestones/1","html_url":"https://github.com/Munkei/atom-linter-cppcheck/milestones/v0.2.0","labels_url":"https://api.github.com/repos/Munkei/atom-linter-cppcheck/milestones/1/labels","id":1575088,"number":1,"title":"v0.2.0","description":"","creator":{"login":"biffen","id":954005,"avatar_url":"https://avatars.githubusercontent.com/u/954005?v=3","gravatar_id":"","url":"https://api.github.com/users/biffen","html_url":"https://github.com/biffen","followers_url":"https://api.github.com/users/biffen/followers","following_url":"https://api.github.com/users/biffen/following{/other_user}","gists_url":"https://api.github.com/users/biffen/gists{/gist_id}","starred_url":"https://api.github.com/users/biffen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biffen/subscriptions","organizations_url":"https://api.github.com/users/biffen/orgs","repos_url":"https://api.github.com/users/biffen/repos","events_url":"https://api.github.com/users/biffen/events{/privacy}","received_events_url":"https://api.github.com/users/biffen/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2016-02-10T15:41:25Z","updated_at":"2016-02-11T08:32:22Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-02-10T11:37:14Z","updated_at":"2016-02-11T08:32:22Z","closed_at":"2016-02-11T08:32:22Z","body":"Hello!\r\nI was just developing my own cppcheck linter when I say your own... I'm not used to github way of proposing changes and It seems that currently my atom setup is confused between your plugin and my plugin.\r\n\r\nBut I just wanted to add grammar support to your package. Its just adding a new case statement. I guess that that issue can happen if the user has installed the language-cpp14 plugin for atom.\r\n\r\nconst grammar = textEditor.getGrammar().name;\r\n      switch (grammar) {\r\n        case 'C':\r\n          args.push('--language=c');\r\n          break;\r\n\r\n        case 'C++':\r\n\tcase 'C++14':\r\n          args.push('--language=c++');\r\n          break;\r\n\r\n        default:\r\n          console.warn(\r\n            `[linter-cppcheck] Unrecognised grammar ‘${grammar}’`\r\n          );\r\n          break;\r\n      }\r\n\r\nThanks"}}