{"id":13771916,"url":"https://github.com/nakabonne/golintui","last_synced_at":"2025-04-30T07:28:55.297Z","repository":{"id":56170612,"uuid":"259642390","full_name":"nakabonne/golintui","owner":"nakabonne","description":"A simple terminal UI for Go linters","archived":false,"fork":false,"pushed_at":"2020-11-23T02:53:23.000Z","size":10171,"stargazers_count":81,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T21:12:12.671Z","etag":null,"topics":["go","golang","golang-tools","golangci-lint","linter","static-analysis","terminal","tui"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nakabonne.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}},"created_at":"2020-04-28T13:18:40.000Z","updated_at":"2024-07-27T03:21:11.000Z","dependencies_parsed_at":"2022-08-15T14:00:51.126Z","dependency_job_id":null,"html_url":"https://github.com/nakabonne/golintui","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakabonne%2Fgolintui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakabonne%2Fgolintui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakabonne%2Fgolintui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nakabonne%2Fgolintui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nakabonne","download_url":"https://codeload.github.com/nakabonne/golintui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251660093,"owners_count":21623191,"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":["go","golang","golang-tools","golangci-lint","linter","static-analysis","terminal","tui"],"created_at":"2024-08-03T17:00:57.539Z","updated_at":"2025-04-30T07:28:55.277Z","avatar_url":"https://github.com/nakabonne.png","language":"Go","funding_links":[],"categories":["Linters Helper Tools"],"sub_categories":["Misc"],"readme":"# golintui\n\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n\n`golintui` is a TUI tool that helps you run various kinds of linters with ease and organize its results, with the power of [golangci-lint](https://github.com/golangci/golangci-lint).\n\n![Screenshot](golintui.gif)\n\n## Cool features\n\n- Simple UI\n- Selectable linters on the UI.\n- Sorting out the issues for each linter\n- Able to open files by specifying the issue line\n\n\n## Installation\n\n**Binary Releases**\n\nFor Mac OS or Linux, you can download a binary release [here](https://github.com/nakabonne/golintui/releases).\n\n**With Homebrew**\n\n```bash\nbrew install nakabonne/golintui/golintui\n```\n\n**With Go**\n\n```bash\ngo get github.com/nakabonne/golintui\n```\n\nNote that `go get` downloads a bunch of dependencies on golangci-lint so can take a while to fully install.\n\n**With Docker**\n\n```bash\ndocker run --rm -i -t -v $(pwd):/app -w /app nakabonne/golintui:latest golintui\n```\n\n## Usage\n\nRequires: [golangci-lint](https://github.com/golangci/golangci-lint) executable.  \n  \nBe sure to change the CTYPE as shown below if your locale isn't `en_US`. The UI does not display well without it.\n\n```bash\nexport LC_CTYPE=en_US.UTF-8\n```\n\n### Quick Start\n\n```bash\ngolintui\n```\n\nJust press \u003ckbd\u003er\u003c/kbd\u003e, then results from the linters should be shown.\n\n### Keybinds\n\n**Global**\n\n\u003cpre\u003e\n  \u003ckbd\u003er\u003c/kbd\u003e: run selected linters against the selected directories\n  \u003ckbd\u003eq\u003c/kbd\u003e: quit\n  \u003ckbd\u003el\u003c/kbd\u003e: next panel\n  \u003ckbd\u003eh\u003c/kbd\u003e: previous panel\n  \u003ckbd\u003ej\u003c/kbd\u003e: move down\n  \u003ckbd\u003ek\u003c/kbd\u003e: move up\n\u003c/pre\u003e\n\n**Linters Panel**\n\n\u003cpre\u003e\n  \u003ckbd\u003espace\u003c/kbd\u003e: toggle enabled\n\u003c/pre\u003e\n\nNote that for users who specify `disable-all` in the config file for golangci-lint, it is impossible to disable linters that are enabled in it.\n\n**Source File Panel**\n\n\u003cpre\u003e\n  \u003ckbd\u003espace\u003c/kbd\u003e: toggle selected\n  \u003ckbd\u003eo\u003c/kbd\u003e: expand directory\n\u003c/pre\u003e\n\n**Commits Panel**\n\n\u003cpre\u003e\n  \u003ckbd\u003espace\u003c/kbd\u003e: toggle selected\n\u003c/pre\u003e\n\nIt shows only new issues created after the commit you selected. Internally it just gives it on to `--new-from-rev`.\n\n**Results Panel**\n\n\u003cpre\u003e\n  \u003ckbd\u003eo\u003c/kbd\u003e: open a file with the reported line\n\u003c/pre\u003e\n\n## Settings\n\n### Editor\n`golintui` refers to `$EDITOR` by default to open the problematic file. You can change the editor to your taste and habits by setting `$GOLINTUI_OPEN_COMMAND`.  \n\nFor instance, for users of VSCode:\n\n```bash\nexport GOLINTUI_OPEN_COMMAND=\"code -r\"\n```\n\n## Editors that can open by specifying a line\n\n- vim(vi)\n- emacs\n- VSCode\n\nPlease let me know how to open a file at a specific line if the editor you're used to is missing.\n\n## License Scan\n\n[![FOSSA Status](https://app.fossa.com/api/projects/custom%2B19582%2Fssh%3A%2F%2Fgit%40github.com%2Fnakabonne%2Fgolintui.git.svg?type=large)](https://app.fossa.com/projects/custom%2B19582%2Fssh%3A%2F%2Fgit%40github.com%2Fnakabonne%2Fgolintui.git?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnakabonne%2Fgolintui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnakabonne%2Fgolintui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnakabonne%2Fgolintui/lists"}