{"action":"opened","issue":{"url":"https://api.github.com/repos/checkstyle/checkstyle/issues/1021","labels_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/1021/labels{/name}","comments_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/1021/comments","events_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/1021/events","html_url":"https://github.com/checkstyle/checkstyle/issues/1021","id":71941648,"number":1021,"title":"Third Party Grouping Issues for CustomImportOrderCheck","user":{"login":"rnveach","id":5427943,"avatar_url":"https://avatars.githubusercontent.com/u/5427943?v=3","gravatar_id":"","url":"https://api.github.com/users/rnveach","html_url":"https://github.com/rnveach","followers_url":"https://api.github.com/users/rnveach/followers","following_url":"https://api.github.com/users/rnveach/following{/other_user}","gists_url":"https://api.github.com/users/rnveach/gists{/gist_id}","starred_url":"https://api.github.com/users/rnveach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnveach/subscriptions","organizations_url":"https://api.github.com/users/rnveach/orgs","repos_url":"https://api.github.com/users/rnveach/repos","events_url":"https://api.github.com/users/rnveach/events{/privacy}","received_events_url":"https://api.github.com/users/rnveach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-29T17:50:59Z","updated_at":"2015-04-29T17:50:59Z","closed_at":null,"body":"When \"sortImportsInGroupAlphabetically\" is turned on for CustomImportOrderCheck, it creates false errors when different third party utility imports are separated by a blank line, and the alpha ordering starts over from scratch.\r\n\r\nThese blank line separations are done because, what I assume, is the classes are located in separate JARs. For me, Eclipse's automatic \"Organize Imports\" does this separating out for me, so my issue is getting CustomImportOrderCheck to stop flagging these lines since Eclipse keeps making them. I am unsure if this is a specific setting in Eclipse, turned on by default, or if this is standard for other IDEs.\r\n\r\nExample code:\r\n````\r\npackage test;\r\n\r\nimport java.io.File;\r\nimport java.io.IOException;\r\n\r\nimport js.blah.blah;\r\n\r\nimport com.rveach.blah1; // 8\r\nimport com.rveach.blah2; // 9\r\n\r\npublic class Test { }\r\n````\r\nMessage:\r\n````\r\nTest.java:8: Wrong lexicographical order for 'com.rveach.blah1' import.\r\n````\r\nConfig:\r\n````\r\n\t\t<module name=\"CustomImportOrder\">\r\n\t\t\t<property name=\"specialImportsRegExp\" value=\"gov\\..*\" />\r\n\t\t\t<property name=\"standardPackageRegExp\" value=\"^(java\\.|javax\\.).*\" />\r\n\t\t\t<property name=\"sortImportsInGroupAlphabetically\" value=\"true\" />\r\n\t\t\t<property name=\"separateLineBetweenGroups\" value=\"false\" />\r\n\t\t\t<property name=\"customImportOrderRules\"\r\n\t\t\t\tvalue=\"STATIC###SPECIAL_IMPORTS###STANDARD_JAVA_PACKAGE###THIRD_PARTY_PACKAGE\" />\r\n\t\t</module>\r\n````\r\n\r\nThere are no errors on 9, since it is in order compared to 8."}}