Skip to content

Commit 09b971b

Browse files
committed
🐛 Add realm variation to validation
1 parent 19f613e commit 09b971b

10 files changed

Lines changed: 308 additions & 87 deletions

.editorconfig

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
root = true
2+
3+
# Don't use tabs for indentation.
4+
[*]
5+
indent_style = space
6+
7+
# Code files
8+
[*.{cs, csx, vb, vbx}]
9+
indent_size = 4
10+
insert_final_newline = true
11+
charset = utf-8-bom
12+
13+
# Xml project files
14+
[*.{csproj, vbproj, vcxproj, vcxproj.filters, proj, projitems, shproj}]
15+
indent_size = 2
16+
17+
# Xml config files
18+
[*.{props, targets, ruleset, config, nuspec, resx, vsixmanifest, vsct}]
19+
indent_size = 2
20+
21+
# JSON files
22+
[*.json]
23+
indent_size = 2
24+
25+
# Dotnet code style settings:
26+
[*.{cs, vb}]
27+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:silent
28+
dotnet_style_prefer_simplified_boolean_expressions = true:silent
29+
dotnet_style_prefer_simplified_interpolation = true:silent
30+
dotnet_style_readonly_field = true:suggestion
31+
32+
# Sort using and Import directives with System.* appearing first
33+
dotnet_sort_system_directives_first = true
34+
dotnet_separate_import_directive_groups = false
35+
# Avoid "this." and "Me." if not necessary
36+
dotnet_style_qualification_for_field = false:suggestion
37+
dotnet_style_qualification_for_property = false:suggestion
38+
dotnet_style_qualification_for_method = false:suggestion
39+
dotnet_style_qualification_for_event = false:suggestion
40+
41+
# Auto-properties
42+
dotnet_style_prefer_auto_properties = true:silent
43+
dotnet_style_prefer_conditional_expression_over_return = true
44+
45+
# Tuples
46+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
47+
48+
# Use language keywords instead of framework type names for type references
49+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
50+
dotnet_style_predefined_type_for_member_access = true:suggestion
51+
52+
# Suggest more modern language features when available
53+
dotnet_style_object_initializer = true:suggestion
54+
dotnet_style_collection_initializer = true:suggestion
55+
dotnet_style_coalesce_expression = true:suggestion
56+
dotnet_style_null_propagation = true:suggestion
57+
dotnet_style_explicit_tuple_names = true:suggestion
58+
59+
# internal and private fields should be _camelCase
60+
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = warning
61+
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
62+
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
63+
64+
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
65+
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
66+
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
67+
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
68+
69+
# name all constant fields using UpperCase
70+
dotnet_naming_rule.constant_fields_should_be_upper_case.severity = warning
71+
dotnet_naming_rule.constant_fields_should_be_upper_case.symbols = constant_fields
72+
dotnet_naming_rule.constant_fields_should_be_upper_case.style = upper_case_style
73+
74+
dotnet_naming_symbols.constant_fields.applicable_kinds = field
75+
dotnet_naming_symbols.constant_fields.required_modifiers = const
76+
dotnet_naming_style.upper_case_style.capitalization = all_upper
77+
78+
# CSharp code style settings:
79+
[*.cs]
80+
# Prefer "var" everywhere
81+
csharp_style_var_for_built_in_types = true:suggestion
82+
csharp_style_var_when_type_is_apparent = true:suggestion
83+
csharp_style_var_elsewhere = true:suggestion
84+
85+
# Prefer method-like constructs to have a block body
86+
csharp_style_expression_bodied_methods = false:none
87+
csharp_style_expression_bodied_constructors = false:none
88+
csharp_style_expression_bodied_operators = false:none
89+
90+
# Prefer property-like constructs to have an expression-body
91+
csharp_style_expression_bodied_properties = true:none
92+
csharp_style_expression_bodied_indexers = true:none
93+
csharp_style_expression_bodied_accessors = true:none
94+
95+
# Suggest more modern language features when available
96+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
97+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
98+
csharp_style_inlined_variable_declaration = true:suggestion
99+
csharp_style_throw_expression = true:suggestion
100+
csharp_style_conditional_delegate_call = true:suggestion
101+
102+
# Order
103+
csharp_preferred_modifier_order = public, private, protected, internal, static, extern, new, virtual, abstract, sealed, override, readonly, unsafe, volatile, async:suggestion
104+
105+
# Newline settings
106+
csharp_new_line_before_open_brace = all
107+
csharp_new_line_before_else = true
108+
csharp_new_line_before_catch = true
109+
csharp_new_line_before_finally = true
110+
csharp_new_line_before_members_in_object_initializers = true
111+
csharp_new_line_before_members_in_anonymous_types = true
112+
113+
# Resharper
114+
resharper_csharp_keep_existing_attribute_arrangement = true
115+
resharper_csharp_braces_for_ifelse = required
116+
resharper_csharp_place_simple_anonymousmethod_on_single_line = true
117+
resharper_csharp_keep_existing_arrangement = true
118+
119+
# Nullable error
120+
dotnet_diagnostic.CS8601.severity = error
121+
dotnet_diagnostic.CS8604.severity = error
122+
dotnet_diagnostic.CS8618.severity = error

