{"action":"created","issue":{"url":"https://api.github.com/repos/checkstyle/checkstyle/issues/2270","labels_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/2270/labels{/name}","comments_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/2270/comments","events_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/2270/events","html_url":"https://github.com/checkstyle/checkstyle/issues/2270","id":109826721,"number":2270,"title":"SuppressionFilter's name attribute format is OS-dependent.","user":{"login":"pbaranchikov","id":3531552,"avatar_url":"https://avatars.githubusercontent.com/u/3531552?v=3","gravatar_id":"","url":"https://api.github.com/users/pbaranchikov","html_url":"https://github.com/pbaranchikov","followers_url":"https://api.github.com/users/pbaranchikov/followers","following_url":"https://api.github.com/users/pbaranchikov/following{/other_user}","gists_url":"https://api.github.com/users/pbaranchikov/gists{/gist_id}","starred_url":"https://api.github.com/users/pbaranchikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbaranchikov/subscriptions","organizations_url":"https://api.github.com/users/pbaranchikov/orgs","repos_url":"https://api.github.com/users/pbaranchikov/repos","events_url":"https://api.github.com/users/pbaranchikov/events{/privacy}","received_events_url":"https://api.github.com/users/pbaranchikov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-05T15:47:35Z","updated_at":"2015-10-06T22:01:23Z","closed_at":null,"body":"Checkstyle's suppression filter identify to ignore using *files* attribute. Values in the attribute use system-dependent path separator.\r\n\r\nReporting from [stackoverflow] (http://stackoverflow.com/questions/13874582/what-is-the-correct-syntax-to-suppress-specific-checkstyle-rules-on-certain-file) suggest very nasty form of workaround:\r\n\r\n```xml\r\n<suppress files=\"my[\\\\/]super[\\\\/]package[\\\\/]name\" checks=\"ModifierOrderCheck|NeedBracesCheck|MagicNumberCheck\"/>    \r\n```\r\n\r\nThere should be an ability to specify uniformed paths, for example in Ant-like style."},"comment":{"url":"https://api.github.com/repos/checkstyle/checkstyle/issues/comments/146015056","html_url":"https://github.com/checkstyle/checkstyle/issues/2270#issuecomment-146015056","issue_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/2270","id":146015056,"user":{"login":"oburn","id":5170945,"avatar_url":"https://avatars.githubusercontent.com/u/5170945?v=3","gravatar_id":"","url":"https://api.github.com/users/oburn","html_url":"https://github.com/oburn","followers_url":"https://api.github.com/users/oburn/followers","following_url":"https://api.github.com/users/oburn/following{/other_user}","gists_url":"https://api.github.com/users/oburn/gists{/gist_id}","starred_url":"https://api.github.com/users/oburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oburn/subscriptions","organizations_url":"https://api.github.com/users/oburn/orgs","repos_url":"https://api.github.com/users/oburn/repos","events_url":"https://api.github.com/users/oburn/events{/privacy}","received_events_url":"https://api.github.com/users/oburn/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T22:01:23Z","updated_at":"2015-10-06T22:01:23Z","body":"I like the idea.\r\n\r\nYou will need to consider that the import-control `<suppress>` element has the attribute `regex` which is used to flag whether the package or class name is interpreted as a regular expression (the example above is missing this).\r\n\r\nSuggest consider adding support for a `glob` attribute to support the behaviour your want.\r\n\r\nSpecifying both `regex` and `glob` as `true` would be an error."}}