{"id":18638351,"url":"https://github.com/kitasuke/swiftconst","last_synced_at":"2025-07-30T05:33:43.042Z","repository":{"id":95188430,"uuid":"176975301","full_name":"kitasuke/SwiftConst","owner":"kitasuke","description":"Find in Swift repeated strings that could be replaced by a constant using SwiftSyntax","archived":false,"fork":false,"pushed_at":"2019-09-26T09:47:08.000Z","size":63,"stargazers_count":37,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-30T18:07:32.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","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/kitasuke.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":"2019-03-21T15:37:31.000Z","updated_at":"2024-12-19T18:05:28.000Z","dependencies_parsed_at":"2023-06-12T09:30:34.613Z","dependency_job_id":null,"html_url":"https://github.com/kitasuke/SwiftConst","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/kitasuke/SwiftConst","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitasuke%2FSwiftConst","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitasuke%2FSwiftConst/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitasuke%2FSwiftConst/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitasuke%2FSwiftConst/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kitasuke","download_url":"https://codeload.github.com/kitasuke/SwiftConst/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitasuke%2FSwiftConst/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267815187,"owners_count":24148356,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-07T05:40:57.557Z","updated_at":"2025-07-30T05:33:43.025Z","avatar_url":"https://github.com/kitasuke.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swiftconst\n\n[![Swift 5.1](https://img.shields.io/badge/swift-5.1-orange.svg?style=flat)](https://swift.org/download/)\n[![Build Status](https://app.bitrise.io/app/f45d3e8ffa077288/status.svg?token=1oqaCoE9MuMQrWJnYh1Cjg\u0026branch=master)](https://app.bitrise.io/app/f45d3e8ffa077288)\n[![codecov](https://codecov.io/gh/kitasuke/SwiftConst/branch/master/graph/badge.svg)](https://codecov.io/gh/kitasuke/SwiftConst)\n\n\n## Overview\n\nFind in Swift repeated strings that could be replaced by a constant using [SwiftSyntax](https://github.com/apple/swift-syntax).\n\nThis is highly inspired by [goconst](https://github.com/jgautheron/goconst) and Swift version of it.\n\n## Requirements\n\nSwift 5.1+  \nXcode 11.0+ beta\n\n## How to use\n\n### Installation\n\nRun below command\n\n```terminal\n$ make install\n$ swiftconst help\n```\n\n### Available Commands\n\n#### `help`\n\nDisplay general or command-specific help\n\n#### `run --path \u003cpath\u003e --ignore \u003cpath,path...\u003e`\n\nDisplay repeated strings\n\n## Examples\n\n```terminal\n$ swiftconst run --ignore \"/Users/kitasuke/SwiftConst/Tests/,/Users/kitasuke/SwiftConst/Package.swift\"\nother occurrence(s) of \"error\" found in: /Users/kitasuke/SwiftConst/main.swift:7:11\nother occurrence(s) of \"help\" found in: /Users/kitasuke/SwiftConst/main.swift:18:19\nother occurrence(s) of \"error\" found in: /Users/kitasuke/SwiftConst/main.swift:19:28\nother occurrence(s) of \"help\" found in: /Users/kitasuke/SwiftConst/main.swift:21:19\n```\n\n## TODOs\n\n- [ ] Recursive run in subfolders\n\n## Acknowledgements\n\n- [goconst](https://github.com/jgautheron/goconst)\n- [SwiftRewriter](https://github.com/inamiy/SwiftRewriter)\n- [swift-ast-explorer-playground](https://github.com/kishikawakatsumi/swift-ast-explorer-playground)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitasuke%2Fswiftconst","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkitasuke%2Fswiftconst","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitasuke%2Fswiftconst/lists"}