{"action":"created","issue":{"url":"https://api.github.com/repos/checkstyle/checkstyle/issues/1474","labels_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/1474/labels{/name}","comments_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/1474/comments","events_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/1474/events","html_url":"https://github.com/checkstyle/checkstyle/pull/1474","id":97260638,"number":1474,"title":"Issue #1013. Fix NoWhitespaceAfterCheck","user":{"login":"attatrol","id":11653713,"avatar_url":"https://avatars.githubusercontent.com/u/11653713?v=3","gravatar_id":"","url":"https://api.github.com/users/attatrol","html_url":"https://github.com/attatrol","followers_url":"https://api.github.com/users/attatrol/followers","following_url":"https://api.github.com/users/attatrol/following{/other_user}","gists_url":"https://api.github.com/users/attatrol/gists{/gist_id}","starred_url":"https://api.github.com/users/attatrol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attatrol/subscriptions","organizations_url":"https://api.github.com/users/attatrol/orgs","repos_url":"https://api.github.com/users/attatrol/repos","events_url":"https://api.github.com/users/attatrol/events{/privacy}","received_events_url":"https://api.github.com/users/attatrol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":36,"created_at":"2015-07-25T21:59:15Z","updated_at":"2015-10-27T14:38:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/checkstyle/checkstyle/pulls/1474","html_url":"https://github.com/checkstyle/checkstyle/pull/1474","diff_url":"https://github.com/checkstyle/checkstyle/pull/1474.diff","patch_url":"https://github.com/checkstyle/checkstyle/pull/1474.patch"},"body":"It satisfies issue #1013\r\n\r\n1. Behavior of NoWhitespaceAfterCheck for specific token type <code>TokenTypes.ARRAY_DECLARATOR</code> is overhauled.\r\nNow check generates error if there are whitespaces in highlighted places:\r\n<code>\r\nint█[ ]█[ ] a;</code>\r\n<code>int a█[ ]█[ ];</code>\r\n<code>String█[ ]█[ ] someStuff6 = (java.lang.String█[ ]█[ ]) someStuff5;</code>\r\n<code>return new Integer█[  i + j  ]█[i + j]█[0];\r\n</code>\r\nit does not check for whitespace validity inside brackets.\r\n\r\n2. Token <code>TokenTypes.INDEX_OP</code> is added to the lists of default and accepted tokens due to its simularity with <code>TokenTypes.ARRAY_DECLARATOR</code>.\r\n\r\n3. Other token types processing remains intact.\r\n\r\n4. There is an error in Travis-CI build job no.8:\r\n<code>[ERROR] src/main/java/org/orekit/propagation/semianalytical/dsst/forces/DSSTThirdBody.java[1087:77] (whitespace) NoWhitespaceAfter: 'fact' is followed by whitespace.</code>\r\nhttps://travis-ci.org/checkstyle/checkstyle/jobs/72631540\r\n\r\nIt happens because updated check finds waste whitespace in Orecit source:\r\nhttps://www.orekit.org/forge/projects/orekit/repository/revisions/master/entry/src/main/java/org/orekit/propagation/semianalytical/dsst/forces/DSSTThirdBody.java"},"comment":{"url":"https://api.github.com/repos/checkstyle/checkstyle/issues/comments/151521460","html_url":"https://github.com/checkstyle/checkstyle/pull/1474#issuecomment-151521460","issue_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/1474","id":151521460,"user":{"login":"romani","id":812984,"avatar_url":"https://avatars.githubusercontent.com/u/812984?v=3","gravatar_id":"","url":"https://api.github.com/users/romani","html_url":"https://github.com/romani","followers_url":"https://api.github.com/users/romani/followers","following_url":"https://api.github.com/users/romani/following{/other_user}","gists_url":"https://api.github.com/users/romani/gists{/gist_id}","starred_url":"https://api.github.com/users/romani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romani/subscriptions","organizations_url":"https://api.github.com/users/romani/orgs","repos_url":"https://api.github.com/users/romani/repos","events_url":"https://api.github.com/users/romani/events{/privacy}","received_events_url":"https://api.github.com/users/romani/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T14:38:39Z","updated_at":"2015-10-27T14:38:39Z","body":"12) \r\nPlease confirm that after reverting https://github.com/CS-SI/Orekit/commit/05c49111b549a2226ee899d664b6f3d001439441 checkstyle validation passed without any problem on this project."}}