这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@pjcdawkins
Copy link
Contributor

No description provided.

@pjcdawkins pjcdawkins force-pushed the support-dotnet branch 2 times, most recently from fefa5f6 to b69c0dc Compare June 29, 2025 09:10
@pjcdawkins pjcdawkins marked this pull request as ready for review June 30, 2025 07:49
@pjcdawkins pjcdawkins requested a review from Copilot July 1, 2025 18:15

This comment was marked as outdated.

@pjcdawkins pjcdawkins requested a review from Copilot July 1, 2025 18:46

This comment was marked as outdated.

@pjcdawkins pjcdawkins requested a review from Copilot July 2, 2025 07:11
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for .NET projects by introducing a new dotnet dependency manager, updating rules, tests, and documentation to detect Blazor and ASP.NET Core frameworks.

  • Implemented dotnetManager to parse .csproj and packages.lock.json files
  • Registered the new .NET manager and added unit tests for various version scenarios
  • Extended rule configurations and test data to detect Blazor WebAssembly, Blazor Server, and ASP.NET Core

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pkg/dep/dotnet.go New .NET manager implementation
pkg/dep/dotnet_test.go Tests covering .NET manager behavior
pkg/dep/dep.go Added dotnet to manager types and registration
pkg/rules/testdata/mock-blazor/ Test assets for Blazor project (.csproj and packages.lock.json)
pkg/rules/analyze_testfs_test.go Extended test cases to include Blazor frameworks and msbuild
docs/functions.md Documented depExists/depVersion for dotnet
config/frameworks.yml Added rules for Blazor WebAssembly, Blazor Server, and ASP.NET Core
expr.cache Updated expression cache to include dotnet functions
Comments suppressed due to low confidence (3)

config/frameworks.yml:614

  • The group order for blazor-wasm is [dotnet, blazor], but the test expects []string{"blazor", "dotnet"}. Swap the order to match the test.
      group: [dotnet, blazor]

pkg/rules/analyze_testfs_test.go:126

  • Add a test case for the blazor-server rule in TestAnalyze_TestFS_ActualRules to cover server-side Blazor detection.
		{Ruleset: "frameworks", Path: "blazor-app", Result: "blazor-wasm", Rules: []string{"blazor-wasm"},

docs/functions.md:14

  • [nitpick] Use proper nested list syntax in Markdown (e.g., indent with two spaces) so that parameter bullets under depExists and depVersion render correctly.
    - `fs`: The filesystem, representing each directory

@pjcdawkins pjcdawkins merged commit a71900f into main Jul 3, 2025
2 checks passed
@pjcdawkins pjcdawkins deleted the support-dotnet branch July 3, 2025 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants