{"action":"created","comment":{"url":"https://api.github.com/repos/mgechev/codelyzer/pulls/comments/166742406","pull_request_review_id":94855199,"id":166742406,"diff_hunk":"@@ -0,0 +1,100 @@\n+// tslint:disable:max-line-length\n+import { assertSuccess, assertAnnotated } from './testHelper';\n+import { Replacement } from 'tslint';\n+import { expect } from 'chai';\n+\n+describe('complexity', () => {\n+    describe('success', () => {\n+        it('should work with a lower level of complexity', () => {\n+            let source = `\n+      @Component({\n+        template: \\`\n+        <div *ngIf=\"a === '1' || (b === '2' && c.d !== e)\">","path":"test/complexityRule.spec.ts","position":12,"original_position":12,"commit_id":"fd9216cbaaf5de8f548997fff13b84f86df5fdd1","original_commit_id":"fd9216cbaaf5de8f548997fff13b84f86df5fdd1","user":{"login":"mgechev","id":455023,"avatar_url":"https://avatars1.githubusercontent.com/u/455023?v=4","gravatar_id":"","url":"https://api.github.com/users/mgechev","html_url":"https://github.com/mgechev","followers_url":"https://api.github.com/users/mgechev/followers","following_url":"https://api.github.com/users/mgechev/following{/other_user}","gists_url":"https://api.github.com/users/mgechev/gists{/gist_id}","starred_url":"https://api.github.com/users/mgechev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgechev/subscriptions","organizations_url":"https://api.github.com/users/mgechev/orgs","repos_url":"https://api.github.com/users/mgechev/repos","events_url":"https://api.github.com/users/mgechev/events{/privacy}","received_events_url":"https://api.github.com/users/mgechev/received_events","type":"User","site_admin":false},"body":"This will fail to parse if the expression is:\r\n\r\n```\r\na === '1' || b === '2' && c.d !== e\r\n```\r\nright?","created_at":"2018-02-07T20:17:46Z","updated_at":"2018-02-07T20:17:46Z","html_url":"https://github.com/mgechev/codelyzer/pull/509#discussion_r166742406","pull_request_url":"https://api.github.com/repos/mgechev/codelyzer/pulls/509","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/mgechev/codelyzer/pulls/comments/166742406"},"html":{"href":"https://github.com/mgechev/codelyzer/pull/509#discussion_r166742406"},"pull_request":{"href":"https://api.github.com/repos/mgechev/codelyzer/pulls/509"}}},"pull_request":{"url":"https://api.github.com/repos/mgechev/codelyzer/pulls/509","id":166968282,"html_url":"https://github.com/mgechev/codelyzer/pull/509","diff_url":"https://github.com/mgechev/codelyzer/pull/509.diff","patch_url":"https://github.com/mgechev/codelyzer/pull/509.patch","issue_url":"https://api.github.com/repos/mgechev/codelyzer/issues/509","number":509,"state":"open","locked":false,"title":"feat(rule): add templateConditionalComplexityRule","user":{"login":"wKoza","id":11403260,"avatar_url":"https://avatars2.githubusercontent.com/u/11403260?v=4","gravatar_id":"","url":"https://api.github.com/users/wKoza","html_url":"https://github.com/wKoza","followers_url":"https://api.github.com/users/wKoza/followers","following_url":"https://api.github.com/users/wKoza/following{/other_user}","gists_url":"https://api.github.com/users/wKoza/gists{/gist_id}","starred_url":"https://api.github.com/users/wKoza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wKoza/subscriptions","organizations_url":"https://api.github.com/users/wKoza/orgs","repos_url":"https://api.github.com/users/wKoza/repos","events_url":"https://api.github.com/users/wKoza/events{/privacy}","received_events_url":"https://api.github.com/users/wKoza/received_events","type":"User","site_admin":false},"body":"closes #508","created_at":"2018-02-03T16:14:09Z","updated_at":"2018-02-07T20:17:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6be9517c315af1759eb0fb2c1ef1ad1a88312705","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/mgechev/codelyzer/pulls/509/commits","review_comments_url":"https://api.github.com/repos/mgechev/codelyzer/pulls/509/comments","review_comment_url":"https://api.github.com/repos/mgechev/codelyzer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mgechev/codelyzer/issues/509/comments","statuses_url":"https://api.github.com/repos/mgechev/codelyzer/statuses/fd9216cbaaf5de8f548997fff13b84f86df5fdd1","head":{"label":"wKoza:gh-508","ref":"gh-508","sha":"fd9216cbaaf5de8f548997fff13b84f86df5fdd1","user":{"login":"wKoza","id":11403260,"avatar_url":"https://avatars2.githubusercontent.com/u/11403260?v=4","gravatar_id":"","url":"https://api.github.com/users/wKoza","html_url":"https://github.com/wKoza","followers_url":"https://api.github.com/users/wKoza/followers","following_url":"https://api.github.com/users/wKoza/following{/other_user}","gists_url":"https://api.github.com/users/wKoza/gists{/gist_id}","starred_url":"https://api.github.com/users/wKoza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wKoza/subscriptions","organizations_url":"https://api.github.com/users/wKoza/orgs","repos_url":"https://api.github.com/users/wKoza/repos","events_url":"https://api.github.com/users/wKoza/events{/privacy}","received_events_url":"https://api.github.com/users/wKoza/received_events","type":"User","site_admin":false},"repo":{"id":88645309,"name":"codelyzer","full_name":"wKoza/codelyzer","owner":{"login":"wKoza","id":11403260,"avatar_url":"https://avatars2.githubusercontent.com/u/11403260?v=4","gravatar_id":"","url":"https://api.github.com/users/wKoza","html_url":"https://github.com/wKoza","followers_url":"https://api.github.com/users/wKoza/followers","following_url":"https://api.github.com/users/wKoza/following{/other_user}","gists_url":"https://api.github.com/users/wKoza/gists{/gist_id}","starred_url":"https://api.github.com/users/wKoza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wKoza/subscriptions","organizations_url":"https://api.github.com/users/wKoza/orgs","repos_url":"https://api.github.com/users/wKoza/repos","events_url":"https://api.github.com/users/wKoza/events{/privacy}","received_events_url":"https://api.github.com/users/wKoza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wKoza/codelyzer","description":"Linting for Angular projects.","fork":true,"url":"https://api.github.com/repos/wKoza/codelyzer","forks_url":"https://api.github.com/repos/wKoza/codelyzer/forks","keys_url":"https://api.github.com/repos/wKoza/codelyzer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wKoza/codelyzer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wKoza/codelyzer/teams","hooks_url":"https://api.github.com/repos/wKoza/codelyzer/hooks","issue_events_url":"https://api.github.com/repos/wKoza/codelyzer/issues/events{/number}","events_url":"https://api.github.com/repos/wKoza/codelyzer/events","assignees_url":"https://api.github.com/repos/wKoza/codelyzer/assignees{/user}","branches_url":"https://api.github.com/repos/wKoza/codelyzer/branches{/branch}","tags_url":"https://api.github.com/repos/wKoza/codelyzer/tags","blobs_url":"https://api.github.com/repos/wKoza/codelyzer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wKoza/codelyzer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wKoza/codelyzer/git/refs{/sha}","trees_url":"https://api.github.com/repos/wKoza/codelyzer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wKoza/codelyzer/statuses/{sha}","languages_url":"https://api.github.com/repos/wKoza/codelyzer/languages","stargazers_url":"https://api.github.com/repos/wKoza/codelyzer/stargazers","contributors_url":"https://api.github.com/repos/wKoza/codelyzer/contributors","subscribers_url":"https://api.github.com/repos/wKoza/codelyzer/subscribers","subscription_url":"https://api.github.com/repos/wKoza/codelyzer/subscription","commits_url":"https://api.github.com/repos/wKoza/codelyzer/commits{/sha}","git_commits_url":"https://api.github.com/repos/wKoza/codelyzer/git/commits{/sha}","comments_url":"https://api.github.com/repos/wKoza/codelyzer/comments{/number}","issue_comment_url":"https://api.github.com/repos/wKoza/codelyzer/issues/comments{/number}","contents_url":"https://api.github.com/repos/wKoza/codelyzer/contents/{+path}","compare_url":"https://api.github.com/repos/wKoza/codelyzer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wKoza/codelyzer/merges","archive_url":"https://api.github.com/repos/wKoza/codelyzer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wKoza/codelyzer/downloads","issues_url":"https://api.github.com/repos/wKoza/codelyzer/issues{/number}","pulls_url":"https://api.github.com/repos/wKoza/codelyzer/pulls{/number}","milestones_url":"https://api.github.com/repos/wKoza/codelyzer/milestones{/number}","notifications_url":"https://api.github.com/repos/wKoza/codelyzer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wKoza/codelyzer/labels{/name}","releases_url":"https://api.github.com/repos/wKoza/codelyzer/releases{/id}","deployments_url":"https://api.github.com/repos/wKoza/codelyzer/deployments","created_at":"2017-04-18T16:10:37Z","updated_at":"2017-04-18T16:10:39Z","pushed_at":"2018-02-07T20:07:10Z","git_url":"git://github.com/wKoza/codelyzer.git","ssh_url":"git@github.com:wKoza/codelyzer.git","clone_url":"https://github.com/wKoza/codelyzer.git","svn_url":"https://github.com/wKoza/codelyzer","homepage":"http://codelyzer.com/","size":14660,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mgechev:master","ref":"master","sha":"f32295fbc4a4c5bac8a10099ff42349cf8f33e68","user":{"login":"mgechev","id":455023,"avatar_url":"https://avatars1.githubusercontent.com/u/455023?v=4","gravatar_id":"","url":"https://api.github.com/users/mgechev","html_url":"https://github.com/mgechev","followers_url":"https://api.github.com/users/mgechev/followers","following_url":"https://api.github.com/users/mgechev/following{/other_user}","gists_url":"https://api.github.com/users/mgechev/gists{/gist_id}","starred_url":"https://api.github.com/users/mgechev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgechev/subscriptions","organizations_url":"https://api.github.com/users/mgechev/orgs","repos_url":"https://api.github.com/users/mgechev/repos","events_url":"https://api.github.com/users/mgechev/events{/privacy}","received_events_url":"https://api.github.com/users/mgechev/received_events","type":"User","site_admin":false},"repo":{"id":51457456,"name":"codelyzer","full_name":"mgechev/codelyzer","owner":{"login":"mgechev","id":455023,"avatar_url":"https://avatars1.githubusercontent.com/u/455023?v=4","gravatar_id":"","url":"https://api.github.com/users/mgechev","html_url":"https://github.com/mgechev","followers_url":"https://api.github.com/users/mgechev/followers","following_url":"https://api.github.com/users/mgechev/following{/other_user}","gists_url":"https://api.github.com/users/mgechev/gists{/gist_id}","starred_url":"https://api.github.com/users/mgechev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgechev/subscriptions","organizations_url":"https://api.github.com/users/mgechev/orgs","repos_url":"https://api.github.com/users/mgechev/repos","events_url":"https://api.github.com/users/mgechev/events{/privacy}","received_events_url":"https://api.github.com/users/mgechev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mgechev/codelyzer","description":"Static analysis for Angular projects.","fork":false,"url":"https://api.github.com/repos/mgechev/codelyzer","forks_url":"https://api.github.com/repos/mgechev/codelyzer/forks","keys_url":"https://api.github.com/repos/mgechev/codelyzer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mgechev/codelyzer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mgechev/codelyzer/teams","hooks_url":"https://api.github.com/repos/mgechev/codelyzer/hooks","issue_events_url":"https://api.github.com/repos/mgechev/codelyzer/issues/events{/number}","events_url":"https://api.github.com/repos/mgechev/codelyzer/events","assignees_url":"https://api.github.com/repos/mgechev/codelyzer/assignees{/user}","branches_url":"https://api.github.com/repos/mgechev/codelyzer/branches{/branch}","tags_url":"https://api.github.com/repos/mgechev/codelyzer/tags","blobs_url":"https://api.github.com/repos/mgechev/codelyzer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mgechev/codelyzer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mgechev/codelyzer/git/refs{/sha}","trees_url":"https://api.github.com/repos/mgechev/codelyzer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mgechev/codelyzer/statuses/{sha}","languages_url":"https://api.github.com/repos/mgechev/codelyzer/languages","stargazers_url":"https://api.github.com/repos/mgechev/codelyzer/stargazers","contributors_url":"https://api.github.com/repos/mgechev/codelyzer/contributors","subscribers_url":"https://api.github.com/repos/mgechev/codelyzer/subscribers","subscription_url":"https://api.github.com/repos/mgechev/codelyzer/subscription","commits_url":"https://api.github.com/repos/mgechev/codelyzer/commits{/sha}","git_commits_url":"https://api.github.com/repos/mgechev/codelyzer/git/commits{/sha}","comments_url":"https://api.github.com/repos/mgechev/codelyzer/comments{/number}","issue_comment_url":"https://api.github.com/repos/mgechev/codelyzer/issues/comments{/number}","contents_url":"https://api.github.com/repos/mgechev/codelyzer/contents/{+path}","compare_url":"https://api.github.com/repos/mgechev/codelyzer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mgechev/codelyzer/merges","archive_url":"https://api.github.com/repos/mgechev/codelyzer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mgechev/codelyzer/downloads","issues_url":"https://api.github.com/repos/mgechev/codelyzer/issues{/number}","pulls_url":"https://api.github.com/repos/mgechev/codelyzer/pulls{/number}","milestones_url":"https://api.github.com/repos/mgechev/codelyzer/milestones{/number}","notifications_url":"https://api.github.com/repos/mgechev/codelyzer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mgechev/codelyzer/labels{/name}","releases_url":"https://api.github.com/repos/mgechev/codelyzer/releases{/id}","deployments_url":"https://api.github.com/repos/mgechev/codelyzer/deployments","created_at":"2016-02-10T17:22:40Z","updated_at":"2018-02-07T15:22:10Z","pushed_at":"2018-02-07T20:07:11Z","git_url":"git://github.com/mgechev/codelyzer.git","ssh_url":"git@github.com:mgechev/codelyzer.git","clone_url":"https://github.com/mgechev/codelyzer.git","svn_url":"https://github.com/mgechev/codelyzer","homepage":"http://codelyzer.com/","size":14631,"stargazers_count":1531,"watchers_count":1531,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":146,"mirror_url":null,"archived":false,"open_issues_count":30,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":146,"open_issues":30,"watchers":1531,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mgechev/codelyzer/pulls/509"},"html":{"href":"https://github.com/mgechev/codelyzer/pull/509"},"issue":{"href":"https://api.github.com/repos/mgechev/codelyzer/issues/509"},"comments":{"href":"https://api.github.com/repos/mgechev/codelyzer/issues/509/comments"},"review_comments":{"href":"https://api.github.com/repos/mgechev/codelyzer/pulls/509/comments"},"review_comment":{"href":"https://api.github.com/repos/mgechev/codelyzer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mgechev/codelyzer/pulls/509/commits"},"statuses":{"href":"https://api.github.com/repos/mgechev/codelyzer/statuses/fd9216cbaaf5de8f548997fff13b84f86df5fdd1"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"mgechev"}}