{"id":19675955,"url":"https://github.com/danielde/bang-auditor","last_synced_at":"2026-05-15T10:15:48.455Z","repository":{"id":68167496,"uuid":"247779150","full_name":"DanielDe/bang-auditor","owner":"DanielDe","description":null,"archived":false,"fork":false,"pushed_at":"2020-03-18T20:26:13.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T18:49:36.313Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanielDe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-16T17:37:07.000Z","updated_at":"2020-03-18T20:30:30.000Z","dependencies_parsed_at":"2023-05-01T04:55:52.506Z","dependency_job_id":null,"html_url":"https://github.com/DanielDe/bang-auditor","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/DanielDe%2Fbang-auditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielDe%2Fbang-auditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielDe%2Fbang-auditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielDe%2Fbang-auditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanielDe","download_url":"https://codeload.github.com/DanielDe/bang-auditor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240985517,"owners_count":19889108,"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":[],"created_at":"2024-11-11T17:26:34.835Z","updated_at":"2026-05-15T10:15:48.421Z","avatar_url":"https://github.com/DanielDe.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bang-auditor\n\nIdentifies and prints out all uses of `!` in your Swift codebase.\n\nOptions to ignore specific lines or entire blocks.\n\n## Example\n\n```swift\n// test-file.swift\nfunc main() {\n    let notOkay = maybeSomething()!\n\n    let inlineOkay = maybeSomething()! // bang-auditor:ignore\n\n    // bang-auditor:disable\n    let blockOkay = maybeSomething()!\n    let anotherBlockOkay = maybeSomething() as! User\n    // bang-auditor:enable\n\n    let anotherNotOkay = maybeSomething() as! Employee\n}\n```\n\n```\n⌘ bang-auditor ./test-file.swift\n./test-file.swift\n    line 3\n        let notOkay = maybeSomething()!\n    line 12\n        let anotherNotOkay = maybeSomething() as! Employee\n```\n\n## Usage\n\nAccepts one or more file or directory paths.\nIf a directory path is specified, `bang-auditor` runs on all `.swift` files it finds in that directory.\n\n## Ignore and disable\n\nTo ignore bangs on a single line, add a `// bang-auditor:ignore` comment to the end of the line:\n\n```swift\nlet inlineOkay = maybeSomething()! // bang-auditor:ignore\n```\n\nTo ignore bangs on multiple lines, surround those lines with a pair of `// bang-auditor:disable` and `// bang-auditor:enable` comments:\n\n```swift\n// bang-auditor:disable\nlet blockOkay = maybeSomething()!\nlet anotherBlockOkay = maybeSomething() as! User\n// bang-auditor:enable\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielde%2Fbang-auditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielde%2Fbang-auditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielde%2Fbang-auditor/lists"}