{"id":22493363,"url":"https://github.com/ufcpp/conventioncodefixverifier","last_synced_at":"2025-08-23T02:41:23.968Z","repository":{"id":33545594,"uuid":"37191754","full_name":"ufcpp/ConventionCodeFixVerifier","owner":"ufcpp","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-05T10:53:52.000Z","size":490,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T01:41:24.780Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/ufcpp.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}},"created_at":"2015-06-10T10:53:13.000Z","updated_at":"2025-02-04T00:25:00.000Z","dependencies_parsed_at":"2022-08-28T22:00:40.510Z","dependency_job_id":null,"html_url":"https://github.com/ufcpp/ConventionCodeFixVerifier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ufcpp/ConventionCodeFixVerifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufcpp%2FConventionCodeFixVerifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufcpp%2FConventionCodeFixVerifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufcpp%2FConventionCodeFixVerifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufcpp%2FConventionCodeFixVerifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ufcpp","download_url":"https://codeload.github.com/ufcpp/ConventionCodeFixVerifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufcpp%2FConventionCodeFixVerifier/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268484023,"owners_count":24257634,"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-08-02T02:00:12.353Z","response_time":74,"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-12-06T18:39:10.526Z","updated_at":"2025-08-03T01:32:08.920Z","avatar_url":"https://github.com/ufcpp.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ConventionCodeFixVerifier\n\nExtends the `CodeFixVerifier` class in the \"Analyzer with Code Fix\" project template to read test cases from .cs files by naming convention.\n\n## Convention\n\nThe naming convention is:\n\n### Convention Version 1\n\n- Put the following files in a folder `/DataSource/[test class name]/[test method name]`\n  - `Source.cs`: an input source code for your Analyzer/Code Fix\n  - `Result.json`: diagnostic results of the Source.cs by your Analyzer\n  - `NewSource.cs`: an output source code by your Code Fix\n- Then, `VerifyDiagnostic` calls \n  - if the folder contains only `Source.cs`\n    - `CodeFixVerifier.VerifyCSharpDiagnostic([read from Source.cs])`\n  - if the folder contains `Source.cs` and `Result.json`\n    - `CodeFixVerifier.VerifyCSharpDiagnostic([read from Source.cs], [read from Result.json])`\n  - if the folder contains `Source.cs`, `Result.json`, and `NewSource.cs`\n    - `CodeFixVerifier.VerifyCSharpDiagnostic([read from Source.cs], [read from Result.json])`\n    - `CodeFixVerifier.VerifyCSharpFix([read from Source.cs], [read from NewSource.cs])`\n\n### Convention Version 2\n\n- Put the following files/subfolders in a folder `/DataSource/[test class name]/[test method name]`\n  - `*.cs` in `Source`: inputs for your Analyzer/Code Fix\n  - `*.json` in `Diagnostic`: diagnostic results of the Source.cs by your Analyzer\n  - `*.cs` in `Expected{n}`: output source codes by the n-th action of your Code Fix\n\n## NuGet package\n\nhttps://www.nuget.org/packages/ConventionCodeFixVerifier/\n\n- Install-Package ConventionCodeFixVerifier\n\nfrom your analyzer's test project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fufcpp%2Fconventioncodefixverifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fufcpp%2Fconventioncodefixverifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fufcpp%2Fconventioncodefixverifier/lists"}