R3E.SmartContract.Analyzer 1.0.2

dotnet add package R3E.SmartContract.Analyzer --version 1.0.2
                    
NuGet\Install-Package R3E.SmartContract.Analyzer -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="R3E.SmartContract.Analyzer" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="R3E.SmartContract.Analyzer" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="R3E.SmartContract.Analyzer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add R3E.SmartContract.Analyzer --version 1.0.2
                    
#r "nuget: R3E.SmartContract.Analyzer, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package R3E.SmartContract.Analyzer@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=R3E.SmartContract.Analyzer&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=R3E.SmartContract.Analyzer&version=1.0.2
                    
Install as a Cake Tool

Neo.SmartContract.Analyzer

Roslyn-based code analyzer for Neo smart contracts that provides compile-time checks and warnings to ensure contract safety and best practices.

Features

  • Compile-time detection of unsafe patterns
  • Best practice enforcement for Neo smart contracts
  • Integration with Visual Studio and other IDEs
  • Customizable rule severity levels
  • Automatic code fixes for common issues

Installation

dotnet add package R3E.SmartContract.Analyzer

Analyzer Rules

  • NEO001: Warn about non-deterministic operations
  • NEO002: Detect unsafe external calls
  • NEO003: Check for proper storage key usage
  • NEO004: Validate event parameter types
  • NEO005: Ensure proper BigInteger usage
  • NEO006: Detect potential reentrancy issues

Usage

The analyzer automatically runs during compilation when included in your project. Configure rules in your .editorconfig:

[*.cs]
# Neo Smart Contract Analyzer Rules
dotnet_diagnostic.NEO001.severity = warning
dotnet_diagnostic.NEO002.severity = error

License

MIT License - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 14 7/19/2025
1.0.1 44 7/18/2025
1.0.0 69 7/18/2025
0.0.4 134 7/14/2025
0.0.1 129 7/13/2025