{"action":"created","issue":{"url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/986","repository_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx","labels_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/986/labels{/name}","comments_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/986/comments","events_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/986/events","html_url":"https://github.com/SonarOpenCommunity/sonar-cxx/issues/986","id":185158338,"number":986,"title":"Extract this magic number 'nullptr' into a constant, variable declaration or an enum.","user":{"login":"tomikais","id":7860085,"avatar_url":"https://avatars.githubusercontent.com/u/7860085?v=3","gravatar_id":"","url":"https://api.github.com/users/tomikais","html_url":"https://github.com/tomikais","followers_url":"https://api.github.com/users/tomikais/followers","following_url":"https://api.github.com/users/tomikais/following{/other_user}","gists_url":"https://api.github.com/users/tomikais/gists{/gist_id}","starred_url":"https://api.github.com/users/tomikais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomikais/subscriptions","organizations_url":"https://api.github.com/users/tomikais/orgs","repos_url":"https://api.github.com/users/tomikais/repos","events_url":"https://api.github.com/users/tomikais/events{/privacy}","received_events_url":"https://api.github.com/users/tomikais/received_events","type":"User","site_admin":false},"labels":[{"id":15973035,"url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"guwirth","id":6077367,"avatar_url":"https://avatars.githubusercontent.com/u/6077367?v=3","gravatar_id":"","url":"https://api.github.com/users/guwirth","html_url":"https://github.com/guwirth","followers_url":"https://api.github.com/users/guwirth/followers","following_url":"https://api.github.com/users/guwirth/following{/other_user}","gists_url":"https://api.github.com/users/guwirth/gists{/gist_id}","starred_url":"https://api.github.com/users/guwirth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guwirth/subscriptions","organizations_url":"https://api.github.com/users/guwirth/orgs","repos_url":"https://api.github.com/users/guwirth/repos","events_url":"https://api.github.com/users/guwirth/events{/privacy}","received_events_url":"https://api.github.com/users/guwirth/received_events","type":"User","site_admin":false},"assignees":[{"login":"guwirth","id":6077367,"avatar_url":"https://avatars.githubusercontent.com/u/6077367?v=3","gravatar_id":"","url":"https://api.github.com/users/guwirth","html_url":"https://github.com/guwirth","followers_url":"https://api.github.com/users/guwirth/followers","following_url":"https://api.github.com/users/guwirth/following{/other_user}","gists_url":"https://api.github.com/users/guwirth/gists{/gist_id}","starred_url":"https://api.github.com/users/guwirth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guwirth/subscriptions","organizations_url":"https://api.github.com/users/guwirth/orgs","repos_url":"https://api.github.com/users/guwirth/repos","events_url":"https://api.github.com/users/guwirth/events{/privacy}","received_events_url":"https://api.github.com/users/guwirth/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-10-25T15:51:49Z","updated_at":"2016-11-02T10:05:01Z","closed_at":null,"body":"'nullptr' is detected as a magic number (Magic number should not be used). \n\nIt is possible to add 'nullptr' to the rule exception list to fix it. But I think it's better to fix the rule detection directly in the Cxx plugin!?\n"},"comment":{"url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/comments/257821905","html_url":"https://github.com/SonarOpenCommunity/sonar-cxx/issues/986#issuecomment-257821905","issue_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/986","id":257821905,"user":{"login":"tomikais","id":7860085,"avatar_url":"https://avatars.githubusercontent.com/u/7860085?v=3","gravatar_id":"","url":"https://api.github.com/users/tomikais","html_url":"https://github.com/tomikais","followers_url":"https://api.github.com/users/tomikais/followers","following_url":"https://api.github.com/users/tomikais/following{/other_user}","gists_url":"https://api.github.com/users/tomikais/gists{/gist_id}","starred_url":"https://api.github.com/users/tomikais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomikais/subscriptions","organizations_url":"https://api.github.com/users/tomikais/orgs","repos_url":"https://api.github.com/users/tomikais/repos","events_url":"https://api.github.com/users/tomikais/events{/privacy}","received_events_url":"https://api.github.com/users/tomikais/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T10:05:01Z","updated_at":"2016-11-02T10:05:01Z","body":"Hi @guwirth \r\n\r\nI'm using the latest version 0.9.6.\r\n\r\n`void InterfaceTestGui::resetGui()\r\n{\r\n  m_ui->txtXmlSend->clear();\r\n  m_ui->txtXmlResult->clear();\r\n  m_ui->txtXmlResultFormated->clear();\r\n \r\n  m_ui->lblXmlInputPath->clear();\r\n  m_ui->lblXmlOutputPath->clear();\r\n \r\n  m_sendXmlFile = \"\"; \r\n  m_resultXmlFile = \"\"; \r\n \r\n\r\n  setCurrentFile(nullptr); // Extract this magic number 'nullptr' into a constant, variable declaration or an enum.\r\n  statusBar()->showMessage(tr(\"GUI reset complete\"), DISPLAY_TIME_STATUS_BAR);\r\n}`\r\n\r\nRegards"}}
{"actor":{"display_login":"tomikais"}}