Skip to content

Analyze unsupported platform APIs#1594

Draft
Jim8y wants to merge 1 commit intomaster-n3from
fix/analyze-unsupported-platform-apis
Draft

Analyze unsupported platform APIs#1594
Jim8y wants to merge 1 commit intomaster-n3from
fix/analyze-unsupported-platform-apis

Conversation

@Jim8y
Copy link
Copy Markdown
Contributor

@Jim8y Jim8y commented Apr 19, 2026

Summary

  • add analyzer coverage for unsupported platform namespaces such as System.IO, System.Net, System.Reflection, and System.Threading
  • report unsupported runtime types such as Console, DateTime, Guid, Random, and Environment
  • register the new analyzer rule and cover namespace and type usages with tests

Validation

  • dotnet test tests/Neo.SmartContract.Analyzer.UnitTests/Neo.SmartContract.Analyzer.UnitTests.csproj --filter "UnsupportedPlatformApiAnalyzerUnitTests" --no-restore
  • dotnet test tests/Neo.SmartContract.Analyzer.UnitTests/Neo.SmartContract.Analyzer.UnitTests.csproj --no-restore

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.25%. Comparing base (3665f83) to head (6a9e329).

Additional details and impacted files
@@            Coverage Diff             @@
##           master-n3    #1594   +/-   ##
==========================================
  Coverage      80.24%   80.25%           
==========================================
  Files            295      295           
  Lines          25456    25456           
  Branches        3453     3453           
==========================================
+ Hits           20428    20429    +1     
  Misses          4132     4132           
+ Partials         896      895    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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