{"action":"created","comment":{"url":"https://api.github.com/repos/mwz/sonar-scala/pulls/comments/180231009","pull_request_review_id":110617410,"id":180231009,"diff_hunk":"@@ -21,10 +21,15 @@ package com.mwz.sonar.scala.sensor\n import scala.annotation.tailrec\n import scalariform.lexer.{Token, Tokens}\n \n+import scala.util.matching.Regex\n+\n /** Scala Sensor Metrics */\n object Measures {\n+\n+  val NewLineRegex: Regex = \"(\\r\\n)|\\r|\\n\".r\n+\n   def countClasses(tokens: List[Token]): Int = {\n-    tokens.foldLeft(0) {\n+    tokens.foldLeft(0) { // scalastyle:ignore LiteralArguments","path":"src/main/scala/com/mwz/sonar/scala/sensor/Measures.scala","position":17,"original_position":13,"commit_id":"98be2c68a6338fec6e437a958aa2179edd709b13","original_commit_id":"95bfd67df1e3f323f93b2005daebefe9d942c951","user":{"login":"mwz","id":1190768,"avatar_url":"https://avatars0.githubusercontent.com/u/1190768?v=4","gravatar_id":"","url":"https://api.github.com/users/mwz","html_url":"https://github.com/mwz","followers_url":"https://api.github.com/users/mwz/followers","following_url":"https://api.github.com/users/mwz/following{/other_user}","gists_url":"https://api.github.com/users/mwz/gists{/gist_id}","starred_url":"https://api.github.com/users/mwz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwz/subscriptions","organizations_url":"https://api.github.com/users/mwz/orgs","repos_url":"https://api.github.com/users/mwz/repos","events_url":"https://api.github.com/users/mwz/events{/privacy}","received_events_url":"https://api.github.com/users/mwz/received_events","type":"User","site_admin":false},"body":"Let's merge this PR and see what issues we have left.","created_at":"2018-04-09T21:07:36Z","updated_at":"2018-04-09T21:07:36Z","html_url":"https://github.com/mwz/sonar-scala/pull/47#discussion_r180231009","pull_request_url":"https://api.github.com/repos/mwz/sonar-scala/pulls/47","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/mwz/sonar-scala/pulls/comments/180231009"},"html":{"href":"https://github.com/mwz/sonar-scala/pull/47#discussion_r180231009"},"pull_request":{"href":"https://api.github.com/repos/mwz/sonar-scala/pulls/47"}},"in_reply_to_id":180110041},"pull_request":{"url":"https://api.github.com/repos/mwz/sonar-scala/pulls/47","id":180184486,"html_url":"https://github.com/mwz/sonar-scala/pull/47","diff_url":"https://github.com/mwz/sonar-scala/pull/47.diff","patch_url":"https://github.com/mwz/sonar-scala/pull/47.patch","issue_url":"https://api.github.com/repos/mwz/sonar-scala/issues/47","number":47,"state":"open","locked":false,"title":"Fixing some ScalaStyle issues","user":{"login":"mwz","id":1190768,"avatar_url":"https://avatars0.githubusercontent.com/u/1190768?v=4","gravatar_id":"","url":"https://api.github.com/users/mwz","html_url":"https://github.com/mwz","followers_url":"https://api.github.com/users/mwz/followers","following_url":"https://api.github.com/users/mwz/following{/other_user}","gists_url":"https://api.github.com/users/mwz/gists{/gist_id}","starred_url":"https://api.github.com/users/mwz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwz/subscriptions","organizations_url":"https://api.github.com/users/mwz/orgs","repos_url":"https://api.github.com/users/mwz/repos","events_url":"https://api.github.com/users/mwz/events{/privacy}","received_events_url":"https://api.github.com/users/mwz/received_events","type":"User","site_admin":false},"body":"I know that ScalaStyle sensor will be refactored soon, but in the meantime I fixed the following style issues (linked to #25):\r\n- [LiteralArguments](https://sonar.sonar-scala.com/project/issues?resolved=false&rules=Scalastyle%3ALiteralArguments&id=sonar-scala)\r\n- [ProcedureDeclarationChecker](https://sonar.sonar-scala.com/project/issues?id=sonar-scala&resolved=false&rules=Scalastyle%3Ascalastyle_ProcedureDeclarationChecker)\r\n- [FieldName](https://sonar.sonar-scala.com/project/issues?id=sonar-scala&resolved=false&rules=Scalastyle%3AFieldName)\r\n- [SpaceAfterCommentStartChecker](https://sonar.sonar-scala.com/project/issues?id=sonar-scala&resolved=false&rules=Scalastyle%3Ascalastyle_SpaceAfterCommentStartChecker)","created_at":"2018-04-08T22:35:48Z","updated_at":"2018-04-09T21:07:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2c472dea26dc4c4eda3fb0bbe5fa4fcebca3b146","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mwz/sonar-scala/pulls/47/commits","review_comments_url":"https://api.github.com/repos/mwz/sonar-scala/pulls/47/comments","review_comment_url":"https://api.github.com/repos/mwz/sonar-scala/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mwz/sonar-scala/issues/47/comments","statuses_url":"https://api.github.com/repos/mwz/sonar-scala/statuses/98be2c68a6338fec6e437a958aa2179edd709b13","head":{"label":"mwz:scalastyle-field-name","ref":"scalastyle-field-name","sha":"98be2c68a6338fec6e437a958aa2179edd709b13","user":{"login":"mwz","id":1190768,"avatar_url":"https://avatars0.githubusercontent.com/u/1190768?v=4","gravatar_id":"","url":"https://api.github.com/users/mwz","html_url":"https://github.com/mwz","followers_url":"https://api.github.com/users/mwz/followers","following_url":"https://api.github.com/users/mwz/following{/other_user}","gists_url":"https://api.github.com/users/mwz/gists{/gist_id}","starred_url":"https://api.github.com/users/mwz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwz/subscriptions","organizations_url":"https://api.github.com/users/mwz/orgs","repos_url":"https://api.github.com/users/mwz/repos","events_url":"https://api.github.com/users/mwz/events{/privacy}","received_events_url":"https://api.github.com/users/mwz/received_events","type":"User","site_admin":false},"repo":{"id":118381706,"name":"sonar-scala","full_name":"mwz/sonar-scala","owner":{"login":"mwz","id":1190768,"avatar_url":"https://avatars0.githubusercontent.com/u/1190768?v=4","gravatar_id":"","url":"https://api.github.com/users/mwz","html_url":"https://github.com/mwz","followers_url":"https://api.github.com/users/mwz/followers","following_url":"https://api.github.com/users/mwz/following{/other_user}","gists_url":"https://api.github.com/users/mwz/gists{/gist_id}","starred_url":"https://api.github.com/users/mwz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwz/subscriptions","organizations_url":"https://api.github.com/users/mwz/orgs","repos_url":"https://api.github.com/users/mwz/repos","events_url":"https://api.github.com/users/mwz/events{/privacy}","received_events_url":"https://api.github.com/users/mwz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mwz/sonar-scala","description":"SonarQube plugin for static code analysis of Scala projects.","fork":false,"url":"https://api.github.com/repos/mwz/sonar-scala","forks_url":"https://api.github.com/repos/mwz/sonar-scala/forks","keys_url":"https://api.github.com/repos/mwz/sonar-scala/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mwz/sonar-scala/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mwz/sonar-scala/teams","hooks_url":"https://api.github.com/repos/mwz/sonar-scala/hooks","issue_events_url":"https://api.github.com/repos/mwz/sonar-scala/issues/events{/number}","events_url":"https://api.github.com/repos/mwz/sonar-scala/events","assignees_url":"https://api.github.com/repos/mwz/sonar-scala/assignees{/user}","branches_url":"https://api.github.com/repos/mwz/sonar-scala/branches{/branch}","tags_url":"https://api.github.com/repos/mwz/sonar-scala/tags","blobs_url":"https://api.github.com/repos/mwz/sonar-scala/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mwz/sonar-scala/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mwz/sonar-scala/git/refs{/sha}","trees_url":"https://api.github.com/repos/mwz/sonar-scala/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mwz/sonar-scala/statuses/{sha}","languages_url":"https://api.github.com/repos/mwz/sonar-scala/languages","stargazers_url":"https://api.github.com/repos/mwz/sonar-scala/stargazers","contributors_url":"https://api.github.com/repos/mwz/sonar-scala/contributors","subscribers_url":"https://api.github.com/repos/mwz/sonar-scala/subscribers","subscription_url":"https://api.github.com/repos/mwz/sonar-scala/subscription","commits_url":"https://api.github.com/repos/mwz/sonar-scala/commits{/sha}","git_commits_url":"https://api.github.com/repos/mwz/sonar-scala/git/commits{/sha}","comments_url":"https://api.github.com/repos/mwz/sonar-scala/comments{/number}","issue_comment_url":"https://api.github.com/repos/mwz/sonar-scala/issues/comments{/number}","contents_url":"https://api.github.com/repos/mwz/sonar-scala/contents/{+path}","compare_url":"https://api.github.com/repos/mwz/sonar-scala/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mwz/sonar-scala/merges","archive_url":"https://api.github.com/repos/mwz/sonar-scala/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mwz/sonar-scala/downloads","issues_url":"https://api.github.com/repos/mwz/sonar-scala/issues{/number}","pulls_url":"https://api.github.com/repos/mwz/sonar-scala/pulls{/number}","milestones_url":"https://api.github.com/repos/mwz/sonar-scala/milestones{/number}","notifications_url":"https://api.github.com/repos/mwz/sonar-scala/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mwz/sonar-scala/labels{/name}","releases_url":"https://api.github.com/repos/mwz/sonar-scala/releases{/id}","deployments_url":"https://api.github.com/repos/mwz/sonar-scala/deployments","created_at":"2018-01-21T23:04:15Z","updated_at":"2018-04-08T22:42:17Z","pushed_at":"2018-04-09T20:54:49Z","git_url":"git://github.com/mwz/sonar-scala.git","ssh_url":"git@github.com:mwz/sonar-scala.git","clone_url":"https://github.com/mwz/sonar-scala.git","svn_url":"https://github.com/mwz/sonar-scala","homepage":"","size":988,"stargazers_count":9,"watchers_count":9,"language":"Scala","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0"},"forks":5,"open_issues":18,"watchers":9,"default_branch":"master"}},"base":{"label":"mwz:master","ref":"master","sha":"940f19f9b6e76ed61ce51c8e443f65c9e4a7a38f","user":{"login":"mwz","id":1190768,"avatar_url":"https://avatars0.githubusercontent.com/u/1190768?v=4","gravatar_id":"","url":"https://api.github.com/users/mwz","html_url":"https://github.com/mwz","followers_url":"https://api.github.com/users/mwz/followers","following_url":"https://api.github.com/users/mwz/following{/other_user}","gists_url":"https://api.github.com/users/mwz/gists{/gist_id}","starred_url":"https://api.github.com/users/mwz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwz/subscriptions","organizations_url":"https://api.github.com/users/mwz/orgs","repos_url":"https://api.github.com/users/mwz/repos","events_url":"https://api.github.com/users/mwz/events{/privacy}","received_events_url":"https://api.github.com/users/mwz/received_events","type":"User","site_admin":false},"repo":{"id":118381706,"name":"sonar-scala","full_name":"mwz/sonar-scala","owner":{"login":"mwz","id":1190768,"avatar_url":"https://avatars0.githubusercontent.com/u/1190768?v=4","gravatar_id":"","url":"https://api.github.com/users/mwz","html_url":"https://github.com/mwz","followers_url":"https://api.github.com/users/mwz/followers","following_url":"https://api.github.com/users/mwz/following{/other_user}","gists_url":"https://api.github.com/users/mwz/gists{/gist_id}","starred_url":"https://api.github.com/users/mwz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwz/subscriptions","organizations_url":"https://api.github.com/users/mwz/orgs","repos_url":"https://api.github.com/users/mwz/repos","events_url":"https://api.github.com/users/mwz/events{/privacy}","received_events_url":"https://api.github.com/users/mwz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mwz/sonar-scala","description":"SonarQube plugin for static code analysis of Scala projects.","fork":false,"url":"https://api.github.com/repos/mwz/sonar-scala","forks_url":"https://api.github.com/repos/mwz/sonar-scala/forks","keys_url":"https://api.github.com/repos/mwz/sonar-scala/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mwz/sonar-scala/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mwz/sonar-scala/teams","hooks_url":"https://api.github.com/repos/mwz/sonar-scala/hooks","issue_events_url":"https://api.github.com/repos/mwz/sonar-scala/issues/events{/number}","events_url":"https://api.github.com/repos/mwz/sonar-scala/events","assignees_url":"https://api.github.com/repos/mwz/sonar-scala/assignees{/user}","branches_url":"https://api.github.com/repos/mwz/sonar-scala/branches{/branch}","tags_url":"https://api.github.com/repos/mwz/sonar-scala/tags","blobs_url":"https://api.github.com/repos/mwz/sonar-scala/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mwz/sonar-scala/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mwz/sonar-scala/git/refs{/sha}","trees_url":"https://api.github.com/repos/mwz/sonar-scala/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mwz/sonar-scala/statuses/{sha}","languages_url":"https://api.github.com/repos/mwz/sonar-scala/languages","stargazers_url":"https://api.github.com/repos/mwz/sonar-scala/stargazers","contributors_url":"https://api.github.com/repos/mwz/sonar-scala/contributors","subscribers_url":"https://api.github.com/repos/mwz/sonar-scala/subscribers","subscription_url":"https://api.github.com/repos/mwz/sonar-scala/subscription","commits_url":"https://api.github.com/repos/mwz/sonar-scala/commits{/sha}","git_commits_url":"https://api.github.com/repos/mwz/sonar-scala/git/commits{/sha}","comments_url":"https://api.github.com/repos/mwz/sonar-scala/comments{/number}","issue_comment_url":"https://api.github.com/repos/mwz/sonar-scala/issues/comments{/number}","contents_url":"https://api.github.com/repos/mwz/sonar-scala/contents/{+path}","compare_url":"https://api.github.com/repos/mwz/sonar-scala/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mwz/sonar-scala/merges","archive_url":"https://api.github.com/repos/mwz/sonar-scala/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mwz/sonar-scala/downloads","issues_url":"https://api.github.com/repos/mwz/sonar-scala/issues{/number}","pulls_url":"https://api.github.com/repos/mwz/sonar-scala/pulls{/number}","milestones_url":"https://api.github.com/repos/mwz/sonar-scala/milestones{/number}","notifications_url":"https://api.github.com/repos/mwz/sonar-scala/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mwz/sonar-scala/labels{/name}","releases_url":"https://api.github.com/repos/mwz/sonar-scala/releases{/id}","deployments_url":"https://api.github.com/repos/mwz/sonar-scala/deployments","created_at":"2018-01-21T23:04:15Z","updated_at":"2018-04-08T22:42:17Z","pushed_at":"2018-04-09T20:54:49Z","git_url":"git://github.com/mwz/sonar-scala.git","ssh_url":"git@github.com:mwz/sonar-scala.git","clone_url":"https://github.com/mwz/sonar-scala.git","svn_url":"https://github.com/mwz/sonar-scala","homepage":"","size":988,"stargazers_count":9,"watchers_count":9,"language":"Scala","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"lgpl-3.0","name":"GNU Lesser General Public License v3.0","spdx_id":"LGPL-3.0","url":"https://api.github.com/licenses/lgpl-3.0"},"forks":5,"open_issues":18,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mwz/sonar-scala/pulls/47"},"html":{"href":"https://github.com/mwz/sonar-scala/pull/47"},"issue":{"href":"https://api.github.com/repos/mwz/sonar-scala/issues/47"},"comments":{"href":"https://api.github.com/repos/mwz/sonar-scala/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/mwz/sonar-scala/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/mwz/sonar-scala/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mwz/sonar-scala/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/mwz/sonar-scala/statuses/98be2c68a6338fec6e437a958aa2179edd709b13"}},"author_association":"OWNER"}}
{"actor":{"display_login":"mwz"}}