{"action":"created","issue":{"url":"https://api.github.com/repos/scalastyle/scalastyle/issues/166","labels_url":"https://api.github.com/repos/scalastyle/scalastyle/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/scalastyle/scalastyle/issues/166/comments","events_url":"https://api.github.com/repos/scalastyle/scalastyle/issues/166/events","html_url":"https://github.com/scalastyle/scalastyle/issues/166","id":111414272,"number":166,"title":"MethodLengthChecker should not count comments","user":{"login":"lordgordon","id":7745293,"avatar_url":"https://avatars.githubusercontent.com/u/7745293?v=3","gravatar_id":"","url":"https://api.github.com/users/lordgordon","html_url":"https://github.com/lordgordon","followers_url":"https://api.github.com/users/lordgordon/followers","following_url":"https://api.github.com/users/lordgordon/following{/other_user}","gists_url":"https://api.github.com/users/lordgordon/gists{/gist_id}","starred_url":"https://api.github.com/users/lordgordon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordgordon/subscriptions","organizations_url":"https://api.github.com/users/lordgordon/orgs","repos_url":"https://api.github.com/users/lordgordon/repos","events_url":"https://api.github.com/users/lordgordon/events{/privacy}","received_events_url":"https://api.github.com/users/lordgordon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scalastyle/scalastyle/labels/feature","name":"feature","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-14T14:45:20Z","updated_at":"2015-10-26T16:26:53Z","closed_at":null,"body":"Hi there,\r\n\r\nI just noticed that `MethodLengthChecker` is raised independently of the nature of the lines: I have a method with 23 lines of actual code, yet `MethodLengthChecker` warning is raised. \r\nIn fact my method is longer than 50 lines thanks to multiple comments.\r\n\r\nIt's possible to have this warning raised only counting the effective code, ignoring commented lines (ie lines starting with // or inside a multiline comment)?\r\n\r\nThanks\r\n\r\n*edit:*\r\nScala: 2.11.6\r\nsbt: 0.13.8\r\nScala Style: 0.7.0\r\n"},"comment":{"url":"https://api.github.com/repos/scalastyle/scalastyle/issues/comments/151196714","html_url":"https://github.com/scalastyle/scalastyle/issues/166#issuecomment-151196714","issue_url":"https://api.github.com/repos/scalastyle/scalastyle/issues/166","id":151196714,"user":{"login":"shishkin","id":124065,"avatar_url":"https://avatars.githubusercontent.com/u/124065?v=3","gravatar_id":"","url":"https://api.github.com/users/shishkin","html_url":"https://github.com/shishkin","followers_url":"https://api.github.com/users/shishkin/followers","following_url":"https://api.github.com/users/shishkin/following{/other_user}","gists_url":"https://api.github.com/users/shishkin/gists{/gist_id}","starred_url":"https://api.github.com/users/shishkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shishkin/subscriptions","organizations_url":"https://api.github.com/users/shishkin/orgs","repos_url":"https://api.github.com/users/shishkin/repos","events_url":"https://api.github.com/users/shishkin/events{/privacy}","received_events_url":"https://api.github.com/users/shishkin/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T16:26:53Z","updated_at":"2015-10-26T16:26:53Z","body":"@jawshooah Thanks. I didn't know ScalaStyle is aimed to not be opinionated. I though it's the other way around ;) Then of course, it makes sense to accommodate this as an optional feature."}}