{"id":19320248,"url":"https://github.com/jlyonsmith/xcpretty-warning-counter","last_synced_at":"2025-04-22T18:30:29.366Z","repository":{"id":56898684,"uuid":"53633428","full_name":"jlyonsmith/xcpretty-warning-counter","owner":"jlyonsmith","description":"A formatter for XCPretty that counts warnings","archived":false,"fork":false,"pushed_at":"2016-08-15T21:24:08.000Z","size":23,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T19:53:26.500Z","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/jlyonsmith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-11T02:29:28.000Z","updated_at":"2016-03-11T02:30:33.000Z","dependencies_parsed_at":"2022-08-20T17:30:08.670Z","dependency_job_id":null,"html_url":"https://github.com/jlyonsmith/xcpretty-warning-counter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlyonsmith%2Fxcpretty-warning-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlyonsmith%2Fxcpretty-warning-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlyonsmith%2Fxcpretty-warning-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlyonsmith%2Fxcpretty-warning-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jlyonsmith","download_url":"https://codeload.github.com/jlyonsmith/xcpretty-warning-counter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249319592,"owners_count":21250578,"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-10T01:27:59.648Z","updated_at":"2025-04-22T18:30:29.053Z","avatar_url":"https://github.com/jlyonsmith.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XCPretty Warning Counter\n\nA custom formatter for [xcpretty](https://github.com/supermarin/xcpretty) that counts warnings and outputs them in JSON and YAML format in files named `warning-counts.json` and `warning-counts.yaml` respectively\n\n## Installation\n\nThis formatter is distributed via RubyGems, and depends on a version of `xcpretty` \u003e= 0.0.7 (when custom formatters were introduced). Run:\n\n    gem install xcpretty-warning-counter\n\n## Usage\n\nSpecify `xcpretty-warning-counter` as a custom formatter to `xcpretty`:\n\n```bash\n#!/bin/bash\n\nxcodebuild | xcpretty -f `xcpretty-warning-counter`\n```\n\n## How it works\n\nThe `--formatter` option takes a file path as an argument, so the `xcpretty-warning-counter` script returns the location of the installed Ruby formatter class. It must be evaluated before the xcpretty arguments are evaluated, hence the backtick wrapping. The Ruby script must return a Ruby class that is a subclass of `XCPretty::Formatter`.  This then receives `formatter_*` method invocations as the build output is parsed.  \n\nI use the start of the tests as the indicator for when to write the warning file, so this formatter only works for with the `tests` argument of `xcodebuild`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlyonsmith%2Fxcpretty-warning-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjlyonsmith%2Fxcpretty-warning-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlyonsmith%2Fxcpretty-warning-counter/lists"}