Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add: add neo smart contract syntax analyzer #839

Merged
merged 55 commits into from
Mar 23, 2024
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
dded435
add neo smart contract syntax analyzer
Jim8y Dec 17, 2023
036bd20
update ID
Jim8y Dec 17, 2023
fd7fcd3
formar
Jim8y Dec 17, 2023
b96edee
fix errors of id
Jim8y Dec 17, 2023
bba53a7
fix unused
Jim8y Dec 17, 2023
74046b3
update readme
Jim8y Dec 17, 2023
1ef59e3
fix path, namespace, and float type check
Jim8y Dec 17, 2023
ec416e6
update diable warning
Jim8y Dec 17, 2023
cf339e2
diable warning for code fix
Jim8y Dec 17, 2023
a16aa8c
remove nowarn as it also diables the error highlight
Jim8y Dec 17, 2023
f50aa26
don't run on github CI
Jim8y Dec 17, 2023
5b57b34
do not compile analyzer
Jim8y Dec 17, 2023
a1adea0
fix build
Jim8y Dec 17, 2023
d368e47
add more analyzer and also add code fix for multiple analyzers
Jim8y Dec 17, 2023
cdd1ab4
add out keyword code fix
Jim8y Dec 18, 2023
86de9c5
fix float double and out keyword
Jim8y Dec 18, 2023
e98c4d6
verify name conflict, showing confilct
Jim8y Dec 19, 2023
5b20ed9
check notify name
Jim8y Dec 23, 2023
4097846
Update src/Neo.SmartContract.Analyzer/CollectionTypesUsageAnalyzer.cs
Jim8y Dec 23, 2023
88e0d41
Update src/Neo.SmartContract.Analyzer/CharMethodsUsageAnalyzer.cs
Jim8y Dec 23, 2023
4f85298
Merge branch 'master' into syntax-analyzer
Jim8y Dec 23, 2023
b876ff4
Merge branch 'master' into syntax-analyzer
shargon Dec 27, 2023
f67f858
Optimization and clean code
shargon Dec 28, 2023
a643983
remove sample from solution build
Jim8y Dec 28, 2023
5edc142
also remove from release
Jim8y Dec 28, 2023
31778b1
Merge branch 'master' into syntax-analyzer
shargon Jan 4, 2024
1078b43
add analyzer to `_deploy` and `_initial`
Jim8y Jan 12, 2024
ccfa750
Merge branch 'master' into syntax-analyzer
Jim8y Jan 12, 2024
66c4e41
fix double detection
Jim8y Jan 15, 2024
d6e95d2
also ban decimal usage.
Jim8y Jan 15, 2024
cfea8b8
Merge branch 'master' into syntax-analyzer
Jim8y Jan 17, 2024
b407482
Merge branch 'master' into syntax-analyzer
Jim8y Feb 4, 2024
4e84843
add NEPStandard analyzer
Jim8y Feb 6, 2024
2fdecd7
Merge branch 'master' into syntax-analyzer
Jim8y Feb 7, 2024
1c0155e
use framework NEP
Jim8y Feb 7, 2024
f7f95a8
Merge branch 'master' into syntax-analyzer
shargon Feb 12, 2024
b24f41c
Fix errors in Examples.cs
shargon Feb 12, 2024
6ff37cb
Merge branch 'master' into syntax-analyzer
Jim8y Feb 26, 2024
818a247
Merge branch 'master' into syntax-analyzer
Jim8y Feb 26, 2024
6e2102d
Merge branch 'master' into syntax-analyzer
Jim8y Mar 2, 2024
b32b4b2
Merge branch 'master' into syntax-analyzer
shargon Mar 2, 2024
c56a5b5
Merge branch 'master' into syntax-analyzer
Jim8y Mar 3, 2024
d0a24c1
Merge branch 'master' into syntax-analyzer
Jim8y Mar 12, 2024
cfb0773
fix analyzer and add unit tests
Jim8y Mar 12, 2024
ef23ae8
delete examples as we have UT now
Jim8y Mar 12, 2024
2af2be3
fix standards and add ut
Jim8y Mar 13, 2024
966b31a
fix analyzer and add UT
Jim8y Mar 13, 2024
1201200
remove keywords fix and update UT
Jim8y Mar 13, 2024
b99083f
biginteger using analyzer and tests
Jim8y Mar 13, 2024
c29a360
initialize analyzer and unit test
Jim8y Mar 13, 2024
20e4db8
initialize analyzer and unit test
Jim8y Mar 13, 2024
6e2c226
Merge branch 'master' into syntax-analyzer
Jim8y Mar 19, 2024
cca61d8
Merge branch 'master' into syntax-analyzer
shargon Mar 21, 2024
4f49f54
use analyzer in examples
Jim8y Mar 22, 2024
01a16d6
Merge branch 'master' into syntax-analyzer
Jim8y Mar 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ jobs:
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Build
run: dotnet build ./neo-devpack-dotnet.sln
run: |
shargon marked this conversation as resolved.
Show resolved Hide resolved
dotnet build src/Neo.SmartContract.Framework/Neo.SmartContract.Framework.csproj
dotnet build src/Neo.Compiler.CSharp/Neo.Compiler.CSharp.csproj
dotnet build tests/Neo.SmartContract.Framework.UnitTests/Neo.SmartContract.Framework.UnitTests.csproj
dotnet build tests/Neo.Compiler.CSharp.UnitTests/Neo.Compiler.CSharp.UnitTests.csproj
- name: Check format
run: |
dotnet format --no-restore --verify-no-changes --verbosity diagnostic
Expand Down
15 changes: 15 additions & 0 deletions neo-devpack-dotnet.sln
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{79389FC0-C62
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{D5266066-0AFD-44D5-A83E-2F73668A63C8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Neo.SmartContract.Analyzer", "src\Neo.SmartContract.Analyzer\Neo.SmartContract.Analyzer.csproj", "{F5862E0E-C8ED-4B99-B353-E1F35D86D4EF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Neo.SmartContract.Analyzer.Sample", "src\Neo.SmartContract.Analyzer.Sample\Neo.SmartContract.Analyzer.Sample.csproj", "{3A34CBCD-F0B9-4E96-8BC6-6CF49B82286B}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Neo.Compiler.CSharp.TestContracts", "tests\Neo.Compiler.CSharp.TestContracts\Neo.Compiler.CSharp.TestContracts.csproj", "{8D67DD5A-D683-481F-915E-98683EA38791}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Neo.SmartContract.Framework.TestContracts", "tests\Neo.SmartContract.Framework.TestContracts\Neo.SmartContract.Framework.TestContracts.csproj", "{A372F1D6-51FF-472C-9508-FDAF7E6FEB13}"
Expand Down Expand Up @@ -58,6 +61,12 @@ Global
{93BEC5CC-BAFF-4389-89E7-84AAFF5D495D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{93BEC5CC-BAFF-4389-89E7-84AAFF5D495D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{93BEC5CC-BAFF-4389-89E7-84AAFF5D495D}.Release|Any CPU.Build.0 = Release|Any CPU
{F5862E0E-C8ED-4B99-B353-E1F35D86D4EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F5862E0E-C8ED-4B99-B353-E1F35D86D4EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F5862E0E-C8ED-4B99-B353-E1F35D86D4EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F5862E0E-C8ED-4B99-B353-E1F35D86D4EF}.Release|Any CPU.Build.0 = Release|Any CPU
{3A34CBCD-F0B9-4E96-8BC6-6CF49B82286B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3A34CBCD-F0B9-4E96-8BC6-6CF49B82286B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8D67DD5A-D683-481F-915E-98683EA38791}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8D67DD5A-D683-481F-915E-98683EA38791}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8D67DD5A-D683-481F-915E-98683EA38791}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down Expand Up @@ -96,6 +105,12 @@ Global
{FC0CAF5A-30A7-4857-B1A4-486FAAA39E5A} = {79389FC0-C621-4CEA-AD2B-6074C32E7BCA}
{4C6B120B-99B5-4888-B8D5-45031458DD07} = {D5266066-0AFD-44D5-A83E-2F73668A63C8}
{93BEC5CC-BAFF-4389-89E7-84AAFF5D495D} = {D5266066-0AFD-44D5-A83E-2F73668A63C8}
{F5862E0E-C8ED-4B99-B353-E1F35D86D4EF} = {79389FC0-C621-4CEA-AD2B-6074C32E7BCA}
{3A34CBCD-F0B9-4E96-8BC6-6CF49B82286B} = {79389FC0-C621-4CEA-AD2B-6074C32E7BCA}
{73223FBD-C562-4FA0-9722-C7F1C382A9DE} = {79389FC0-C621-4CEA-AD2B-6074C32E7BCA}
{D541BCE9-65BC-475B-94E5-19B6BFFF2B8E} = {79389FC0-C621-4CEA-AD2B-6074C32E7BCA}
{35A34EBD-F2BF-4D83-A096-D5F007B12732} = {79389FC0-C621-4CEA-AD2B-6074C32E7BCA}
{D6D53889-5A10-46A4-BA66-E78B56EC1881} = {79389FC0-C621-4CEA-AD2B-6074C32E7BCA}
{8D67DD5A-D683-481F-915E-98683EA38791} = {D5266066-0AFD-44D5-A83E-2F73668A63C8}
{A372F1D6-51FF-472C-9508-FDAF7E6FEB13} = {D5266066-0AFD-44D5-A83E-2F73668A63C8}
{D0153204-6AEF-4D94-B0E1-8124C38C91D4} = {D5266066-0AFD-44D5-A83E-2F73668A63C8}
Expand Down
Loading