{"action":"created","issue":{"url":"https://api.github.com/repos/danielstjules/jsinspect/issues/57","repository_url":"https://api.github.com/repos/danielstjules/jsinspect","labels_url":"https://api.github.com/repos/danielstjules/jsinspect/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/danielstjules/jsinspect/issues/57/comments","events_url":"https://api.github.com/repos/danielstjules/jsinspect/issues/57/events","html_url":"https://github.com/danielstjules/jsinspect/issues/57","id":217331757,"node_id":"MDU6SXNzdWUyMTczMzE3NTc=","number":57,"title":"Highlight diffs in duplicated code","user":{"login":"caesarsol","id":1799710,"node_id":"MDQ6VXNlcjE3OTk3MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1799710?v=4","gravatar_id":"","url":"https://api.github.com/users/caesarsol","html_url":"https://github.com/caesarsol","followers_url":"https://api.github.com/users/caesarsol/followers","following_url":"https://api.github.com/users/caesarsol/following{/other_user}","gists_url":"https://api.github.com/users/caesarsol/gists{/gist_id}","starred_url":"https://api.github.com/users/caesarsol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caesarsol/subscriptions","organizations_url":"https://api.github.com/users/caesarsol/orgs","repos_url":"https://api.github.com/users/caesarsol/repos","events_url":"https://api.github.com/users/caesarsol/events{/privacy}","received_events_url":"https://api.github.com/users/caesarsol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-27T18:19:47Z","updated_at":"2018-11-17T11:54:44Z","closed_at":null,"author_association":"NONE","body":"Would be nice to highlight the identifiers/literals that are the only difference between the snippets, when one uses the `-I` or `-L` options, in a similar manner to a color diff.\r\n\r\nThey would be helpful in refactoring since I'd have an hint on what should be a parameter of the newly created function.\r\n\r\nHave you thought about it?\r\n "},"comment":{"url":"https://api.github.com/repos/danielstjules/jsinspect/issues/comments/439611160","html_url":"https://github.com/danielstjules/jsinspect/issues/57#issuecomment-439611160","issue_url":"https://api.github.com/repos/danielstjules/jsinspect/issues/57","id":439611160,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTYxMTE2MA==","user":{"login":"somospocos","id":40846997,"node_id":"MDQ6VXNlcjQwODQ2OTk3","avatar_url":"https://avatars3.githubusercontent.com/u/40846997?v=4","gravatar_id":"","url":"https://api.github.com/users/somospocos","html_url":"https://github.com/somospocos","followers_url":"https://api.github.com/users/somospocos/followers","following_url":"https://api.github.com/users/somospocos/following{/other_user}","gists_url":"https://api.github.com/users/somospocos/gists{/gist_id}","starred_url":"https://api.github.com/users/somospocos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somospocos/subscriptions","organizations_url":"https://api.github.com/users/somospocos/orgs","repos_url":"https://api.github.com/users/somospocos/repos","events_url":"https://api.github.com/users/somospocos/events{/privacy}","received_events_url":"https://api.github.com/users/somospocos/received_events","type":"User","site_admin":false},"created_at":"2018-11-17T11:54:44Z","updated_at":"2018-11-17T11:54:44Z","author_association":"NONE","body":"> We previously outputted diffs:\r\n> \r\n> ![screenshot](https://camo.githubusercontent.com/d7de4f5f482769818e63614f97fcd829af624d13/687474703a2f2f64616e69656c73746a756c65732e636f6d2f6769746875622f6a73696e73706563742d6578616d706c652e706e67)\r\n\r\nThe link is broken for me\r\n\r\n> However, they didn't work very well when they were n-way diffs, such that N was more than 2 instances in a match. The output was quite confusing and difficult to parse.\r\n\r\nBut for N=2 such a diff would be extremely useful, it can work the way it works now by default, yet resort to display diffs for N=2 if an explicit command line argument is used?\r\n\r\nNow I have to pipe the output into vim, copy/paste the chunks by hand into temporary files and run vimdiff on them, because I don't know of a better way."}}
{"actor":{"display_login":"somospocos"}}