{"id":48540166,"url":"https://github.com/panoramicdata/panoramicdata.nugetmanagement","last_synced_at":"2026-04-08T04:01:54.328Z","repository":{"id":348339508,"uuid":"1197582905","full_name":"panoramicdata/PanoramicData.NugetManagement","owner":"panoramicdata","description":"Nuget package for the management of nuget packages","archived":false,"fork":false,"pushed_at":"2026-03-31T19:51:55.000Z","size":79,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-31T20:06:35.302Z","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/panoramicdata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-31T17:44:05.000Z","updated_at":"2026-03-31T19:50:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/panoramicdata/PanoramicData.NugetManagement","commit_stats":null,"previous_names":["panoramicdata/panoramicdata.nugetmanagement"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/panoramicdata/PanoramicData.NugetManagement","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoramicdata%2FPanoramicData.NugetManagement","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoramicdata%2FPanoramicData.NugetManagement/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoramicdata%2FPanoramicData.NugetManagement/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoramicdata%2FPanoramicData.NugetManagement/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/panoramicdata","download_url":"https://codeload.github.com/panoramicdata/PanoramicData.NugetManagement/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoramicdata%2FPanoramicData.NugetManagement/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31539229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"online","status_checked_at":"2026-04-08T02:00:06.127Z","response_time":54,"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":"2026-04-08T04:01:50.241Z","updated_at":"2026-04-08T04:01:54.319Z","avatar_url":"https://github.com/panoramicdata.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PanoramicData.NugetManagement\n\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/PLACEHOLDER)](https://app.codacy.com/gh/panoramicdata/PanoramicData.NugetManagement/dashboard)\n[![NuGet](https://img.shields.io/nuget/v/PanoramicData.NugetManagement)](https://www.nuget.org/packages/PanoramicData.NugetManagement)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nOpinionated assessment of NuGet packages in a GitHub organization for best practices compliance.\n\n## Overview\n\nPanoramicData.NugetManagement connects to a GitHub organization, examines each repository, and evaluates it against a comprehensive set of opinionated best practice rules covering:\n\n- **CI/CD** — CI workflow structure, checkout depth, action versions\n- **Versioning** — Nerdbank.GitVersioning, global.json SDK pinning\n- **Central Package Management** — CPM enabled, no inline versions\n- **NuGet Hygiene** — snupkg symbols, GeneratePackageOnBuild, PackageReadmeFile\n- **Target Framework** — Latest .NET version\n- **Build Quality** — TreatWarningsAsErrors, Nullable, ImplicitUsings\n- **Code Quality** — .editorconfig, file-scoped namespaces, Codacy, CodeQL\n- **Testing** — Test project existence, xUnit v3, coverlet\n- **Serialization** — System.Text.Json preferred over Newtonsoft\n- **HTTP Clients** — Refit preferred\n- **Licensing** — MIT LICENSE, PackageLicenseExpression, Copyright\n- **README \u0026 Badges** — Codacy, NuGet, License badges\n- **Repository Hygiene** — .gitignore, NeutralResourcesLanguage\n- **Project Metadata** — PackageId, RepositoryUrl, Authors, PackageIcon\n- **Community Health** — SECURITY.md, CONTRIBUTING.md\n- **Dependency Automation** — Dependabot or Renovate\n\n## Installation\n\n```shell\ndotnet add package PanoramicData.NugetManagement\n```\n\n## Quick Start\n\n```csharp\nusing Octokit;\nusing Microsoft.Extensions.Logging;\nusing PanoramicData.NugetManagement.Models;\nusing PanoramicData.NugetManagement.Services;\n\n// Create an authenticated GitHub client\nvar github = new GitHubClient(new ProductHeaderValue(\"MyApp\"))\n{\n    Credentials = new Credentials(\"your-github-token\")\n};\n\n// Configure assessment options\nvar options = new AssessmentOptions\n{\n    OrganizationName = \"your-org\",\n    RepositoryOptions = new Dictionary\u003cstring, RepoOptions\u003e\n    {\n        [\"legacy-repo\"] = new() { Exclude = true },\n        [\"web-app\"] = new() { IsPackable = false }\n    }\n};\n\n// Run the assessment\nusing var loggerFactory = LoggerFactory.Create(b =\u003e b.AddConsole());\nvar assessor = new OrganizationAssessor(\n    github,\n    loggerFactory.CreateLogger\u003cOrganizationAssessor\u003e(),\n    loggerFactory.CreateLogger\u003cRepositoryContextBuilder\u003e());\n\nvar result = await assessor.AssessAsync(options);\n\n// Report results\nConsole.WriteLine($\"Organization: {result.OrganizationName}\");\nConsole.WriteLine($\"Repositories: {result.RepositoryCount}\");\nConsole.WriteLine($\"Compliant: {result.CompliantCount}\");\nConsole.WriteLine($\"Non-compliant: {result.NonCompliantCount}\");\n\nforeach (var repo in result.RepositoryAssessments)\n{\n    Console.WriteLine($\"\\n{repo.RepositoryFullName}: {repo.PassedCount}/{repo.RuleResults.Count} passed\");\n    foreach (var failure in repo.RuleResults.Where(r =\u003e !r.Passed))\n    {\n        Console.WriteLine($\"  [{failure.Severity}] {failure.RuleId}: {failure.Message}\");\n        if (failure.Remediation is not null)\n        {\n            Console.WriteLine($\"    Fix: {failure.Remediation}\");\n        }\n    }\n}\n```\n\n## Per-Repository Options\n\n```csharp\nvar repoOptions = new RepoOptions\n{\n    Exclude = false,                     // Set true to skip entirely\n    IsPackable = true,                   // Set false for apps/tools (skips NuGet rules)\n    EnforceRequiredProperties = true,    // Configurable 'required' keyword enforcement\n    SuppressedRules = [\"HTTP-01\"]        // Suppress specific rules by ID\n};\n```\n\n## Available Rules\n\nUse `RuleRegistry.Rules` to enumerate all discovered rules at runtime.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanoramicdata%2Fpanoramicdata.nugetmanagement","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanoramicdata%2Fpanoramicdata.nugetmanagement","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanoramicdata%2Fpanoramicdata.nugetmanagement/lists"}