{"id":16895958,"url":"https://github.com/stevenacoffman/lintlolwut","last_synced_at":"2025-03-20T13:54:25.901Z","repository":{"id":57515963,"uuid":"240810450","full_name":"StevenACoffman/lintlolwut","owner":"StevenACoffman","description":"Find which Go files golangci-lint is complaining about.","archived":false,"fork":false,"pushed_at":"2020-02-24T20:42:46.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T05:40:26.664Z","etag":null,"topics":["go","golangci-lint","linter","wrapper"],"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/StevenACoffman.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-02-16T00:56:07.000Z","updated_at":"2020-02-24T20:42:48.000Z","dependencies_parsed_at":"2022-08-28T16:50:27.116Z","dependency_job_id":null,"html_url":"https://github.com/StevenACoffman/lintlolwut","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenACoffman%2Flintlolwut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenACoffman%2Flintlolwut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenACoffman%2Flintlolwut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StevenACoffman%2Flintlolwut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StevenACoffman","download_url":"https://codeload.github.com/StevenACoffman/lintlolwut/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244622999,"owners_count":20483055,"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","golangci-lint","linter","wrapper"],"created_at":"2024-10-13T17:27:11.833Z","updated_at":"2025-03-20T13:54:25.882Z","avatar_url":"https://github.com/StevenACoffman.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg height=200 src=\"./images/lolwut.jpg\" /\u003e\n\n# lintlolwut\n\nFind which Go file golangci-lint is complaining about.\n\n## uh.. no really, what is this?\nAt work I use `golangci-lint run` to perform static analysis on my Go code. Often the feedback is quite actionable and useful.\n\nSometimes, however, the feedback is kind of frustratingly obscure. If I am linting hundreds of files, if I get something like this message:\n\n```\nCan't run linter goanalysis_metalinter: ST1012: failed prerequisites: config@command-line-arguments\"\n```\nI am left to wonder, what file is it even complaining about?\n\nThis little wrapper automates a tedious process I was performing manually. It will  find all the go files in the current directory, optionally match only a subset of them, and run `golangci-lint run` on each file individually. Any that report failures will be called out by name, in addition to any other output.\n\nI hope they improve the feedback to the point that this becomes obsolete.\n## Installation\n\n```\ngo get -u github.com/StevenACoffman/lintlolwut\n```\n## Usage\n\n```\nUsage of lintlolwut:\n  -match string\n    \tinclude ONLY files for which filepath includes the string\n  -t\tinclude test .go files\n  -tags build tags\n    \ta list of build tags to consider satisfied during the build. For more information about build tags, see the description of build constraints in the documentation for the go/build package\n```\nFor example:\n```\nlintlolwut -match=mycoolthing\n```\n\n### Image Credit\nThe surrealist painting of the laughing fruit, titled _The Biting Pear of Salamanca_, was posted to deviantART on February 27th, 2006 by Ursula Vernon. Inspired by pop surrealism, she wrote that the pear \"lives off low-flying birds, hand-outs, and the occasional unwary sightseer.\" As early as November 2006[3], a user on 4chan's /b/ (Random) message board had associated the photo with the caption LOLWUT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevenacoffman%2Flintlolwut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevenacoffman%2Flintlolwut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevenacoffman%2Flintlolwut/lists"}