.vscode/launch.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
// Use IntelliSense to find out which attributes exist for C# debugging
6+
// Use hover for the description of the existing attributes
7+
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
8+
"name": ".NET Core Launch (console)",
9+
"type": "coreclr",
10+
"request": "launch",
11+
"preLaunchTask": "build",
12+
// If you have changed target frameworks, make sure to update the program path.
13+
"program": "${workspaceFolder}/test/unitario/bin/Debug/net6.0/RestSharp.Authenticators.Digest.Teste.Unitario.dll",
14+
"args": [],
15+
"cwd": "${workspaceFolder}/test/unitario",
16+
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
17+
"console": "internalConsole",
18+
"stopAtEntry": false
19+
},
20+
{
21+
"name": ".NET Core Attach",
22+
"type": "coreclr",
23+
"request": "attach"
24+
}
25+
]
26+
}

.vscode/tasks.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "process",
88
"args": [
99
"build",
10-
"${workspaceFolder}/RestSharp.Authenticators.Digest.sln",
10+
"${workspaceFolder}/test/unitario/DigestAuthenticator.UnitTests.csproj",
1111
"/property:GenerateFullPaths=true",
1212
"/consoleloggerparameters:NoSummary"
1313
],
@@ -19,7 +19,7 @@
1919
"type": "process",
2020
"args": [
2121
"publish",
22-
"${workspaceFolder}/src/DigestAuthenticator/DigestAuthenticator.csproj",
22+
"${workspaceFolder}/test/unitario/DigestAuthenticator.UnitTests.csproj",
2323
"/property:GenerateFullPaths=true",
2424
"/consoleloggerparameters:NoSummary"
2525
],
@@ -32,7 +32,7 @@
3232
"args": [
3333
"watch",
3434
"run",
35-
"${workspaceFolder}/src/DigestAuthenticator/DigestAuthenticator.csproj",
35+
"${workspaceFolder}/test/unitario/DigestAuthenticator.UnitTests.csproj",
3636
"/property:GenerateFullPaths=true",
3737
"/consoleloggerparameters:NoSummary"
3838
],

RestSharp.Authenticators.Digest.sln

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26124.0
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 15.0.26124.0
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{EB4DC82C-C9F5-4745-82A9-D1287A1BBC3F}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "unitario", "test\unitario\unitario.csproj", "{799EBFA9-E60C-409F-AB8D-2CC83C14B350}"
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DigestAuthenticator.Tests", "test\unitario\DigestAuthenticator.Tests.csproj", "{799EBFA9-E60C-409F-AB8D-2CC83C14B350}"
99
EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{1D1F223D-4333-4699-BB10-8E1111DD0D75}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DigestAuthenticator", "src\DigestAuthenticator\DigestAuthenticator.csproj", "{CBC300D5-B57C-4588-BE2D-26AFF9D102F9}"
12+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DigestAuthenticator", "src\DigestAuthenticator\DigestAuthenticator.csproj", "{CBC300D5-B57C-4588-BE2D-26AFF9D102F9}"
13+
EndProject
14+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{CD55D531-82A6-4A0E-8D19-5D76D6299526}"
15+
ProjectSection(SolutionItems) = preProject
16+
.editorconfig = .editorconfig
17+
.gitignore = .gitignore
18+
LICENSE = LICENSE
19+
README.md = README.md
20+
EndProjectSection
1321
EndProject
1422
Global
1523
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -20,9 +28,6 @@ Global
2028
Release|x64 = Release|x64
2129
Release|x86 = Release|x86
2230
EndGlobalSection
23-
GlobalSection(SolutionProperties) = preSolution
24-
HideSolutionNode = FALSE
25-
EndGlobalSection
2631
GlobalSection(ProjectConfigurationPlatforms) = postSolution
2732
{799EBFA9-E60C-409F-AB8D-2CC83C14B350}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2833
{799EBFA9-E60C-409F-AB8D-2CC83C14B350}.Debug|Any CPU.Build.0 = Debug|Any CPU
@@ -49,8 +54,14 @@ Global
4954
{CBC300D5-B57C-4588-BE2D-26AFF9D102F9}.Release|x86.ActiveCfg = Release|Any CPU
5055
{CBC300D5-B57C-4588-BE2D-26AFF9D102F9}.Release|x86.Build.0 = Release|Any CPU
5156
EndGlobalSection
57+
GlobalSection(SolutionProperties) = preSolution
58+
HideSolutionNode = FALSE
59+
EndGlobalSection
5260
GlobalSection(NestedProjects) = preSolution
5361
{799EBFA9-E60C-409F-AB8D-2CC83C14B350} = {EB4DC82C-C9F5-4745-82A9-D1287A1BBC3F}
5462
{CBC300D5-B57C-4588-BE2D-26AFF9D102F9} = {1D1F223D-4333-4699-BB10-8E1111DD0D75}
5563
EndGlobalSection
64+
GlobalSection(ExtensibilityGlobals) = postSolution
65+
SolutionGuid = {CFB144EC-8162-4D4F-A173-0E97D11BD3D8}
66+
EndGlobalSection
5667
EndGlobal
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=MD/@EntryIndexedValue">MD</s:String></wpf:ResourceDictionary>

src/DigestAuthenticator/DigestAuthenticator.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
1+
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<AssemblyName>RestSharp.Authenticators.Digest</AssemblyName>
@@ -29,6 +29,6 @@
2929
<PackageLicenseUrl>https://github.com/Alterdata/RestSharp.Authenticators.Digest/blob/master/LICENSE</PackageLicenseUrl>
3030
</PropertyGroup>
3131
<ItemGroup>
32-
<PackageReference Include="RestSharp" Version="106.6.10"/>
32+
<PackageReference Include="RestSharp" Version="106.13.0" />
3333
</ItemGroup>
3434
</Project>

0 commit comments

Comments
 (0)