Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
68 changes: 68 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Rules in this file were initially inferred by Visual Studio IntelliCode from the C:\Projects\randd\randd_address_separator\dotnet\Sansan.RD.AddressSeparator.Tests\ codebase based on best match to current usage at 2022/08/18
# You can modify the rules from these initially generated values to suit your own policies
# You can learn more about editorconfig here: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
[*.cs]


# IDE0160: Convert to file-scoped namespace
csharp_style_namespace_declarations = file_scoped:warning

#Core editorconfig formatting - indentation

#use soft tabs (spaces) for indentation
indent_style = space
indent_size = 4

#Formatting - new line options

#require braces to be on a new line for methods and types (also known as "Allman" style)
csharp_new_line_before_open_brace = all#methods, types

#Formatting - organize using options

#sort System.* using directives alphabetically, and place them before other usings
dotnet_sort_system_directives_first = true

#Formatting - spacing options

#remove space between method call name and opening parenthesis
csharp_space_between_method_call_name_and_opening_parenthesis = false
#do not place space characters after the opening parenthesis and before the closing parenthesis of a method call
csharp_space_between_method_call_parameter_list_parentheses = false
#place a space character after the opening parenthesis and before the closing parenthesis of a method declaration parameter list.
csharp_space_between_method_declaration_parameter_list_parentheses = false

#Style - expression bodied member options

#prefer block bodies for methods
csharp_style_expression_bodied_methods = when_on_single_line:suggestion

#Style - implicit and explicit types

#prefer var over explicit type in all cases, unless overridden by another code style rule
csharp_style_var_elsewhere = true:suggestion
#prefer var is used to declare variables with built-in system types such as int
csharp_style_var_for_built_in_types = true:suggestion

#Style - language keyword and framework type options

#prefer the language keyword for local variables, method parameters, and class members, instead of the type name, for types that have a keyword to represent them
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion

#Style - modifier options

#prefer accessibility modifiers to be declared except for public interface members. This will currently not differ from always and will act as future proofing for if C# adds default interface methods.
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion

#Style - Modifier preferences

#when this rule is set to a list of modifiers, prefer the specified ordering.
csharp_preferred_modifier_order = public,internal:suggestion

[*.{cs,vb}]
dotnet_style_allow_statement_immediately_after_block_experimental=false:silent

[*]
insert_final_newline = true

dotnet_code_quality.CA1826.exclude_ordefault_methods = true
13 changes: 6 additions & 7 deletions LibSVMSharp.Tests/Contants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
using System.Text;
using System.Threading.Tasks;

namespace LibSVMSharp.Tests
namespace LibSVMSharp.Tests;

public static class Contants
{
public static class Contants
{
public const string WRONG_MODEL_PATH_TO_BE_LOADED = @"Models/model_does_not_exist.txt";
public const string CORRECT_MODEL_PATH_TO_BE_LOADED = @"Models/correct_model.txt";
public const string CORRECT_MODEL_PATH_TO_BE_SAVED = @"Models/correct_model.txt";
}
public const string WRONG_MODEL_PATH_TO_BE_LOADED = @"Models/model_does_not_exist.txt";
public const string CORRECT_MODEL_PATH_TO_BE_LOADED = @"Models/correct_model.txt";
public const string CORRECT_MODEL_PATH_TO_BE_SAVED = @"Models/correct_model.txt";
}
13 changes: 6 additions & 7 deletions LibSVMSharp.Tests/Extensions/TestSVMProblemExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace LibSVMSharp.Tests.Extensions
namespace LibSVMSharp.Tests.Extensions;

[TestClass]
public class TestSVMProblemExtensions
{
[TestClass]
public class TestSVMProblemExtensions
[TestMethod]
public void TestMethod1()
{
[TestMethod]
public void TestMethod1()
{
}
}
}
13 changes: 6 additions & 7 deletions LibSVMSharp.Tests/Helpers/TestSVMHelper.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace LibSVMSharp.Tests.Helpers
namespace LibSVMSharp.Tests.Helpers;

[TestClass]
public class TestSVMHelper
{
[TestClass]
public class TestSVMHelper
[TestMethod]
public void TestMethod1()
{
[TestMethod]
public void TestMethod1()
{
}
}
}
13 changes: 6 additions & 7 deletions LibSVMSharp.Tests/Helpers/TestSVMNodeHelper.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace LibSVMSharp.Tests.Helpers
namespace LibSVMSharp.Tests.Helpers;

[TestClass]
public class TestSVMNodeHelper
{
[TestClass]
public class TestSVMNodeHelper
[TestMethod]
public void TestMethod1()
{
[TestMethod]
public void TestMethod1()
{
}
}
}
13 changes: 6 additions & 7 deletions LibSVMSharp.Tests/Helpers/TestSVMProblemHelper.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace LibSVMSharp.Tests.Helpers
namespace LibSVMSharp.Tests.Helpers;

[TestClass]
public class TestSVMProblemHelper
{
[TestClass]
public class TestSVMProblemHelper
[TestMethod]
public void TestMethod1()
{
[TestMethod]
public void TestMethod1()
{
}
}
}
Loading