{"id":13684089,"url":"https://github.com/diogot/danger-xcode_summary","last_synced_at":"2025-05-16T14:03:14.361Z","repository":{"id":10672200,"uuid":"63658868","full_name":"diogot/danger-xcode_summary","owner":"diogot","description":"A Danger plugin that shows all build errors, warnings and unit tests results generated from xcodebuild.","archived":false,"fork":false,"pushed_at":"2024-09-04T11:35:15.000Z","size":730,"stargazers_count":138,"open_issues_count":10,"forks_count":43,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-09T09:47:00.129Z","etag":null,"topics":["danger","danger-xcode-summary","hacktoberfest","xcode","xcpretty-json-formatter"],"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/diogot.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-19T03:56:24.000Z","updated_at":"2025-05-08T16:30:37.000Z","dependencies_parsed_at":"2024-01-14T16:07:35.964Z","dependency_job_id":"8866dcb5-d018-4775-ba26-e1882d884486","html_url":"https://github.com/diogot/danger-xcode_summary","commit_stats":{"total_commits":152,"total_committers":20,"mean_commits":7.6,"dds":0.75,"last_synced_commit":"51bf8cf14cda91224dd97c4c973c2fc888ca9782"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diogot%2Fdanger-xcode_summary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diogot%2Fdanger-xcode_summary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diogot%2Fdanger-xcode_summary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diogot%2Fdanger-xcode_summary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diogot","download_url":"https://codeload.github.com/diogot/danger-xcode_summary/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254544142,"owners_count":22088807,"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":["danger","danger-xcode-summary","hacktoberfest","xcode","xcpretty-json-formatter"],"created_at":"2024-08-02T14:00:25.349Z","updated_at":"2025-05-16T14:03:14.304Z","avatar_url":"https://github.com/diogot.png","language":"Ruby","funding_links":[],"categories":["Ruby","Plugins"],"sub_categories":["Ruby (danger)"],"readme":"# danger-xcode_summary\n\n[![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](LICENSE.txt)\n[![Gem Version](https://badge.fury.io/rb/danger-xcode_summary.svg)](https://badge.fury.io/rb/danger-xcode_summary)\n[![Build Status](https://travis-ci.org/diogot/danger-xcode_summary.svg?branch=master)](https://travis-ci.org/diogot/danger-xcode_summary)\n\nA [Danger](http://danger.systems) plugin that shows all build errors, warnings and unit tests results generated from `xcodebuild`.\n\n## How does it look?\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth width=\"50\"\u003e\u003c/th\u003e\n      \u003cth width=\"100%\"\u003e\n          1 Error\n      \u003c/th\u003e\n     \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cg-emoji alias=\"no_entry_sign\" fallback-src=\"https://assets-cdn.github.com/images/icons/emoji/unicode/1f6ab.png\"\u003e🚫\u003c/g-emoji\u003e\u003c/td\u003e\n      \u003ctd\u003e\n\u003cstrong\u003eMyWeightTests.MyWeightTests\u003c/strong\u003e: testError, failed - :w:  \u003cbr\u003e  \u003ca href=\"https://github.com/Invariante/MyWeight/blob/0101261efd67cd1fb0d682d88476fdee3d17cf86/MyWeightTests/MyWeightTests.swift#L26\"\u003eMyWeightTests/MyWeightTests.swift#L26\u003c/a\u003e\n\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth width=\"50\"\u003e\u003c/th\u003e\n      \u003cth width=\"100%\"\u003e\n          2 Warnings\n      \u003c/th\u003e\n     \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cg-emoji alias=\"warning\" fallback-src=\"https://assets-cdn.github.com/images/icons/emoji/unicode/26a0.png\"\u003e⚠️\u003c/g-emoji\u003e\u003c/td\u003e\n      \u003ctd\u003e\n\u003cstrong\u003e\u003ca href=\"https://github.com/Invariante/MyWeight/blob/0101261efd67cd1fb0d682d88476fdee3d17cf86/MyWeight/ViewController.swift#L35\"\u003eMyWeight/ViewController.swift#L35\u003c/a\u003e\u003c/strong\u003e: initialization of immutable value ‘bla’ was never used; consider replacing with assignment to ‘_’ or removing it  \u003cbr\u003e\u003ccode\u003e\n        let bla = \"unused variable\"\n\u003c/code\u003e\n\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cg-emoji alias=\"warning\" fallback-src=\"https://assets-cdn.github.com/images/icons/emoji/unicode/26a0.png\"\u003e⚠️\u003c/g-emoji\u003e\u003c/td\u003e\n      \u003ctd\u003e\n\u003cstrong\u003e\u003ca href=\"https://github.com/Invariante/MyWeight/blob/0101261efd67cd1fb0d682d88476fdee3d17cf86/Bla.m#L32\"\u003eBla.m#L32\u003c/a\u003e\u003c/strong\u003e: Value stored to ‘theme’ is never read  \u003cbr\u003e\u003ccode\u003e\n            theme = *ptr++;\n\u003c/code\u003e\n\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth width=\"50\"\u003e\u003c/th\u003e\n      \u003cth width=\"100%\"\u003e\n          1 Message\n      \u003c/th\u003e\n     \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003cg-emoji alias=\"book\" fallback-src=\"https://assets-cdn.github.com/images/icons/emoji/unicode/1f4d6.png\"\u003e📖\u003c/g-emoji\u003e\u003c/td\u003e\n      \u003ctd\u003eTestTarget: Executed 5 tests, with 1 failure (0 unexpected) in 0.032 (0.065) seconds\u003c/td\u003e\n    \u003c/tr\u003e\n      \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n## Installation\n\nAdd this line to your Gemfile:\n\n```ruby\ngem 'danger-xcode_summary'\n```\n\n## Usage\n\nJust add this line to your `Dangerfile`:\n\n```ruby\nxcode_summary.report 'MyApp.xcresult'\n```\n\nYou need to pass the path of the `xcresult` generated after compiling your app.\nBy default, this is inside the `DerivedData` for your project, but you can use the `-resultBundlePath`\nflag when calling `xcodebuild` to customize its path. You can read more about it in this [blog post from the folks at PSPDFKit](https://pspdfkit.com/blog/2021/deflaking-ci-tests-with-xcresults/#using-xcresult-bundles).\n\nYou can also ignore warnings from certain files by setting `ignored_files`: \nWarning: `ignored_files` patterns applied on relative paths.  \n\n```ruby\n# Ignoring warnings from Pods\nxcode_summary.ignored_files = 'Pods/**'\n\n# Ignoring specific warnings\nxcode_summary.ignored_results { |result|\n  result.message.include? 'ld' # Ignore ld_warnings\n}\n\nxcode_summary.report 'MyApp.xcresult'\n```\n\nYou can use `ignores_warnings` to supress warnings and shows only errors.\n\n```ruby\nxcode_summary.ignores_warnings = true\n```\n\nYou can use `inline_mode`.\nWhen this value is enabled, each warnings and errors are commented on each lines.\n\n```ruby\n# Comment on each lines\nxcode_summary.inline_mode = true\nxcode_summary.report 'MyApp.xcresult'\n```\n\nYou can use `strict` to reporting errors as warnings thereby don't block merge PR.\n\n ```ruby\n # If value is `false`, then errors will be reporting as warnings\n xcode_summary.strict = false\n ```\n\nYou can get warning and error number by calling `warning_error_count`. The return will be a JSON string contains warning and error count, e.g `{\"warnings\":1,\"errors\":3}`:\n\n```ruby\nresult = xcode_summary.warning_error_count 'MyApp.xcresult'\n```\n\n## License\n\ndanger-xcode_summary is released under the MIT license. See [LICENSE.txt](LICENSE.txt) for details.\n\n## Development\n\n1. Clone this repo\n2. Run `bundle install` to setup dependencies.\n3. Run `bundle exec rake spec` to run the tests.\n4. Use `bundle exec guard` to automatically have tests run as you make changes.\n5. Make your changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiogot%2Fdanger-xcode_summary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiogot%2Fdanger-xcode_summary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiogot%2Fdanger-xcode_summary/lists"}