{"action":"opened","issue":{"url":"https://api.github.com/repos/Aaronepower/tokei/issues/248","repository_url":"https://api.github.com/repos/Aaronepower/tokei","labels_url":"https://api.github.com/repos/Aaronepower/tokei/issues/248/labels{/name}","comments_url":"https://api.github.com/repos/Aaronepower/tokei/issues/248/comments","events_url":"https://api.github.com/repos/Aaronepower/tokei/issues/248/events","html_url":"https://github.com/Aaronepower/tokei/issues/248","id":353452788,"node_id":"MDU6SXNzdWUzNTM0NTI3ODg=","number":248,"title":"Split count of lines for code from lines for tests","user":{"login":"Ekleog","id":411447,"node_id":"MDQ6VXNlcjQxMTQ0Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/411447?v=4","gravatar_id":"","url":"https://api.github.com/users/Ekleog","html_url":"https://github.com/Ekleog","followers_url":"https://api.github.com/users/Ekleog/followers","following_url":"https://api.github.com/users/Ekleog/following{/other_user}","gists_url":"https://api.github.com/users/Ekleog/gists{/gist_id}","starred_url":"https://api.github.com/users/Ekleog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ekleog/subscriptions","organizations_url":"https://api.github.com/users/Ekleog/orgs","repos_url":"https://api.github.com/users/Ekleog/repos","events_url":"https://api.github.com/users/Ekleog/events{/privacy}","received_events_url":"https://api.github.com/users/Ekleog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-23T16:12:06Z","updated_at":"2018-08-23T16:12:06Z","closed_at":null,"author_association":"NONE","body":"Feature idea: have a different counter for main-code lines, and test-code lines.\r\n\r\nThis would potentially be possible for Rust by counting the lines in tests/ directory and #[cfg(test)] elements… if it's possible to parse these with reasonable accuracy. I'm not sure how it could be handled for other languages, but at worse it could just output “unsupported” in the test column. :)\r\n\r\nWhat do you think about this feature? I believe the amount of test lines is as important as the amount of comment lines, and thus conflating them with code lines appears sad to me, even though the fix would likely be quite hard to pull up. :)\r\n\r\nAnyway, thank you for tokei!"}}
{"actor":{"display_login":"Ekleog"}}