{"id":17356665,"url":"https://github.com/gsquire/dll","last_synced_at":"2025-04-15T00:29:07.078Z","repository":{"id":33287917,"uuid":"153852518","full_name":"gsquire/dll","owner":"gsquire","description":"Go linter for finding defer statements inside for loops","archived":false,"fork":false,"pushed_at":"2023-11-27T20:43:52.000Z","size":10,"stargazers_count":25,"open_issues_count":4,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T12:21:22.242Z","etag":null,"topics":["go","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/gsquire.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":"2018-10-19T23:38:20.000Z","updated_at":"2023-03-19T21:39:12.000Z","dependencies_parsed_at":"2024-06-19T01:55:09.767Z","dependency_job_id":"35cbbfa3-2937-4338-92d8-fb90c223ca63","html_url":"https://github.com/gsquire/dll","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/gsquire%2Fdll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsquire%2Fdll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsquire%2Fdll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gsquire%2Fdll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gsquire","download_url":"https://codeload.github.com/gsquire/dll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248983388,"owners_count":21193552,"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","linter"],"created_at":"2024-10-15T18:57:55.554Z","updated_at":"2025-04-15T00:29:07.055Z","avatar_url":"https://github.com/gsquire.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dll\n\n**D**efer **L**oop **L**inter\n\nA simple linter to find `defer` statements inside of for loops in Go source.\n\n## Other Works\nSee [Issue #12](https://github.com/gsquire/dll/issues/12) for an existing tool (`staticcheck`).\n\n## Why?\nIt's often erroneous to use `defer` inside of a loop as it can lead to memory leaks or other\nunintended behavior. It can also be easy to miss this in a code review as using `defer` to\nclose sockets or files is a common Go idiom. This tool aims to point these out by simply printing\nthe line of a `defer` statement when it is found inside of a loop.\n\n## Install\n\n```sh\ngo get github.com/gsquire/dll\n```\n\n## Usage\n\n```sh\ndll source.go\n\ndll *.go\n```\n\n## Contributing\nFound a bug? Found a case this didn't catch? Great! Feel free to open an issue or add a test case!\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsquire%2Fdll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgsquire%2Fdll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgsquire%2Fdll/lists"}