{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/infer/issues/150","labels_url":"https://api.github.com/repos/facebook/infer/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/facebook/infer/issues/150/comments","events_url":"https://api.github.com/repos/facebook/infer/issues/150/events","html_url":"https://github.com/facebook/infer/issues/150","id":95644476,"number":150,"title":"Add a way to filter out false positives","user":{"login":"denizt","id":608404,"avatar_url":"https://avatars.githubusercontent.com/u/608404?v=3","gravatar_id":"","url":"https://api.github.com/users/denizt","html_url":"https://github.com/denizt","followers_url":"https://api.github.com/users/denizt/followers","following_url":"https://api.github.com/users/denizt/following{/other_user}","gists_url":"https://api.github.com/users/denizt/gists{/gist_id}","starred_url":"https://api.github.com/users/denizt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denizt/subscriptions","organizations_url":"https://api.github.com/users/denizt/orgs","repos_url":"https://api.github.com/users/denizt/repos","events_url":"https://api.github.com/users/denizt/events{/privacy}","received_events_url":"https://api.github.com/users/denizt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-07-17T12:07:06Z","updated_at":"2016-01-23T03:44:59Z","closed_at":null,"body":"Currently there is no way to filter out false positives. Approaches [FindBugs](http://findbugs.sourceforge.net/manual/filter.html) use are `filter files` and `annotations` --which brings the dependency complexity. In our set up, we use the file approach, which resides in the repository and run by the build servers.\r\n\r\nA similar approach would simplify deploying infer."},"comment":{"url":"https://api.github.com/repos/facebook/infer/issues/comments/174126352","html_url":"https://github.com/facebook/infer/issues/150#issuecomment-174126352","issue_url":"https://api.github.com/repos/facebook/infer/issues/150","id":174126352,"user":{"login":"sblackshear","id":3513142,"avatar_url":"https://avatars.githubusercontent.com/u/3513142?v=3","gravatar_id":"","url":"https://api.github.com/users/sblackshear","html_url":"https://github.com/sblackshear","followers_url":"https://api.github.com/users/sblackshear/followers","following_url":"https://api.github.com/users/sblackshear/following{/other_user}","gists_url":"https://api.github.com/users/sblackshear/gists{/gist_id}","starred_url":"https://api.github.com/users/sblackshear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sblackshear/subscriptions","organizations_url":"https://api.github.com/users/sblackshear/orgs","repos_url":"https://api.github.com/users/sblackshear/repos","events_url":"https://api.github.com/users/sblackshear/events{/privacy}","received_events_url":"https://api.github.com/users/sblackshear/received_events","type":"User","site_admin":false},"created_at":"2016-01-23T03:44:59Z","updated_at":"2016-01-23T03:44:59Z","body":"Sorry for the slow response. As a temporary workaround, you can suppress things at the file level by adding a .inferconfig JSON file to the root directory for your project. If you want to suppress warnings for the entire file `path/from/project/root/to/MyClass.java`, this file would look like:\r\n\r\n```\r\n{\r\n  \"infer_blacklist\": [\r\n    \"path/from/project/root/to/MyClass.java\"                 \r\n  ]\r\n}\r\n```\r\n\r\nI'll post in this issue when we fix the issues with SuppressWarnings in Gradle."}}