Skip to content

Conversation

@smaillet
Copy link
Member

Updated extension analyzer to latest support

  • Sadly not only the use of the extension keyword has issues but so do analyzers intended to find such usage.
    • For now the only options is a RegEx source level find across the entire solution for extension(?([^\r\n])\s)*\( [Match case]
  • Updated System.CommandLine to latest build
    • Updated tests to account for known issues resolved
      • Still has Bug 2664 where it treats --version as a value of a preceding property instead of an error that the option isn't used alone.
  • Added comments to various extension classes why it is NOT allowed to use the extension keyword yet.
    • Hopefully this changes soon after launch of .NET 10, we'll see.

* Sadly not only the use of the `extension` keyword has issues but so do analyzers intended to find such usage.
    - For now the only options is a RegEx source level find across the entire solution for `extension(?([^\r\n])\s)*\(` [Match case]
* Updated System.CommandLine to latest build
    - Updated tests to account for known issues resolved
        - Still has [Bug 2664](dotnet/command-line-api#2664) where it treats `--version` as a value of a preceding property instead of an error that the option isn't used alone.
* Added comments to various extension classes why it is NOT allowed to use the `extension` keyword yet.
    - Hopefully this changes soon after launch of .NET 10, we'll see.
@github-actions
Copy link

Test Results

310 tests  ±0   197 ✅ +2   14s ⏱️ +3s
  8 suites ±0   113 💤  - 2 
  8 files   ±0     0 ❌ ±0 

Results for commit e7094bd. ± Comparison against base commit 4e55266.

@smaillet smaillet merged commit 7d37b97 into UbiquityDotNET:develop Oct 28, 2025
4 checks passed
@smaillet smaillet deleted the ExtensionChecks branch October 28, 2025 21:00
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.

1 participant