{"action":"created","comment":{"url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/pulls/comments/52337978","id":52337978,"diff_hunk":"@@ -57,22 +57,28 @@ def analysis_files\n       end\n \n       def scalastyle_jar\n-        '/home/app/scalastyle_2.11-0.6.0-batch.jar'\n+        '/home/app/scalastyle_2.11-0.8.0-batch.jar'\n       end\n \n       def scalastyle_config\n-        @engine_config['config'] || '/home/app/scalastyle_config.xml'\n+        @engine_config['config'] || '/code/scalastyle_config.xml'","path":"lib/cc/engine/scalastyle.rb","position":19,"original_position":19,"commit_id":"ceedcc7684005aae7fefdebb8e4cfccada4a4d33","original_commit_id":"ceedcc7684005aae7fefdebb8e4cfccada4a4d33","user":{"login":"pbrisbin","id":50812,"avatar_url":"https://avatars.githubusercontent.com/u/50812?v=3","gravatar_id":"","url":"https://api.github.com/users/pbrisbin","html_url":"https://github.com/pbrisbin","followers_url":"https://api.github.com/users/pbrisbin/followers","following_url":"https://api.github.com/users/pbrisbin/following{/other_user}","gists_url":"https://api.github.com/users/pbrisbin/gists{/gist_id}","starred_url":"https://api.github.com/users/pbrisbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbrisbin/subscriptions","organizations_url":"https://api.github.com/users/pbrisbin/orgs","repos_url":"https://api.github.com/users/pbrisbin/repos","events_url":"https://api.github.com/users/pbrisbin/events{/privacy}","received_events_url":"https://api.github.com/users/pbrisbin/received_events","type":"User","site_admin":false},"body":"Got it. So it sounds like this is analogous to a `.rubocop.yml` or `.eslintrc`. Typically, `codeclimate init` would generate one into the user's project (unless one's already present). We'll probably implement that functionality separately, so I think to de-couple the two changes, it'd be best if the engine used `/code/scalastyle_config.xml` when present and fell back to a `/home/app/scalastyle_config.xml` when not. That change can be deployed without impacting users, then we can work on `codeclimate init` after.","created_at":"2016-02-09T17:00:26Z","updated_at":"2016-02-09T17:00:26Z","html_url":"https://github.com/codeclimate-community/codeclimate-scalastyle/pull/3#discussion_r52337978","pull_request_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/pulls/comments/52337978"},"html":{"href":"https://github.com/codeclimate-community/codeclimate-scalastyle/pull/3#discussion_r52337978"},"pull_request":{"href":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/pulls/3","id":58530457,"html_url":"https://github.com/codeclimate-community/codeclimate-scalastyle/pull/3","diff_url":"https://github.com/codeclimate-community/codeclimate-scalastyle/pull/3.diff","patch_url":"https://github.com/codeclimate-community/codeclimate-scalastyle/pull/3.patch","issue_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/issues/3","number":3,"state":"open","locked":false,"title":"Upgrade to scalastyle 0.8.0","user":{"login":"matthewfarwell","id":71668,"avatar_url":"https://avatars.githubusercontent.com/u/71668?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewfarwell","html_url":"https://github.com/matthewfarwell","followers_url":"https://api.github.com/users/matthewfarwell/followers","following_url":"https://api.github.com/users/matthewfarwell/following{/other_user}","gists_url":"https://api.github.com/users/matthewfarwell/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewfarwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewfarwell/subscriptions","organizations_url":"https://api.github.com/users/matthewfarwell/orgs","repos_url":"https://api.github.com/users/matthewfarwell/repos","events_url":"https://api.github.com/users/matthewfarwell/events{/privacy}","received_events_url":"https://api.github.com/users/matthewfarwell/received_events","type":"User","site_admin":false},"body":"Use list of files from config\r\nList of errors now appears correctly","created_at":"2016-02-06T21:11:51Z","updated_at":"2016-02-09T17:00:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff2a28a01d3043aa544b22ccf3e12618bd58dd15","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/pulls/3/commits","review_comments_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/pulls/3/comments","review_comment_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/issues/3/comments","statuses_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/statuses/ceedcc7684005aae7fefdebb8e4cfccada4a4d33","head":{"label":"matthewfarwell:working","ref":"working","sha":"ceedcc7684005aae7fefdebb8e4cfccada4a4d33","user":{"login":"matthewfarwell","id":71668,"avatar_url":"https://avatars.githubusercontent.com/u/71668?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewfarwell","html_url":"https://github.com/matthewfarwell","followers_url":"https://api.github.com/users/matthewfarwell/followers","following_url":"https://api.github.com/users/matthewfarwell/following{/other_user}","gists_url":"https://api.github.com/users/matthewfarwell/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewfarwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewfarwell/subscriptions","organizations_url":"https://api.github.com/users/matthewfarwell/orgs","repos_url":"https://api.github.com/users/matthewfarwell/repos","events_url":"https://api.github.com/users/matthewfarwell/events{/privacy}","received_events_url":"https://api.github.com/users/matthewfarwell/received_events","type":"User","site_admin":false},"repo":{"id":50951868,"name":"codeclimate-scalastyle","full_name":"matthewfarwell/codeclimate-scalastyle","owner":{"login":"matthewfarwell","id":71668,"avatar_url":"https://avatars.githubusercontent.com/u/71668?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewfarwell","html_url":"https://github.com/matthewfarwell","followers_url":"https://api.github.com/users/matthewfarwell/followers","following_url":"https://api.github.com/users/matthewfarwell/following{/other_user}","gists_url":"https://api.github.com/users/matthewfarwell/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewfarwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewfarwell/subscriptions","organizations_url":"https://api.github.com/users/matthewfarwell/orgs","repos_url":"https://api.github.com/users/matthewfarwell/repos","events_url":"https://api.github.com/users/matthewfarwell/events{/privacy}","received_events_url":"https://api.github.com/users/matthewfarwell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matthewfarwell/codeclimate-scalastyle","description":"Code climate Analysis Engine for scalastyle","fork":true,"url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle","forks_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/forks","keys_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/teams","hooks_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/hooks","issue_events_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/issues/events{/number}","events_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/events","assignees_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/assignees{/user}","branches_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/branches{/branch}","tags_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/tags","blobs_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/git/refs{/sha}","trees_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/statuses/{sha}","languages_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/languages","stargazers_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/stargazers","contributors_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/contributors","subscribers_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/subscribers","subscription_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/subscription","commits_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/commits{/sha}","git_commits_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/git/commits{/sha}","comments_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/comments{/number}","issue_comment_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/issues/comments{/number}","contents_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/contents/{+path}","compare_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/merges","archive_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/downloads","issues_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/issues{/number}","pulls_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/pulls{/number}","milestones_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/milestones{/number}","notifications_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/labels{/name}","releases_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/releases{/id}","deployments_url":"https://api.github.com/repos/matthewfarwell/codeclimate-scalastyle/deployments","created_at":"2016-02-02T21:05:51Z","updated_at":"2016-02-02T21:05:51Z","pushed_at":"2016-02-06T21:10:08Z","git_url":"git://github.com/matthewfarwell/codeclimate-scalastyle.git","ssh_url":"git@github.com:matthewfarwell/codeclimate-scalastyle.git","clone_url":"https://github.com/matthewfarwell/codeclimate-scalastyle.git","svn_url":"https://github.com/matthewfarwell/codeclimate-scalastyle","homepage":null,"size":16710,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"codeclimate-community:master","ref":"master","sha":"51ec29ed7fb48c7e3da25fd5a81416ea0df35b50","user":{"login":"codeclimate-community","id":12756364,"avatar_url":"https://avatars.githubusercontent.com/u/12756364?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclimate-community","html_url":"https://github.com/codeclimate-community","followers_url":"https://api.github.com/users/codeclimate-community/followers","following_url":"https://api.github.com/users/codeclimate-community/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate-community/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate-community/subscriptions","organizations_url":"https://api.github.com/users/codeclimate-community/orgs","repos_url":"https://api.github.com/users/codeclimate-community/repos","events_url":"https://api.github.com/users/codeclimate-community/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate-community/received_events","type":"Organization","site_admin":false},"repo":{"id":38889954,"name":"codeclimate-scalastyle","full_name":"codeclimate-community/codeclimate-scalastyle","owner":{"login":"codeclimate-community","id":12756364,"avatar_url":"https://avatars.githubusercontent.com/u/12756364?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclimate-community","html_url":"https://github.com/codeclimate-community","followers_url":"https://api.github.com/users/codeclimate-community/followers","following_url":"https://api.github.com/users/codeclimate-community/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate-community/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate-community/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate-community/subscriptions","organizations_url":"https://api.github.com/users/codeclimate-community/orgs","repos_url":"https://api.github.com/users/codeclimate-community/repos","events_url":"https://api.github.com/users/codeclimate-community/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate-community/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeclimate-community/codeclimate-scalastyle","description":"Code climate Analysis Engine for scalastyle","fork":false,"url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle","forks_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/forks","keys_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/teams","hooks_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/hooks","issue_events_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/issues/events{/number}","events_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/events","assignees_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/assignees{/user}","branches_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/branches{/branch}","tags_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/tags","blobs_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/statuses/{sha}","languages_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/languages","stargazers_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/stargazers","contributors_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/contributors","subscribers_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/subscribers","subscription_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/subscription","commits_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/contents/{+path}","compare_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/merges","archive_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/downloads","issues_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/issues{/number}","pulls_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/pulls{/number}","milestones_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/milestones{/number}","notifications_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/labels{/name}","releases_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/releases{/id}","deployments_url":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/deployments","created_at":"2015-07-10T16:15:37Z","updated_at":"2016-01-11T15:25:00Z","pushed_at":"2016-02-06T21:11:52Z","git_url":"git://github.com/codeclimate-community/codeclimate-scalastyle.git","ssh_url":"git@github.com:codeclimate-community/codeclimate-scalastyle.git","clone_url":"https://github.com/codeclimate-community/codeclimate-scalastyle.git","svn_url":"https://github.com/codeclimate-community/codeclimate-scalastyle","homepage":null,"size":8307,"stargazers_count":1,"watchers_count":1,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/pulls/3"},"html":{"href":"https://github.com/codeclimate-community/codeclimate-scalastyle/pull/3"},"issue":{"href":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/issues/3"},"comments":{"href":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/codeclimate-community/codeclimate-scalastyle/statuses/ceedcc7684005aae7fefdebb8e4cfccada4a4d33"}}}}