{"action":"created","issue":{"url":"https://api.github.com/repos/SonarCommunity/sonar-javascript/issues/15","labels_url":"https://api.github.com/repos/SonarCommunity/sonar-javascript/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/SonarCommunity/sonar-javascript/issues/15/comments","events_url":"https://api.github.com/repos/SonarCommunity/sonar-javascript/issues/15/events","html_url":"https://github.com/SonarCommunity/sonar-javascript/pull/15","id":82068844,"number":15,"title":"SONARJS-368 - S1125: Raise an issue when a boolean literal is used as an operand of the ternary operator","user":{"login":"renewolfert","id":4478700,"avatar_url":"https://avatars.githubusercontent.com/u/4478700?v=3","gravatar_id":"","url":"https://api.github.com/users/renewolfert","html_url":"https://github.com/renewolfert","followers_url":"https://api.github.com/users/renewolfert/followers","following_url":"https://api.github.com/users/renewolfert/following{/other_user}","gists_url":"https://api.github.com/users/renewolfert/gists{/gist_id}","starred_url":"https://api.github.com/users/renewolfert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renewolfert/subscriptions","organizations_url":"https://api.github.com/users/renewolfert/orgs","repos_url":"https://api.github.com/users/renewolfert/repos","events_url":"https://api.github.com/users/renewolfert/events{/privacy}","received_events_url":"https://api.github.com/users/renewolfert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-28T18:29:12Z","updated_at":"2015-06-02T18:09:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SonarCommunity/sonar-javascript/pulls/15","html_url":"https://github.com/SonarCommunity/sonar-javascript/pull/15","diff_url":"https://github.com/SonarCommunity/sonar-javascript/pull/15.diff","patch_url":"https://github.com/SonarCommunity/sonar-javascript/pull/15.patch"},"body":"Implemented logic to support validation of conditional expressions (including the examples of the RSPEC)"},"comment":{"url":"https://api.github.com/repos/SonarCommunity/sonar-javascript/issues/comments/108036493","html_url":"https://github.com/SonarCommunity/sonar-javascript/pull/15#issuecomment-108036493","issue_url":"https://api.github.com/repos/SonarCommunity/sonar-javascript/issues/15","id":108036493,"user":{"login":"renewolfert","id":4478700,"avatar_url":"https://avatars.githubusercontent.com/u/4478700?v=3","gravatar_id":"","url":"https://api.github.com/users/renewolfert","html_url":"https://github.com/renewolfert","followers_url":"https://api.github.com/users/renewolfert/followers","following_url":"https://api.github.com/users/renewolfert/following{/other_user}","gists_url":"https://api.github.com/users/renewolfert/gists{/gist_id}","starred_url":"https://api.github.com/users/renewolfert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renewolfert/subscriptions","organizations_url":"https://api.github.com/users/renewolfert/orgs","repos_url":"https://api.github.com/users/renewolfert/repos","events_url":"https://api.github.com/users/renewolfert/events{/privacy}","received_events_url":"https://api.github.com/users/renewolfert/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T18:09:08Z","updated_at":"2015-06-02T18:09:08Z","body":"@vilchik-elena True. It won't be easy to get a watertight solution for this.\r\n\r\nThe only change that may remain relevant is the check for parenthesised expressions in the visitExpression method. "}}