{"id":19325977,"url":"https://github.com/alephao/lalainc-xcassetscop","last_synced_at":"2026-03-01T14:03:58.505Z","repository":{"id":87475934,"uuid":"184905299","full_name":"alephao/lalainc-xcassetscop","owner":"alephao","description":"Enforce configurations on Xcode assets","archived":false,"fork":false,"pushed_at":"2019-05-14T12:48:18.000Z","size":40,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T19:43:17.520Z","etag":null,"topics":["linter","xcode"],"latest_commit_sha":null,"homepage":"","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/alephao.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-05-04T14:28:40.000Z","updated_at":"2022-02-10T17:35:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b96dbe4-49e5-48d2-a995-330af65b947a","html_url":"https://github.com/alephao/lalainc-xcassetscop","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/alephao/lalainc-xcassetscop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alephao%2Flalainc-xcassetscop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alephao%2Flalainc-xcassetscop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alephao%2Flalainc-xcassetscop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alephao%2Flalainc-xcassetscop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alephao","download_url":"https://codeload.github.com/alephao/lalainc-xcassetscop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alephao%2Flalainc-xcassetscop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29970545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T13:32:00.443Z","status":"ssl_error","status_checked_at":"2026-03-01T13:32:00.084Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["linter","xcode"],"created_at":"2024-11-10T02:12:05.461Z","updated_at":"2026-03-01T14:03:58.493Z","avatar_url":"https://github.com/alephao.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XCAssetsCop\n\n[![Build Status](https://travis-ci.org/alaphao/xcassetscop.svg?branch=master)](https://travis-ci.org/alaphao/xcassetscop)\n[![Gem Version](https://badge.fury.io/rb/xcassetscop.svg)](https://badge.fury.io/rb/xcassetscop)\n\nXCAssetsCop is a tool to enforce specific configurations of Xcode assets.\n\nFor example, you can ensure every asset inside `Image.xcassets/icons` is rendered as template, has a single scale, and is a pdf file.\n\n### Installing\n```\ngem install xcassetscop\n```\n\nor add this to your Gemfile\n```\ngem 'xcassetscop'\n```\n\n### Getting Started\nCreate a xcassetsconfig.yml, it should contain a list of objects with two properties:\n\n- **config**: An object with your configs, check the available options on the next section\n- **paths**: List of paths to apply the configs \n\n\n```yaml\n---\n- paths:\n  - \"./MyApp/Images.xcassets/icons/**/*.imageset/Contents.json\"\n  - \"./MyApp/Images.xcassets/some_folder/**/*.imageset/Contents.json\"\n  config:\n    template_rendering_intent: template\n    image_scale: single\n    same_file_and_asset_name: true\n    file_extension: pdf\n- paths:\n  - \"./MyApp/Images.xcassets/illustrations/**/*.imageset/Contents.json\"\n  config:\n    template_rendering_intent: original\n    image_scale: individual\n```\n\nThen run\n```\nxcassetscop lint\n```\n\n### Available Options for Config\n\n| Key | Description |\n| --- | --- |\n| template_rendering_intent | Ensures the assets have a specific template_rendering_intent value. Valid values are: **template**, **original**, **default** |\n| image_scale | Ensures the asset have a specific image scale value. Valid values are: **single**, **individual**, **individual_and_single** |\n| preserves-vector-representation | Ensures the assets preserves or not the vector information of a PDF file |\n| same_file_and_asset_name | true if you want to make sure the asset name and the file name are the same  |\n| file_extension | A **string** or **symbol** of the file extension. Ensures the file has a specific extenstion. E.g: `'pdf'` |\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falephao%2Flalainc-xcassetscop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falephao%2Flalainc-xcassetscop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falephao%2Flalainc-xcassetscop/lists"}