Skip to content

Commit 8b63da8

Browse files
committed
Cleaning up in preparation for release
1 parent 6a92909 commit 8b63da8

File tree

6 files changed

+79
-7
lines changed

6 files changed

+79
-7
lines changed

.editorconfig

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,72 @@ dotnet_style_qualification_for_field = false:suggestion
124124
dotnet_style_qualification_for_method = false:suggestion
125125
#prefer properties not to be prefaced with this. or Me. in Visual Basic
126126
dotnet_style_qualification_for_property = false:suggestion
127+
csharp_indent_labels = one_less_than_current
128+
csharp_using_directive_placement = outside_namespace:silent
129+
csharp_prefer_simple_using_statement = true:suggestion
130+
csharp_style_namespace_declarations = block_scoped:silent
131+
csharp_style_prefer_method_group_conversion = true:silent
132+
csharp_style_prefer_top_level_statements = true:silent
133+
csharp_style_prefer_primary_constructors = true:suggestion
134+
csharp_style_expression_bodied_operators = false:silent
135+
csharp_style_expression_bodied_lambdas = true:silent
136+
csharp_style_expression_bodied_local_functions = false:silent
127137

128138
[*.{cs,vb}]
129-
dotnet_style_predefined_type_for_locals_parameters_members=true:warning
139+
dotnet_style_predefined_type_for_locals_parameters_members=true:warning
140+
[*.{cs,vb}]
141+
#### Naming styles ####
142+
143+
# Naming rules
144+
145+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
146+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
147+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
148+
149+
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
150+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
151+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
152+
153+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
154+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
155+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
156+
157+
# Symbol specifications
158+
159+
dotnet_naming_symbols.interface.applicable_kinds = interface
160+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
161+
dotnet_naming_symbols.interface.required_modifiers =
162+
163+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
164+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
165+
dotnet_naming_symbols.types.required_modifiers =
166+
167+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
168+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
169+
dotnet_naming_symbols.non_field_members.required_modifiers =
170+
171+
# Naming styles
172+
173+
dotnet_naming_style.begins_with_i.required_prefix = I
174+
dotnet_naming_style.begins_with_i.required_suffix =
175+
dotnet_naming_style.begins_with_i.word_separator =
176+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
177+
178+
dotnet_naming_style.pascal_case.required_prefix =
179+
dotnet_naming_style.pascal_case.required_suffix =
180+
dotnet_naming_style.pascal_case.word_separator =
181+
dotnet_naming_style.pascal_case.capitalization = pascal_case
182+
183+
dotnet_naming_style.pascal_case.required_prefix =
184+
dotnet_naming_style.pascal_case.required_suffix =
185+
dotnet_naming_style.pascal_case.word_separator =
186+
dotnet_naming_style.pascal_case.capitalization = pascal_case
187+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
188+
tab_width = 4
189+
indent_size = 4
190+
end_of_line = crlf
191+
dotnet_style_coalesce_expression = true:suggestion
192+
dotnet_style_null_propagation = true:suggestion
193+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
194+
dotnet_style_prefer_auto_properties = true:silent
195+
dotnet_style_object_initializer = true:suggestion

docs/Changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 1.0.0 (fNbt)
2+
- Library now targets .NET Standard 2.0 instead of .NET Framework, which
3+
allows fNbt to be used in more types of projects (e.g. .NET 8 or UWP).
4+
- Support TAG_Long_Array.
5+
- Fix some edge-cases related to reading corrupted NBT files.
6+
- Switch from JetBrains' annotations to .NET's built-in annotations.
7+
18
## 0.6.4 (fNbt)
29
- Fixed a case where NbtBinaryReader.ReadString read too many bytes (#26).
310
- Fixed NbtList.Contains(null) throwing exception instead of returning false.

fNbt.Test/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
[assembly: AssemblyTitle("fNbt.Test")]
99
[assembly: AssemblyDescription("NUnit tests for fNbt library.")]
1010
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("github.com/fragmer/fNbt")]
11+
[assembly: AssemblyCompany("github.com/mstefarov/fNbt")]
1212
[assembly: AssemblyProduct("fNbt.Test")]
13-
[assembly: AssemblyCopyright("2012-2018 Matvei Stefarov")]
13+
[assembly: AssemblyCopyright("2012-2024 Matvei Stefarov")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

fNbt/NbtWriter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Diagnostics;
43
using System.IO;
54

65
namespace fNbt {

fNbt/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
// by using the '*' as shown below:
3737
// [assembly: AssemblyVersion("1.0.*")]
3838

39-
[assembly: AssemblyVersion("0.7.0.0")]
40-
[assembly: AssemblyFileVersion("0.7.0.0")]
39+
[assembly: AssemblyVersion("1.0.0.0")]
40+
[assembly: AssemblyFileVersion("1.0.0.0")]
4141

4242
// Potentially speed up resource probes
4343

fNbt/fNbt.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1212
<description>$description$</description>
1313
<releaseNotes>Bugfixes and performance improvements.</releaseNotes>
14-
<copyright>Copyright 2012-2018 Matvei Stefarov</copyright>
14+
<copyright>Copyright 2012-2024 Matvei Stefarov</copyright>
1515
<tags>nbt serialization</tags>
1616
</metadata>
1717
</package>

0 commit comments

Comments
 (0)