{"id":15658391,"url":"https://github.com/tdakkota/asciicheck","last_synced_at":"2025-04-04T07:04:59.941Z","repository":{"id":38010935,"uuid":"255934211","full_name":"tdakkota/asciicheck","owner":"tdakkota","description":"Simple linter to check that your code does not contain non-ASCII identifiers","archived":false,"fork":false,"pushed_at":"2025-03-07T11:13:07.000Z","size":64,"stargazers_count":27,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T06:04:22.998Z","etag":null,"topics":["ascii","go","golang","lint","linter"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tdakkota.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-15T14:00:55.000Z","updated_at":"2025-03-07T11:13:07.000Z","dependencies_parsed_at":"2024-06-18T19:50:26.617Z","dependency_job_id":"f66e9cf5-9a04-43b3-9ecc-6036c960bd31","html_url":"https://github.com/tdakkota/asciicheck","commit_stats":{"total_commits":33,"total_committers":3,"mean_commits":11.0,"dds":"0.48484848484848486","last_synced_commit":"b8f946fc83dce284d502293bf4a031b3f648a1f1"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdakkota%2Fasciicheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdakkota%2Fasciicheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdakkota%2Fasciicheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdakkota%2Fasciicheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tdakkota","download_url":"https://codeload.github.com/tdakkota/asciicheck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135141,"owners_count":20889420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ascii","go","golang","lint","linter"],"created_at":"2024-10-03T13:12:19.231Z","updated_at":"2025-04-04T07:04:59.915Z","avatar_url":"https://github.com/tdakkota.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# asciicheck [![Go Report Card](https://goreportcard.com/badge/github.com/tdakkota/asciicheck)](https://goreportcard.com/report/github.com/tdakkota/asciicheck) [![codecov](https://codecov.io/gh/tdakkota/asciicheck/branch/master/graph/badge.svg)](https://codecov.io/gh/tdakkota/asciicheck) ![Go](https://github.com/tdakkota/asciicheck/workflows/Go/badge.svg)\nSimple linter to check that your code does not contain non-ASCII identifiers\n\n# Install\n  \n```\ngo get -u github.com/tdakkota/asciicheck/cmd/asciicheck\n```\n\n# Reason to use\nSo, do you see this code? Looks correct, isn't it?\n\n```go\npackage main\n\nimport \"fmt\"\n\ntype TеstStruct struct{}\n\nfunc main() {\n\ts := TestStruct{}\n\tfmt.Println(s)\n}\n```\nBut if you try to run it, you will get an error:\n```\n./prog.go:8:7: undefined: TestStruct\n```\nWhat? `TestStruct` is defined above, but compiler thinks diffrent. Why?\n\n**Answer**:\nBecause `TestStruct` is not `TеstStruct`.\n```\ntype TеstStruct struct{}\n      ^ this 'e' (U+0435) is not 'e' (U+0065)\n```\n\n# Usage\nasciicheck uses [`singlechecker`](https://pkg.go.dev/golang.org/x/tools/go/analysis/singlechecker) package to run:\n\n```\nasciicheck: checks that all code identifiers does not have non-ASCII symbols in the name\n\nUsage: asciicheck [-flag] [package]\n\n\nFlags:\n  -V\tprint version and exit\n  -all\n    \tno effect (deprecated)\n  -c int\n    \tdisplay offending line with this many lines of context (default -1)\n  -cpuprofile string\n    \twrite CPU profile to this file\n  -debug string\n    \tdebug flags, any subset of \"fpstv\"\n  -fix\n    \tapply all suggested fixes\n  -flags\n    \tprint analyzer flags in JSON\n  -json\n    \temit JSON output\n  -memprofile string\n    \twrite memory profile to this file\n  -source\n    \tno effect (deprecated)\n  -tags string\n    \tno effect (deprecated)\n  -trace string\n    \twrite trace log to this file\n  -v\tno effect (deprecated)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftdakkota%2Fasciicheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftdakkota%2Fasciicheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftdakkota%2Fasciicheck/lists"}