{"id":26281068,"url":"https://github.com/yonat/swiftquality","last_synced_at":"2025-05-07T05:10:56.537Z","repository":{"id":144894858,"uuid":"183219568","full_name":"yonat/SwiftQuality","owner":"yonat","description":"Common configuration files for SwiftLint and SwiftFormat","archived":false,"fork":false,"pushed_at":"2023-12-29T14:49:23.000Z","size":19,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T06:41:19.317Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/yonat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-04-24T11:58:11.000Z","updated_at":"2024-09-14T07:51:57.000Z","dependencies_parsed_at":"2023-12-29T15:46:32.325Z","dependency_job_id":null,"html_url":"https://github.com/yonat/SwiftQuality","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonat%2FSwiftQuality","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonat%2FSwiftQuality/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonat%2FSwiftQuality/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonat%2FSwiftQuality/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yonat","download_url":"https://codeload.github.com/yonat/SwiftQuality/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252817636,"owners_count":21808706,"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":"2025-03-14T15:19:02.724Z","updated_at":"2025-05-07T05:10:56.519Z","avatar_url":"https://github.com/yonat.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftQuality\n\n[![Swift Version][swift-image]][swift-url]\n[![License][license-image]][license-url]\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/SwiftQuality.svg)](https://img.shields.io/cocoapods/v/SwiftQuality.svg)  \n[![Platform](https://img.shields.io/cocoapods/p/SwiftQuality.svg?style=flat)](http://cocoapods.org/pods/SwiftQuality)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n\nCommon configuration files for SwiftLint and SwiftFormat.\n\n## Installation\n\n### CocoaPods:\n\n```ruby\npod 'SwiftQuality', :git =\u003e 'https://github.com/yonat/SwiftQuality'\n\ntarget `MyApp` do\n  script_phase :name =\u003e 'SwiftFormat',\n    :execution_position =\u003e :before_compile,\n    :script =\u003e 'if [[ \"Debug\" == \"${CONFIGURATION}\" \u0026\u0026 ! $ENABLE_PREVIEWS == \"YES\" ]]; then \"${PODS_ROOT}/SwiftFormat/CommandLineTool/swiftformat\" --swiftversion ${SWIFT_VERSION} --config \"${PODS_ROOT}/SwiftQuality/.swiftformat\" \"${SRCROOT}\" ; fi'\n\n  script_phase :name =\u003e 'SwiftLintAutocorrect',\n    :execution_position =\u003e :before_compile,\n    :script =\u003e 'if [[ \"Debug\" == \"${CONFIGURATION}\" \u0026\u0026 ! $ENABLE_PREVIEWS == \"YES\" ]]; then \"${PODS_ROOT}/SwiftLint/swiftlint\" --fix --config \"${PODS_ROOT}/SwiftQuality/.swiftlint.yml\" \"${SRCROOT}\" ; fi'\n\n  script_phase :name =\u003e 'SwiftLint',\n    :execution_position =\u003e :after_compile,\n    :script =\u003e 'if [ \"Debug\" == \"${CONFIGURATION}\" \u0026\u0026 ! $ENABLE_PREVIEWS == \"YES\" ]; then \"${PODS_ROOT}/SwiftLint/swiftlint\" --config \"${PODS_ROOT}/SwiftQuality/.swiftlint.yml\" \"${SRCROOT}\" ; fi'\n  end\nend\n\n# Fix Xcode 14 warnings \"Run script build phase '[CP] _____' will be run during every build because it does not specify any outputs.\"\n# Based on https://github.com/CocoaPods/CocoaPods/issues/11444#issuecomment-1300023416\npost_integrate do |installer|\n  main_project = installer.aggregate_targets[0].user_project\n  main_project.targets.each do |target|\n    target.build_phases.each do |phase|\n      next unless phase.is_a?(Xcodeproj::Project::Object::PBXShellScriptBuildPhase)\n      next unless phase.name.start_with?(\"[CP\")\n      next unless (phase.input_paths || []).empty? \u0026\u0026 (phase.output_paths || []).empty?\n      phase.always_out_of_date = \"1\"\n    end\n  end\n  main_project.save\nend\n```\n\n## Meta\n\n[@yonatsharon](https://twitter.com/yonatsharon)\n\n[https://github.com/yonat/SwiftQuality](https://github.com/yonat/SwiftQuality)\n\n[swift-image]:https://img.shields.io/badge/swift-4.2-orange.svg\n[swift-url]: https://swift.org/\n[license-image]: https://img.shields.io/badge/License-MIT-blue.svg\n[license-url]: LICENSE.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyonat%2Fswiftquality","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyonat%2Fswiftquality","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyonat%2Fswiftquality/lists"}