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

Update notary branch #2771

Closed
wants to merge 176 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
2a64c1c
Remove deprecated note (#2677)
ixje Mar 20, 2022
41055be
3.2.0 (#2682)
erikzhang Apr 6, 2022
ed68274
3.2.1 (#2694)
erikzhang Apr 18, 2022
6c09dc0
Fix UpdateCounter issues (#2697)
shargon Apr 25, 2022
d76b800
Update LedgerContract.cs (#2703)
shargon Apr 25, 2022
17656ce
Fix committe issue (#2707)
shargon Apr 28, 2022
42b6480
Fix Signer.ToStackItem() (#2711)
erikzhang Apr 28, 2022
9c4aad3
Fix GetCandidates (#2686)
shargon May 4, 2022
f09754c
Fix fee of CreateMultisigAccount (#2712)
erikzhang May 5, 2022
4128119
NEP6Wallet.ToJson method (and tests) (#2714)
devhawk May 8, 2022
3b1e4d8
Separate plugins in different folder (#2696)
Jim8y May 8, 2022
6ec801d
Sync NeoVM: add MODMUL and MODPOW (#2719)
erikzhang May 9, 2022
c9ff156
Fix native notify (#2731)
erikzhang May 10, 2022
1fc7601
Fix Iterators (#2730)
erikzhang May 10, 2022
2e31a70
Refactor wallet classes (#2726)
erikzhang May 12, 2022
251e4a1
Fix reference counting for native contracts (#2732)
erikzhang May 12, 2022
5ce2ad8
Fix native transfer (#2734)
erikzhang May 13, 2022
f83720e
Add IDiagnostic interface (#2735)
erikzhang May 13, 2022
56c952c
Optimize storage (#2736)
erikzhang May 17, 2022
979113a
Fix Blockchain.Persist (#2738)
erikzhang May 18, 2022
7153ce9
Snapshot isolation (#2729)
erikzhang May 18, 2022
04e9cb7
Fix InteroperableList (#2740)
erikzhang May 18, 2022
f221221
MakeTransaction takes optional arg `block` to run transactions in use…
Hecate2 May 18, 2022
03fd443
Fix AES256Encrypt Bug in OSX (#2742)
doubiliu May 20, 2022
e7cc1fd
Cache not found keys (#2744)
erikzhang May 21, 2022
9f383f8
Remove binary data from Signers (#2708)
shargon May 23, 2022
eaa434d
Modify fee of System.Runtime.GetNotifications (#2748)
erikzhang May 23, 2022
7800ad0
Optimize deserialization (#2737)
erikzhang May 23, 2022
043682f
Fix dynamic call (#2745)
erikzhang May 24, 2022
44b95cc
Improve dynamic call (#2755)
erikzhang May 24, 2022
3b58adf
Limit notifications (#2747)
erikzhang May 24, 2022
c3c0a09
Small StorageKey optimization (#2741)
shargon May 24, 2022
15c01dd
Fix System.Runtime.GetRandom (#2749)
erikzhang May 26, 2022
af538a7
Remove plugin interfaces (#2757)
erikzhang May 26, 2022
26a5a7d
Add candidate events (#2754)
shargon May 26, 2022
bc28b21
Fix CalculateNetworkFee (#2761)
erikzhang May 28, 2022
2fda404
Fix MemoryStore (#2759)
erikzhang May 31, 2022
736c346
3.3.0 (#2762)
erikzhang May 31, 2022
9e96873
Add ref for ReadNullableArray(#2769)
ZhangTao1596 Jun 9, 2022
da81401
Fix native contract ABI order (#2768)
erikzhang Jun 10, 2022
26d04a6
3.3.1
erikzhang Jun 14, 2022
8d73dea
Add Has Method (#2781)
shargon Jun 30, 2022
7bb8650
Fix Candidate registered event (#2779)
shargon Jul 4, 2022
7246968
Sync Neo.VM 3.3.1-CI00321 (#2786)
erikzhang Jul 8, 2022
e55325c
correct typos, comments (#2785)
Jim8y Jul 10, 2022
17c7358
Rename projects (#2790)
erikzhang Jul 15, 2022
f900e2e
Move Neo.Json into a separate project (#2791)
erikzhang Jul 22, 2022
8e68c3f
Fix workflow (#2792)
erikzhang Jul 22, 2022
718fc9f
Improve ApplicationEngine (#2796)
erikzhang Aug 2, 2022
e32ef6e
Remove Oracle Request (#2795)
shargon Aug 3, 2022
76f9d9a
Optimize RemoteNode (#2800)
erikzhang Aug 3, 2022
28ab45a
3.4.0 (#2802)
erikzhang Aug 4, 2022
5f4c14e
Fix StdLib.Atoi (#2804)
erikzhang Aug 17, 2022
0a6f2ad
Optimize Wallet (#2808)
erikzhang Sep 1, 2022
91706ec
Remove SQLiteWallet (#2809)
erikzhang Sep 2, 2022
90cf23b
Native: store ID->hash map in ContractManagement, add iterator (#2807)
roman-khimov Sep 5, 2022
27f63be
Allow contracts to load script at runtime dynamically (#2756)
erikzhang Sep 16, 2022
fcbf479
Close #2820 (#2821)
shargon Oct 17, 2022
77ee2cc
Plugin file watcher only reminds user to restart node (#2823)
Ashuaidehao Oct 24, 2022
0172d6b
Bump Akka from 1.4.40 to 1.4.46 in /src/Neo (#2830)
dependabot[bot] Nov 23, 2022
f88d4f8
3.5.0 (#2832)
erikzhang Dec 6, 2022
ee93a8d
.NET 7 (#2836)
erikzhang Dec 27, 2022
bf5dcba
Native: store ID->hash mapping for native contracts too (#2833)
roman-khimov Jan 7, 2023
ba957ff
fix NeoSystem shutdown order (#2842)
ixje Jan 16, 2023
a84d6ec
update test key name (#2839)
Jim8y Feb 2, 2023
e786ab4
Add zkp - Groth16 (#2691)
doubiliu Feb 8, 2023
ec7ac2b
Payloads: add NotValidBefore transaction attribute (#2812)
roman-khimov Mar 11, 2023
df534f6
Optimize vote reward data (#2841)
ZhangTao1596 Mar 15, 2023
a20eb4b
Use strictMode during deploy (#2849)
shargon Apr 10, 2023
5f36a03
Add compatibility test for BLS12-381 scalar multiplication operation …
AnnaShaleva Apr 12, 2023
d6620cb
SmartContract: add FindOptions.Backwards to iterate in reverse order …
roman-khimov Apr 12, 2023
535aa20
Fix exception message (#2860)
ixje May 18, 2023
ab21451
Remove extra space (#2878)
shargon Jul 27, 2023
0292ace
Add Hardfork for StrictMode (#2881)
Ashuaidehao Aug 8, 2023
9464107
add price for ASSERTMSG and ABORTMSG opcodes (#2877)
ixje Aug 9, 2023
d63eb1d
Fix JNumber Deserialize (#2883)
Ashuaidehao Aug 15, 2023
773b96a
Check ABI for notifications (#2810)
erikzhang Aug 18, 2023
24d1e7f
Fix hardfork checking logic (#2886)
Jim8y Aug 29, 2023
4a2a8cf
Trying to fix ut (#2891)
shargon Aug 31, 2023
5210728
fix trusts conflicts (#2892)
Jim8y Sep 1, 2023
6398801
Payloads: implement Conflicts attribute (#2818)
AnnaShaleva Sep 4, 2023
4e9314d
3.6.0 (#2893)
superboyiii Sep 5, 2023
5bccb94
Interop syscall for current tx signers (#2827)
shargon Sep 13, 2023
5207956
String element length (#2854)
Jim8y Sep 15, 2023
bfe6d13
Reduce max depth (#2912)
shargon Sep 25, 2023
f6d578b
fix contract trust FromStackItem `ContractPermissionDescriptor.Create…
Hecate2 Sep 25, 2023
0e9cb9f
Update CalculateNetworkFee (#2920)
belane Sep 29, 2023
fdc4389
fix benchmark (#2924)
Jim8y Oct 3, 2023
f5e257c
Set attribute fee (#2916)
shargon Oct 10, 2023
1c7f933
Ensure nef file fit in VM
shargon Oct 24, 2023
29fab8d
Revert "Ensure nef file fit in VM"
shargon Oct 24, 2023
efa8659
Ensure nef file fit in vm (#2939)
shargon Nov 3, 2023
3fc8895
Merge NativeUpdateHistory with HardForks (#2941)
shargon Nov 5, 2023
d824357
fix plugins to make single file assemblies possible (#2946)
gsmachado Nov 7, 2023
ec6ddf6
Add MaxNestedItems to WitnessCondition.FromJson (#2951)
shargon Nov 8, 2023
8d270e6
Improved scheme for Conflicts attribute storing and pricing (#2913)
AnnaShaleva Nov 8, 2023
6df8395
check null scriptcontainer (#2953)
Jim8y Nov 9, 2023
64fecc4
code optimization (#2958)
Jim8y Nov 10, 2023
07a1810
Validate serialization during Contract deploy and Update (#2948)
shargon Nov 10, 2023
1ae6a13
fix ut (#2959)
Jim8y Nov 10, 2023
61a0665
3.6.2 (#2962)
superboyiii Nov 16, 2023
62cf4f6
Migrating Neo VM (#2970)
lock9 Nov 22, 2023
cde23d5
Update Neo.VM location in README.md (#2988)
shargon Nov 22, 2023
2e7e70e
Fix Neo VM target frameworks (#2989)
lock9 Nov 22, 2023
683af79
Remove unnecessary default seedlist (#2980)
shargon Nov 25, 2023
40d1086
Neo-node Migration (#2990)
lock9 Dec 7, 2023
ef85776
Fix warning (#3021)
shargon Dec 12, 2023
52f660a
Nuget Package Icon & Symbols (#3020)
cschuchardt88 Dec 12, 2023
c644434
Package icons - hotfix (#3022)
cschuchardt88 Dec 12, 2023
aede70b
Fixed MyGet Workflow (#3027)
cschuchardt88 Dec 13, 2023
30ac705
fixed myget (#3029)
cschuchardt88 Dec 15, 2023
c78ac5a
Add: print out the stack (#3033)
Jim8y Dec 25, 2023
254fc99
Nuget MyGet Fix (#3031)
cschuchardt88 Dec 27, 2023
9db894f
Added README to packages (#3026)
cschuchardt88 Dec 30, 2023
bcf6eab
Fix: fix equal (#3028)
Jim8y Dec 31, 2023
447b149
Set project as nullable (#3042)
shargon Dec 31, 2023
13f506c
Fix: Editconfig (#3023)
Jim8y Jan 2, 2024
1b2c41b
set timeout for tests (#3046)
Jim8y Jan 2, 2024
9f50e37
Removes `WebSocket`s from the network layer (#3039)
cschuchardt88 Jan 2, 2024
5c9699e
Fix: specify the error message (#3030)
Jim8y Jan 3, 2024
5873dc6
Fixed workflow timeout-minutes (#3048)
cschuchardt88 Jan 3, 2024
e5cebae
Remove some warnings (#3057)
shargon Jan 4, 2024
99a48d7
Enforce Line Endings in `.editorconfig` (#3060)
cschuchardt88 Jan 5, 2024
87863c6
Removed asp.net core (#3065)
cschuchardt88 Jan 6, 2024
25f6297
Make public ReadUserInput (#3068)
shargon Jan 8, 2024
7b92845
add hash verification for OnImport (#3070)
Jim8y Jan 9, 2024
9420b97
Updated unit-test (#3073)
cschuchardt88 Jan 9, 2024
e62e402
Removed `MyGet` (#3071)
cschuchardt88 Jan 9, 2024
3feca2a
avoid nonsense exception messages. (#3063)
Jim8y Jan 10, 2024
73d36e3
Updated BLS12_381 (#3074)
cschuchardt88 Jan 10, 2024
27df5ce
Fixed asp.net core project (#3067)
cschuchardt88 Jan 10, 2024
b733a9d
Clean usings (#3078)
shargon Jan 10, 2024
d98b0af
Avoid IsExternalInit (#3079)
shargon Jan 10, 2024
cfffe4f
Convert to Neo.Json and Neo.ConsoleService to `dotnet` standard 2.1 (…
cschuchardt88 Jan 10, 2024
ff989a9
Add: add a new verify result status code (#3076)
Jim8y Jan 10, 2024
49ced83
Move to monorepo: Neo.Cryptography.BLS12_381 (#3077)
shargon Jan 11, 2024
e04da14
Add: add pull request template (#3081)
Jim8y Jan 11, 2024
de7fc93
Adding NNS to `neo-cli` (#3032)
cschuchardt88 Jan 11, 2024
5febc49
Update & Consolidate nugets (#3083)
shargon Jan 11, 2024
3d0d27e
Adding Devcontainer and link to codespace (#3075)
vncoelho Jan 11, 2024
a294c9c
Made `MemoryStore` the default whithout `config.json` for `neo-cli` (…
cschuchardt88 Jan 12, 2024
a478329
Update: list all existing pligins when checking plugin list, not just…
Jim8y Jan 13, 2024
d018ccd
`Bug Fix`| Signers not being set in `neo-cli` with Invoke Command (#3…
cschuchardt88 Jan 14, 2024
a7db45c
Config: Add comments to json config (#3086)
Jim8y Jan 16, 2024
38218bb
Update feature-or-enhancement-request.md (#3106)
shargon Jan 23, 2024
569b614
Add: enable command line command (#3040)
Jim8y Feb 1, 2024
7c59fe8
[`neo-cli`]: Plugin(s) Download Config File & Bug Fixes & Output Form…
cschuchardt88 Feb 1, 2024
2dd972d
fix the benchmark (#3109)
Jim8y Feb 2, 2024
92d487c
Fix: specify log exception. (#3089)
Jim8y Feb 2, 2024
a1291a6
Fix ut (#3113)
shargon Feb 6, 2024
9681219
Neo as dotnet standard (#3082)
shargon Feb 7, 2024
d65c198
[VM UT] update UT name (#3115)
Jim8y Feb 7, 2024
e3707fd
Related to https://github.com/neo-project/neo/pull/3082#issuecomment-…
shargon Feb 7, 2024
76c368e
VM: avoid checking reference when the stack is not full. (#3107)
Jim8y Feb 7, 2024
3e52756
[Neo VM: FIX] the GetString() methods of bytestring requires strictUT…
Jim8y Feb 8, 2024
95708b5
[Neo Fix] fix the store crash issue (#3124)
Jim8y Feb 8, 2024
b4dadcb
Fix storage encoding (#3130)
shargon Feb 10, 2024
4a5a7f5
Allow access TestingEngine to internal (#3134)
shargon Feb 11, 2024
25ed6d6
Added `publish` to `github packages` (#3072)
cschuchardt88 Feb 14, 2024
4940501
Optimize opcode price charging (#3131)
shargon Feb 14, 2024
6746665
Split `namespaces` into Different Libraries. (#3136)
cschuchardt88 Feb 15, 2024
fd3d68d
add loadstore back (#3141)
Jim8y Feb 15, 2024
3f002a6
Update InteropInterface (#3143)
shargon Feb 16, 2024
ffa56fe
Fix: Screen Rendering on Invalid Arguments (#3148)
shargon Feb 20, 2024
2e7e1e4
Update pkgs-delete.yml (#3150)
shargon Feb 21, 2024
a6803cf
Update NuGet.Config (#3151)
shargon Feb 21, 2024
febcc21
Fix package version and frameworks (#3152)
shargon Feb 21, 2024
ffa9064
Fix store (#3149)
shargon Feb 21, 2024
d8af2c6
Decouple calculate fee from Wallet (#3147)
shargon Feb 23, 2024
de39a36
Fix coverage (#3155)
shargon Feb 23, 2024
1fffb95
VM - Jump table (#3120)
shargon Feb 23, 2024
b467613
Allow Native Contracts to be updated (#2942)
shargon Feb 23, 2024
022a63e
Allow to override sobre properties (#3159)
shargon Feb 23, 2024
66ef246
Expose GetContractState (#3161)
shargon Feb 23, 2024
9373756
BLS coverage result has a different name than the rest (#3162)
vncoelho Feb 23, 2024
d4564d1
Add method in exception (#3164)
shargon Feb 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 14 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
{
"name": "C# (.NET)",
"image": "mcr.microsoft.com/devcontainers/dotnet:1-7.0-jammy",
"postCreateCommand": "dotnet restore && dotnet build",
"customizations": {
"vscode": {
"extensions": [
"ms-dotnettools.csdevkit"
]
}
}
}
287 changes: 285 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,297 @@
# dotnet tool update -g dotnet-format
# remember to have: git config --global core.autocrlf false #(which is usually default)

# top-most EditorConfig file
root = true

# Every file

# Don't use tabs for indentation.
[*]
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
end_of_line = lf

# (Please don't specify an indent_size here; that has too many unintended consequences.)
spelling_exclusion_path = SpellingExclusions.dic

# Code files
[*.{cs,csx,vb,vbx}]
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

# XML project files
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
indent_size = 2

# XML config files
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
indent_size = 2

# JSON files
[*.json]
indent_size = 2

# Powershell files
[*.ps1]
indent_size = 2

# Shell script files
[*.sh]
end_of_line = lf
indent_size = 2

# Dotnet code style settings:
[*.{cs,vb}]
# Member can be made 'readonly'
csharp_style_prefer_readonly_struct_member = true
dotnet_diagnostic.IDE0251.severity = warning
dotnet_diagnostic.IDE0044.severity = warning

dotnet_diagnostic.CS1591.severity = silent

# Sort using and Import directives with System.* appearing first
dotnet_sort_system_directives_first = false
dotnet_separate_import_directive_groups = false
# Avoid "this." and "Me." if not necessary
dotnet_style_qualification_for_field = false:refactoring
dotnet_style_qualification_for_property = false:refactoring
dotnet_style_qualification_for_method = false:refactoring
dotnet_style_qualification_for_event = false:refactoring

# Use language keywords instead of framework type names for type references
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
dotnet_style_predefined_type_for_member_access = true:suggestion

# Suggest more modern language features when available
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_explicit_tuple_names = true:suggestion

# Whitespace options
dotnet_style_allow_multiple_blank_lines_experimental = false

# Non-private static fields are PascalCase
dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.symbols = non_private_static_fields
dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.style = non_private_static_field_style

dotnet_naming_symbols.non_private_static_fields.applicable_kinds = field
dotnet_naming_symbols.non_private_static_fields.applicable_accessibilities = public, protected, internal, protected_internal, private_protected
dotnet_naming_symbols.non_private_static_fields.required_modifiers = static

dotnet_naming_style.non_private_static_field_style.capitalization = pascal_case

# Non-private readonly fields are PascalCase
dotnet_naming_rule.non_private_readonly_fields_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.non_private_readonly_fields_should_be_pascal_case.symbols = non_private_readonly_fields
dotnet_naming_rule.non_private_readonly_fields_should_be_pascal_case.style = non_private_readonly_field_style

dotnet_naming_symbols.non_private_readonly_fields.applicable_kinds = field
dotnet_naming_symbols.non_private_readonly_fields.applicable_accessibilities = public, protected, internal, protected_internal, private_protected
dotnet_naming_symbols.non_private_readonly_fields.required_modifiers = readonly

dotnet_naming_style.non_private_readonly_field_style.capitalization = pascal_case

# Constants are PascalCase
dotnet_naming_rule.constants_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.constants_should_be_pascal_case.symbols = constants
dotnet_naming_rule.constants_should_be_pascal_case.style = constant_style

dotnet_naming_symbols.constants.applicable_kinds = field, local
dotnet_naming_symbols.constants.required_modifiers = const

dotnet_naming_style.constant_style.capitalization = pascal_case

# Static fields are camelCase and start with s_
dotnet_naming_rule.static_fields_should_be_camel_case.severity = suggestion
dotnet_naming_rule.static_fields_should_be_camel_case.symbols = static_fields
dotnet_naming_rule.static_fields_should_be_camel_case.style = static_field_style

dotnet_naming_symbols.static_fields.applicable_kinds = field
dotnet_naming_symbols.static_fields.required_modifiers = static

dotnet_naming_style.static_field_style.capitalization = camel_case
dotnet_naming_style.static_field_style.required_prefix = s_

# Instance fields are camelCase and start with _
dotnet_naming_rule.instance_fields_should_be_camel_case.severity = suggestion
dotnet_naming_rule.instance_fields_should_be_camel_case.symbols = instance_fields
dotnet_naming_rule.instance_fields_should_be_camel_case.style = instance_field_style

dotnet_naming_symbols.instance_fields.applicable_kinds = field

dotnet_naming_style.instance_field_style.capitalization = camel_case
dotnet_naming_style.instance_field_style.required_prefix = _

# Locals and parameters are camelCase
dotnet_naming_rule.locals_should_be_camel_case.severity = suggestion
dotnet_naming_rule.locals_should_be_camel_case.symbols = locals_and_parameters
dotnet_naming_rule.locals_should_be_camel_case.style = camel_case_style

dotnet_naming_symbols.locals_and_parameters.applicable_kinds = parameter, local

dotnet_naming_style.camel_case_style.capitalization = camel_case

# Local functions are PascalCase
dotnet_naming_rule.local_functions_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.local_functions_should_be_pascal_case.symbols = local_functions
dotnet_naming_rule.local_functions_should_be_pascal_case.style = local_function_style

dotnet_naming_symbols.local_functions.applicable_kinds = local_function

dotnet_naming_style.local_function_style.capitalization = pascal_case

# By default, name items with PascalCase
dotnet_naming_rule.members_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.members_should_be_pascal_case.symbols = all_members
dotnet_naming_rule.members_should_be_pascal_case.style = pascal_case_style

dotnet_naming_symbols.all_members.applicable_kinds = *

dotnet_naming_style.pascal_case_style.capitalization = pascal_case

file_header_template = Copyright (C) 2015-2024 The Neo Project.\n\n{fileName} file belongs to the neo project and is free\nsoftware distributed under the MIT software license, see the\naccompanying file LICENSE in the main directory of the\nrepository or http://www.opensource.org/licenses/mit-license.php\nfor more details.\n\nRedistribution and use in source and binary forms with or without\nmodifications are permitted.

# Require file header
dotnet_diagnostic.IDE0073.severity = error

# RS0016: Only enable if API files are present
dotnet_public_api_analyzer.require_api_files = true

# IDE0055: Fix formatting
# Workaround for https://github.com/dotnet/roslyn/issues/70570
dotnet_diagnostic.IDE0055.severity = warning

# CSharp code style settings:
[*.cs]
# Newline settings
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true

# Indentation preferences
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents = true
csharp_indent_case_contents_when_block = true
csharp_indent_switch_labels = true
csharp_indent_labels = flush_left

# Whitespace options
csharp_style_allow_embedded_statements_on_same_line_experimental = false
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = false
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = false

# Prefer "var" everywhere
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion

# Prefer method-like constructs to have a block body
csharp_style_expression_bodied_methods = false:none
csharp_style_expression_bodied_constructors = false:none
csharp_style_expression_bodied_operators = false:none

# Prefer property-like constructs to have an expression-body
csharp_style_expression_bodied_properties = true:none
csharp_style_expression_bodied_indexers = true:none
csharp_style_expression_bodied_accessors = true:none

# Suggest more modern language features when available
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
csharp_style_throw_expression = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion
csharp_style_prefer_extended_property_pattern = true:suggestion

# Space preferences
csharp_space_after_cast = false
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_after_comma = true
csharp_space_after_dot = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_after_semicolon_in_for_statement = true
csharp_space_around_binary_operators = before_and_after
csharp_space_around_declaration_statements = do_not_ignore
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_before_comma = false
csharp_space_before_dot = false
csharp_space_before_open_square_brackets = false
csharp_space_before_semicolon_in_for_statement = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_between_square_brackets = false

# Blocks are allowed
csharp_prefer_braces = true:silent
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = true

# IDE0060: Remove unused parameter
dotnet_diagnostic.IDE0060.severity = none

[src/{Analyzers,CodeStyle,Features,Workspaces,EditorFeatures,VisualStudio}/**/*.{cs,vb}]

# IDE0011: Add braces
csharp_prefer_braces = when_multiline:warning
# NOTE: We need the below severity entry for Add Braces due to https://github.com/dotnet/roslyn/issues/44201
dotnet_diagnostic.IDE0011.severity = warning

# IDE0040: Add accessibility modifiers
dotnet_diagnostic.IDE0040.severity = warning

# IDE0052: Remove unread private member
dotnet_diagnostic.IDE0052.severity = warning

# IDE0059: Unnecessary assignment to a value
dotnet_diagnostic.IDE0059.severity = warning

# CA1012: Abstract types should not have public constructors
dotnet_diagnostic.CA1012.severity = warning

# CA1822: Make member static
dotnet_diagnostic.CA1822.severity = warning

# Prefer "var" everywhere
dotnet_diagnostic.IDE0007.severity = warning
csharp_style_var_for_built_in_types = true:warning
csharp_style_var_when_type_is_apparent = true:warning
csharp_style_var_elsewhere = true:warning

# csharp_style_allow_embedded_statements_on_same_line_experimental
dotnet_diagnostic.IDE2001.severity = warning

# csharp_style_allow_blank_lines_between_consecutive_braces_experimental
dotnet_diagnostic.IDE2002.severity = warning

# csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental
dotnet_diagnostic.IDE2004.severity = warning

# csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental
dotnet_diagnostic.IDE2005.severity = warning

# csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental
dotnet_diagnostic.IDE2006.severity = warning

[src/{VisualStudio}/**/*.{cs,vb}]
# CA1822: Make member static
# There is a risk of accidentally breaking an internal API that partners rely on though IVT.
dotnet_code_quality.CA1822.api_surface = private
64 changes: 64 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text eol=lf

###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
*.sln text eol=crlf
#*.csproj text eol=crlf
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary

###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
*.jpg binary
*.png binary
*.gif binary
*.ico binary

###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain
4 changes: 0 additions & 4 deletions .github/ISSUE_TEMPLATE/feature-or-enhancement-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ A summary of the problem you want to solve or metric you want to improve
**Do you have any solution you want to propose?**
A clear and concise description of what you expect with this change.

**Neo Version**
- Neo 2
- Neo 3

**Where in the software does this update applies to?**
- Compiler
- Consensus
Expand Down
Loading
Loading