{"action":"created","issue":{"url":"https://api.github.com/repos/koalaman/shellcheck/issues/1420","repository_url":"https://api.github.com/repos/koalaman/shellcheck","labels_url":"https://api.github.com/repos/koalaman/shellcheck/issues/1420/labels{/name}","comments_url":"https://api.github.com/repos/koalaman/shellcheck/issues/1420/comments","events_url":"https://api.github.com/repos/koalaman/shellcheck/issues/1420/events","html_url":"https://github.com/koalaman/shellcheck/issues/1420","id":391960094,"node_id":"MDU6SXNzdWUzOTE5NjAwOTQ=","number":1420,"title":"Autofix support does not account for tabs","user":{"login":"koalaman","id":2818758,"node_id":"MDQ6VXNlcjI4MTg3NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2818758?v=4","gravatar_id":"","url":"https://api.github.com/users/koalaman","html_url":"https://github.com/koalaman","followers_url":"https://api.github.com/users/koalaman/followers","following_url":"https://api.github.com/users/koalaman/following{/other_user}","gists_url":"https://api.github.com/users/koalaman/gists{/gist_id}","starred_url":"https://api.github.com/users/koalaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koalaman/subscriptions","organizations_url":"https://api.github.com/users/koalaman/orgs","repos_url":"https://api.github.com/users/koalaman/repos","events_url":"https://api.github.com/users/koalaman/events{/privacy}","received_events_url":"https://api.github.com/users/koalaman/received_events","type":"User","site_admin":false},"labels":[{"id":1164947814,"node_id":"MDU6TGFiZWwxMTY0OTQ3ODE0","url":"https://api.github.com/repos/koalaman/shellcheck/labels/autofix","name":"autofix","color":"fbfa04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-18T01:35:26Z","updated_at":"2018-12-21T08:41:00Z","closed_at":null,"author_association":"OWNER","body":"#### For bugs\r\n- Rule Id (if any, e.g. SC1000): n/a\r\n- My shellcheck version (`shellcheck --version` or \"online\"): ecd61bfc6\r\n- [ ] The rule's wiki page does not already cover this (e.g. https://shellcheck.net/wiki/SC2086)\r\n- [ ] I tried on shellcheck.net and verified that this is still a problem on the latest commit\r\n\r\n#### Here's a snippet or screenshot that shows the problem:\r\n\r\n\r\n```sh\r\nshellcheck - <<< $'\\techo $1 hello world'\r\n```\r\n\r\n#### Here's what shellcheck currently says:\r\n\r\n```\r\nIn - line 1:\r\n        echo $1 hello world\r\n^-- SC2148: Tips depend on target shell and yours is unknown. Add a shebang.\r\n             ^-- SC2086: Double quote to prevent globbing and word splitting.\r\n\r\nDid you mean:\r\n        echo $1 hell\"o \"world\r\n```\r\n\r\n\r\n#### Here's what I wanted or expected to see:\r\n\r\n```\r\nDid you mean:\r\n        echo \"$1\" hello world\r\n```"},"comment":{"url":"https://api.github.com/repos/koalaman/shellcheck/issues/comments/449312752","html_url":"https://github.com/koalaman/shellcheck/issues/1420#issuecomment-449312752","issue_url":"https://api.github.com/repos/koalaman/shellcheck/issues/1420","id":449312752,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTMxMjc1Mg==","user":{"login":"ngzhian","id":1749303,"node_id":"MDQ6VXNlcjE3NDkzMDM=","avatar_url":"https://avatars0.githubusercontent.com/u/1749303?v=4","gravatar_id":"","url":"https://api.github.com/users/ngzhian","html_url":"https://github.com/ngzhian","followers_url":"https://api.github.com/users/ngzhian/followers","following_url":"https://api.github.com/users/ngzhian/following{/other_user}","gists_url":"https://api.github.com/users/ngzhian/gists{/gist_id}","starred_url":"https://api.github.com/users/ngzhian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngzhian/subscriptions","organizations_url":"https://api.github.com/users/ngzhian/orgs","repos_url":"https://api.github.com/users/ngzhian/repos","events_url":"https://api.github.com/users/ngzhian/events{/privacy}","received_events_url":"https://api.github.com/users/ngzhian/received_events","type":"User","site_admin":false},"created_at":"2018-12-21T08:41:00Z","updated_at":"2018-12-21T08:41:00Z","author_association":"CONTRIBUTOR","body":"Seems related to the parser?\r\n```\r\n*ShellCheck.Parser> debugParseScript \"\\te\"\r\nParseResult {prComments = [], prTokenPositions = fromList [(Id 0,(Position {posFile = \"debug\", posLine = 1, posColumn = 9},Position {posFile = \"debug\", posLine = 1, posColumn = 9})),(Id 1,(Position {posFi\r\nle = \"debug\", posLine = 1, posColumn = 9},Position {posFile = \"debug\", posLine = 1, posColumn = 9})),(Id 2,(Position {posFile = \"debug\", posLine = 1, posColumn = 9},Position {posFile = \"debug\", posLine = \r\n1, posColumn = 10})),(Id 3,(Position {posFile = \"debug\", posLine = 1, posColumn = 9},Position {posFile = \"debug\", posLine = 1, posColumn = 10})),(Id 4,(Position {posFile = \"debug\", posLine = 1, posColumn = 9},Position {posFile = \"debug\", posLine = 1, posColumn = 10})),(Id 5,(Position {posFile = \"debug\", posLine = 1, posColumn = 9},Position {posFile = \"debug\", posLine = 1, posColumn = 10})),(Id 6,(Position\r\n {posFile = \"debug\", posLine = 1, posColumn = 9},Position {posFile = \"debug\", posLine = 1, posColumn = 10})),(Id 7,(Position {posFile = \"debug\", posLine = 1, posColumn = 1},Position {posFile = \"debug\", posLine = 1, posColumn = 10}))], prRoot = Just (T_Annotation (Id 0) [] (T_Script (Id 7) \"\" [T_Pipeline (Id 6) [] [T_Redirecting (Id 4) [] (T_SimpleCommand (Id 5) [] [T_NormalWord (Id 3) [T_Literal (Id 2) \"e\r\n\"]])]]))}\r\n```\r\nall the posColumns start from 9. I'll look a bit more."}}
{"actor":{"display_login":"ngzhian"}}