{"action":"created","comment":{"url":"https://api.github.com/repos/rohlikcz/nette-code-checker/pulls/comments/38085569","id":38085569,"diff_hunk":"@@ -0,0 +1,29 @@\n+<?php\n+\n+namespace CodeCheckers;\n+\n+use Nette\\Object;\n+use Nette\\Utils\\Strings;\n+\n+\n+\n+class LineLengthChecker extends Object\n+{\n+\n+\tpublic static function createLineLengthChecker($maxLineLength = 120)\n+\t{\n+\t\treturn function ($checker, $s) use ($maxLineLength) {\n+\t\t\tif (!$checker->is('php') && !$checker->is('phpt')) {\n+\t\t\t\treturn;\n+\t\t\t}\n+\n+\t\t\t$i = 1;\n+\t\t\tforeach (explode(\"\\n\", $s) as $line) {\n+\t\t\t\tif (Strings::length($line) > $maxLineLength && !Strings::contains($line, '__construct')) {","path":"src/CodeCheckers/LineLengthChecker.php","position":null,"original_position":22,"commit_id":"c6854c0d75d5c919862e94f4ccea801bbc2c841a","original_commit_id":"f1e727e8496b6d8485fce264bc20f0d48dd1e0c3","user":{"login":"mzk","id":382475,"avatar_url":"https://avatars.githubusercontent.com/u/382475?v=3","gravatar_id":"","url":"https://api.github.com/users/mzk","html_url":"https://github.com/mzk","followers_url":"https://api.github.com/users/mzk/followers","following_url":"https://api.github.com/users/mzk/following{/other_user}","gists_url":"https://api.github.com/users/mzk/gists{/gist_id}","starred_url":"https://api.github.com/users/mzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzk/subscriptions","organizations_url":"https://api.github.com/users/mzk/orgs","repos_url":"https://api.github.com/users/mzk/repos","events_url":"https://api.github.com/users/mzk/events{/privacy}","received_events_url":"https://api.github.com/users/mzk/received_events","type":"User","site_admin":false},"body":"pak to dopadne, že se to v __construct odentruje => sníží se délka řákdů ale počet závislostí bude stejný :(\r\n\r\nupravit jsem to a je tam i __construct ","created_at":"2015-08-27T11:35:37Z","updated_at":"2015-08-27T11:35:37Z","html_url":"https://github.com/rohlikcz/nette-code-checker/pull/3#discussion_r38085569","pull_request_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/rohlikcz/nette-code-checker/pulls/comments/38085569"},"html":{"href":"https://github.com/rohlikcz/nette-code-checker/pull/3#discussion_r38085569"},"pull_request":{"href":"https://api.github.com/repos/rohlikcz/nette-code-checker/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/rohlikcz/nette-code-checker/pulls/3","id":43450139,"html_url":"https://github.com/rohlikcz/nette-code-checker/pull/3","diff_url":"https://github.com/rohlikcz/nette-code-checker/pull/3.diff","patch_url":"https://github.com/rohlikcz/nette-code-checker/pull/3.patch","issue_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/issues/3","number":3,"state":"open","locked":false,"title":"Add LineLength Checker","user":{"login":"mzk","id":382475,"avatar_url":"https://avatars.githubusercontent.com/u/382475?v=3","gravatar_id":"","url":"https://api.github.com/users/mzk","html_url":"https://github.com/mzk","followers_url":"https://api.github.com/users/mzk/followers","following_url":"https://api.github.com/users/mzk/following{/other_user}","gists_url":"https://api.github.com/users/mzk/gists{/gist_id}","starred_url":"https://api.github.com/users/mzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzk/subscriptions","organizations_url":"https://api.github.com/users/mzk/orgs","repos_url":"https://api.github.com/users/mzk/repos","events_url":"https://api.github.com/users/mzk/events{/privacy}","received_events_url":"https://api.github.com/users/mzk/received_events","type":"User","site_admin":false},"body":"pouze warningy když je moc dlouhý řádek. \r\nje tam nastaveno 210 znaků, k diskuzi","created_at":"2015-08-26T20:49:10Z","updated_at":"2015-08-27T11:35:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62f02843c2f8574a1f2abafce0060be534e1f0d0","assignee":{"login":"mzk","id":382475,"avatar_url":"https://avatars.githubusercontent.com/u/382475?v=3","gravatar_id":"","url":"https://api.github.com/users/mzk","html_url":"https://github.com/mzk","followers_url":"https://api.github.com/users/mzk/followers","following_url":"https://api.github.com/users/mzk/following{/other_user}","gists_url":"https://api.github.com/users/mzk/gists{/gist_id}","starred_url":"https://api.github.com/users/mzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzk/subscriptions","organizations_url":"https://api.github.com/users/mzk/orgs","repos_url":"https://api.github.com/users/mzk/repos","events_url":"https://api.github.com/users/mzk/events{/privacy}","received_events_url":"https://api.github.com/users/mzk/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/pulls/3/commits","review_comments_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/pulls/3/comments","review_comment_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/issues/3/comments","statuses_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/statuses/c6854c0d75d5c919862e94f4ccea801bbc2c841a","head":{"label":"mzk:line-checker","ref":"line-checker","sha":"c6854c0d75d5c919862e94f4ccea801bbc2c841a","user":{"login":"mzk","id":382475,"avatar_url":"https://avatars.githubusercontent.com/u/382475?v=3","gravatar_id":"","url":"https://api.github.com/users/mzk","html_url":"https://github.com/mzk","followers_url":"https://api.github.com/users/mzk/followers","following_url":"https://api.github.com/users/mzk/following{/other_user}","gists_url":"https://api.github.com/users/mzk/gists{/gist_id}","starred_url":"https://api.github.com/users/mzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzk/subscriptions","organizations_url":"https://api.github.com/users/mzk/orgs","repos_url":"https://api.github.com/users/mzk/repos","events_url":"https://api.github.com/users/mzk/events{/privacy}","received_events_url":"https://api.github.com/users/mzk/received_events","type":"User","site_admin":false},"repo":{"id":40561355,"name":"code-checker","full_name":"mzk/code-checker","owner":{"login":"mzk","id":382475,"avatar_url":"https://avatars.githubusercontent.com/u/382475?v=3","gravatar_id":"","url":"https://api.github.com/users/mzk","html_url":"https://github.com/mzk","followers_url":"https://api.github.com/users/mzk/followers","following_url":"https://api.github.com/users/mzk/following{/other_user}","gists_url":"https://api.github.com/users/mzk/gists{/gist_id}","starred_url":"https://api.github.com/users/mzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzk/subscriptions","organizations_url":"https://api.github.com/users/mzk/orgs","repos_url":"https://api.github.com/users/mzk/repos","events_url":"https://api.github.com/users/mzk/events{/privacy}","received_events_url":"https://api.github.com/users/mzk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mzk/code-checker","description":"A simple tool to source code against a set of coding standards.","fork":true,"url":"https://api.github.com/repos/mzk/code-checker","forks_url":"https://api.github.com/repos/mzk/code-checker/forks","keys_url":"https://api.github.com/repos/mzk/code-checker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mzk/code-checker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mzk/code-checker/teams","hooks_url":"https://api.github.com/repos/mzk/code-checker/hooks","issue_events_url":"https://api.github.com/repos/mzk/code-checker/issues/events{/number}","events_url":"https://api.github.com/repos/mzk/code-checker/events","assignees_url":"https://api.github.com/repos/mzk/code-checker/assignees{/user}","branches_url":"https://api.github.com/repos/mzk/code-checker/branches{/branch}","tags_url":"https://api.github.com/repos/mzk/code-checker/tags","blobs_url":"https://api.github.com/repos/mzk/code-checker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mzk/code-checker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mzk/code-checker/git/refs{/sha}","trees_url":"https://api.github.com/repos/mzk/code-checker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mzk/code-checker/statuses/{sha}","languages_url":"https://api.github.com/repos/mzk/code-checker/languages","stargazers_url":"https://api.github.com/repos/mzk/code-checker/stargazers","contributors_url":"https://api.github.com/repos/mzk/code-checker/contributors","subscribers_url":"https://api.github.com/repos/mzk/code-checker/subscribers","subscription_url":"https://api.github.com/repos/mzk/code-checker/subscription","commits_url":"https://api.github.com/repos/mzk/code-checker/commits{/sha}","git_commits_url":"https://api.github.com/repos/mzk/code-checker/git/commits{/sha}","comments_url":"https://api.github.com/repos/mzk/code-checker/comments{/number}","issue_comment_url":"https://api.github.com/repos/mzk/code-checker/issues/comments{/number}","contents_url":"https://api.github.com/repos/mzk/code-checker/contents/{+path}","compare_url":"https://api.github.com/repos/mzk/code-checker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mzk/code-checker/merges","archive_url":"https://api.github.com/repos/mzk/code-checker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mzk/code-checker/downloads","issues_url":"https://api.github.com/repos/mzk/code-checker/issues{/number}","pulls_url":"https://api.github.com/repos/mzk/code-checker/pulls{/number}","milestones_url":"https://api.github.com/repos/mzk/code-checker/milestones{/number}","notifications_url":"https://api.github.com/repos/mzk/code-checker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mzk/code-checker/labels{/name}","releases_url":"https://api.github.com/repos/mzk/code-checker/releases{/id}","created_at":"2015-08-11T19:38:22Z","updated_at":"2015-08-11T19:38:22Z","pushed_at":"2015-08-27T11:32:04Z","git_url":"git://github.com/mzk/code-checker.git","ssh_url":"git@github.com:mzk/code-checker.git","clone_url":"https://github.com/mzk/code-checker.git","svn_url":"https://github.com/mzk/code-checker","homepage":"","size":255,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rohlikcz:devel","ref":"devel","sha":"79b8651a8c044d94b2be460657b9e4fd17067c75","user":{"login":"rohlikcz","id":8429196,"avatar_url":"https://avatars.githubusercontent.com/u/8429196?v=3","gravatar_id":"","url":"https://api.github.com/users/rohlikcz","html_url":"https://github.com/rohlikcz","followers_url":"https://api.github.com/users/rohlikcz/followers","following_url":"https://api.github.com/users/rohlikcz/following{/other_user}","gists_url":"https://api.github.com/users/rohlikcz/gists{/gist_id}","starred_url":"https://api.github.com/users/rohlikcz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohlikcz/subscriptions","organizations_url":"https://api.github.com/users/rohlikcz/orgs","repos_url":"https://api.github.com/users/rohlikcz/repos","events_url":"https://api.github.com/users/rohlikcz/events{/privacy}","received_events_url":"https://api.github.com/users/rohlikcz/received_events","type":"Organization","site_admin":false},"repo":{"id":41165631,"name":"nette-code-checker","full_name":"rohlikcz/nette-code-checker","owner":{"login":"rohlikcz","id":8429196,"avatar_url":"https://avatars.githubusercontent.com/u/8429196?v=3","gravatar_id":"","url":"https://api.github.com/users/rohlikcz","html_url":"https://github.com/rohlikcz","followers_url":"https://api.github.com/users/rohlikcz/followers","following_url":"https://api.github.com/users/rohlikcz/following{/other_user}","gists_url":"https://api.github.com/users/rohlikcz/gists{/gist_id}","starred_url":"https://api.github.com/users/rohlikcz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohlikcz/subscriptions","organizations_url":"https://api.github.com/users/rohlikcz/orgs","repos_url":"https://api.github.com/users/rohlikcz/repos","events_url":"https://api.github.com/users/rohlikcz/events{/privacy}","received_events_url":"https://api.github.com/users/rohlikcz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rohlikcz/nette-code-checker","description":"A simple tool to source code against a set of coding standards.","fork":true,"url":"https://api.github.com/repos/rohlikcz/nette-code-checker","forks_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/forks","keys_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/teams","hooks_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/hooks","issue_events_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/issues/events{/number}","events_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/events","assignees_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/assignees{/user}","branches_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/branches{/branch}","tags_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/tags","blobs_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/git/refs{/sha}","trees_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/statuses/{sha}","languages_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/languages","stargazers_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/stargazers","contributors_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/contributors","subscribers_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/subscribers","subscription_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/subscription","commits_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/commits{/sha}","git_commits_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/git/commits{/sha}","comments_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/comments{/number}","issue_comment_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/issues/comments{/number}","contents_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/contents/{+path}","compare_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/merges","archive_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/downloads","issues_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/issues{/number}","pulls_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/pulls{/number}","milestones_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/milestones{/number}","notifications_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/labels{/name}","releases_url":"https://api.github.com/repos/rohlikcz/nette-code-checker/releases{/id}","created_at":"2015-08-21T16:19:56Z","updated_at":"2015-08-26T07:44:06Z","pushed_at":"2015-08-27T11:32:04Z","git_url":"git://github.com/rohlikcz/nette-code-checker.git","ssh_url":"git@github.com:rohlikcz/nette-code-checker.git","clone_url":"https://github.com/rohlikcz/nette-code-checker.git","svn_url":"https://github.com/rohlikcz/nette-code-checker","homepage":"","size":255,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rohlikcz/nette-code-checker/pulls/3"},"html":{"href":"https://github.com/rohlikcz/nette-code-checker/pull/3"},"issue":{"href":"https://api.github.com/repos/rohlikcz/nette-code-checker/issues/3"},"comments":{"href":"https://api.github.com/repos/rohlikcz/nette-code-checker/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/rohlikcz/nette-code-checker/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/rohlikcz/nette-code-checker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rohlikcz/nette-code-checker/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/rohlikcz/nette-code-checker/statuses/c6854c0d75d5c919862e94f4ccea801bbc2c841a"}}}}