{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/11831","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/11831/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/11831/comments","events_url":"https://api.github.com/repos/apache/spark/issues/11831/events","html_url":"https://github.com/apache/spark/pull/11831","id":141975807,"number":11831,"title":"[SPARK-14011][CORE][SQL] Enable `LineLength` Java checkstyle rule","user":{"login":"dongjoon-hyun","id":9700541,"avatar_url":"https://avatars.githubusercontent.com/u/9700541?v=3","gravatar_id":"","url":"https://api.github.com/users/dongjoon-hyun","html_url":"https://github.com/dongjoon-hyun","followers_url":"https://api.github.com/users/dongjoon-hyun/followers","following_url":"https://api.github.com/users/dongjoon-hyun/following{/other_user}","gists_url":"https://api.github.com/users/dongjoon-hyun/gists{/gist_id}","starred_url":"https://api.github.com/users/dongjoon-hyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongjoon-hyun/subscriptions","organizations_url":"https://api.github.com/users/dongjoon-hyun/orgs","repos_url":"https://api.github.com/users/dongjoon-hyun/repos","events_url":"https://api.github.com/users/dongjoon-hyun/events{/privacy}","received_events_url":"https://api.github.com/users/dongjoon-hyun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-18T20:55:58Z","updated_at":"2016-03-18T21:29:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/11831","html_url":"https://github.com/apache/spark/pull/11831","diff_url":"https://github.com/apache/spark/pull/11831.diff","patch_url":"https://github.com/apache/spark/pull/11831.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\n[Spark Coding Style Guide](https://cwiki.apache.org/confluence/display/SPARK/Spark+Code+Style+Guide) has 100-character limit on lines, but it's disabled for Java since 11/09/15. This PR enables **LineLength** checkstyle again. To help that, this also introduces **RedundantImport** and **RedundantModifier**, too. The following is the diff on `checkstyle.xml`.\r\n\r\n```xml\r\n-        <!-- TODO: 11/09/15 disabled - the lengths are currently > 100 in many places -->\r\n-        <!--\r\n         <module name=\"LineLength\">\r\n             <property name=\"max\" value=\"100\"/>\r\n             <property name=\"ignorePattern\" value=\"^package.*|^import.*|a href|href|http://|https://|ftp://\"/>\r\n         </module>\r\n-        -->\r\n         <module name=\"NoLineWrap\"/>\r\n         <module name=\"EmptyBlock\">\r\n             <property name=\"option\" value=\"TEXT\"/>\r\n@@ -167,5 +164,7 @@\r\n         </module>\r\n         <module name=\"CommentsIndentation\"/>\r\n         <module name=\"UnusedImports\"/>\r\n+        <module name=\"RedundantImport\"/>\r\n+        <module name=\"RedundantModifier\"/>\r\n```\r\n\r\n## How was this patch tested?\r\n\r\nCurrently, `lint-java` is disabled in Jenkins. It needs a manual test.\r\nAfter passing the Jenkins tests, `dev/lint-java` should passes locally.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/198549581","html_url":"https://github.com/apache/spark/pull/11831#issuecomment-198549581","issue_url":"https://api.github.com/repos/apache/spark/issues/11831","id":198549581,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T21:29:03Z","updated_at":"2016-03-18T21:29:03Z","body":"Test FAILed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/53566/\nTest FAILed."}}