Skip to content
This repository was archived by the owner on May 22, 2024. It is now read-only.

Commit 595e4ec

Browse files
committed
Change default branch to main
https://github.com/github/renaming
1 parent 679f8f1 commit 595e4ec

File tree

4 files changed

+81
-33
lines changed

4 files changed

+81
-33
lines changed

.editorconfig

Lines changed: 63 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# https://github.com/dotnet/coreclr/blob/master/.editorconfig
1+
# Source: https://github.com/dotnet/coreclr/blob/master/.editorconfig
2+
3+
# editorconfig.org
24

35
# top-most EditorConfig file
46
root = true
@@ -11,6 +13,9 @@ insert_final_newline = true
1113
indent_style = space
1214
indent_size = 4
1315

16+
[project.json]
17+
indent_size = 2
18+
1419
# C# files
1520
[*.cs]
1621
# New line preferences
@@ -26,75 +31,89 @@ csharp_new_line_between_query_expression_clauses = true
2631
csharp_indent_block_contents = true
2732
csharp_indent_braces = false
2833
csharp_indent_case_contents = true
34+
csharp_indent_case_contents_when_block = true
2935
csharp_indent_switch_labels = true
3036
csharp_indent_labels = one_less_than_current
3137

38+
# Modifier preferences
39+
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
40+
3241
# avoid this. unless absolutely necessary
3342
dotnet_style_qualification_for_field = false:suggestion
3443
dotnet_style_qualification_for_property = false:suggestion
3544
dotnet_style_qualification_for_method = false:suggestion
3645
dotnet_style_qualification_for_event = false:suggestion
3746

38-
# only use var when it's obvious what the variable type is
39-
csharp_style_var_for_built_in_types = false:none
47+
# Types: use keywords instead of BCL types, and permit var only when the type is clear
48+
csharp_style_var_for_built_in_types = false:suggestion
4049
csharp_style_var_when_type_is_apparent = false:none
4150
csharp_style_var_elsewhere = false:suggestion
42-
43-
# use language keywords instead of BCL types
4451
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
4552
dotnet_style_predefined_type_for_member_access = true:suggestion
4653

4754
# name all constant fields using PascalCase
4855
dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
4956
dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
5057
dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
51-
5258
dotnet_naming_symbols.constant_fields.applicable_kinds = field
5359
dotnet_naming_symbols.constant_fields.required_modifiers = const
54-
5560
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
5661

5762
# static fields should have s_ prefix
5863
dotnet_naming_rule.static_fields_should_have_prefix.severity = suggestion
5964
dotnet_naming_rule.static_fields_should_have_prefix.symbols = static_fields
6065
dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style
61-
6266
dotnet_naming_symbols.static_fields.applicable_kinds = field
6367
dotnet_naming_symbols.static_fields.required_modifiers = static
64-
6568
dotnet_naming_style.static_prefix_style.required_prefix = s_
6669
dotnet_naming_style.static_prefix_style.capitalization = camel_case
6770

6871
# internal and private fields should be _camelCase
6972
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
7073
dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields
7174
dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style
72-
7375
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
7476
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
75-
7677
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
7778
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
7879

7980
# Code style defaults
80-
dotnet_sort_system_directives_first = true
81-
csharp_preserve_single_line_blocks = true
82-
csharp_preserve_single_line_statements = false
81+
csharp_using_directive_placement = outside_namespace:suggestion
82+
dotnet_sort_system_directives_first = true:suggestion
83+
csharp_prefer_braces = true:refactoring
84+
csharp_preserve_single_line_blocks = true:none
85+
csharp_preserve_single_line_statements = false:none
86+
csharp_prefer_static_local_function = true:suggestion
87+
csharp_prefer_simple_using_statement = false:none
88+
csharp_style_prefer_switch_expression = true:suggestion
89+
90+
# Code quality
91+
dotnet_style_readonly_field = true:suggestion
92+
dotnet_code_quality_unused_parameters = non_public:suggestion
8393

8494
# Expression-level preferences
8595
dotnet_style_object_initializer = true:suggestion
8696
dotnet_style_collection_initializer = true:suggestion
8797
dotnet_style_explicit_tuple_names = true:suggestion
8898
dotnet_style_coalesce_expression = true:suggestion
8999
dotnet_style_null_propagation = true:suggestion
100+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
101+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
102+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
103+
dotnet_style_prefer_auto_properties = true:suggestion
104+
dotnet_style_prefer_conditional_expression_over_assignment = true:refactoring
105+
dotnet_style_prefer_conditional_expression_over_return = true:refactoring
106+
csharp_prefer_simple_default_expression = true:suggestion
90107

91108
# Expression-bodied members
92-
csharp_style_expression_bodied_methods = false:none
93-
csharp_style_expression_bodied_constructors = false:none
94-
csharp_style_expression_bodied_operators = false:none
95-
csharp_style_expression_bodied_properties = true:none
96-
csharp_style_expression_bodied_indexers = true:none
97-
csharp_style_expression_bodied_accessors = true:none
109+
csharp_style_expression_bodied_methods = true:refactoring
110+
csharp_style_expression_bodied_constructors = true:refactoring
111+
csharp_style_expression_bodied_operators = true:refactoring
112+
csharp_style_expression_bodied_properties = true:refactoring
113+
csharp_style_expression_bodied_indexers = true:refactoring
114+
csharp_style_expression_bodied_accessors = true:refactoring
115+
csharp_style_expression_bodied_lambdas = true:refactoring
116+
csharp_style_expression_bodied_local_functions = true:refactoring
98117

99118
# Pattern matching
100119
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
@@ -105,6 +124,11 @@ csharp_style_inlined_variable_declaration = true:suggestion
105124
csharp_style_throw_expression = true:suggestion
106125
csharp_style_conditional_delegate_call = true:suggestion
107126

127+
# Other features
128+
csharp_style_prefer_index_operator = false:none
129+
csharp_style_prefer_range_operator = false:none
130+
csharp_style_pattern_local_over_anonymous_function = false:none
131+
108132
# Space preferences
109133
csharp_space_after_cast = false
110134
csharp_space_after_colon_in_inheritance_clause = true
@@ -129,19 +153,32 @@ csharp_space_between_method_declaration_parameter_list_parentheses = false
129153
csharp_space_between_parentheses = false
130154
csharp_space_between_square_brackets = false
131155

132-
[*.{asm,inc}]
133-
indent_size = 8
156+
# Analyzers
157+
dotnet_code_quality.ca1802.api_surface = private, internal
158+
159+
# C++ Files
160+
[*.{cpp,h,in}]
161+
curly_bracket_next_line = true
162+
indent_brace_style = Allman
134163

135164
# Xml project files
136165
[*.{csproj,vcxproj,vcxproj.filters,proj,nativeproj,locproj}]
137166
indent_size = 2
138167

139-
# Xml config files
140-
[*.{props,targets,config,nuspec}]
168+
# Xml build files
169+
[*.builds]
141170
indent_size = 2
142171

143-
[CMakeLists.txt]
172+
# Xml files
173+
[*.{xml,stylecop,resx,ruleset}]
144174
indent_size = 2
145175

146-
[*.cmd]
176+
# Xml config files
177+
[*.{props,targets,config,nuspec}]
147178
indent_size = 2
179+
180+
# Shell scripts
181+
[*.sh]
182+
end_of_line = lf
183+
[*.{cmd, bat}]
184+
end_of_line = crlf

.gitignore

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
## Ignore Visual Studio temporary files, build results, and
1+
# Source: https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
2+
3+
## Ignore Visual Studio temporary files, build results, and
24
## files generated by popular Visual Studio add-ons.
35
##
46
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
@@ -23,6 +25,7 @@ mono_crash.*
2325
[Rr]eleases/
2426
x64/
2527
x86/
28+
[Ww][Ii][Nn]32/
2629
[Aa][Rr][Mm]/
2730
[Aa][Rr][Mm]64/
2831
bld/
@@ -61,6 +64,9 @@ project.lock.json
6164
project.fragment.lock.json
6265
artifacts/
6366

67+
# ASP.NET Scaffolding
68+
ScaffoldingReadMe.txt
69+
6470
# StyleCop
6571
StyleCopReport.xml
6672

@@ -127,9 +133,6 @@ _ReSharper*/
127133
*.[Rr]e[Ss]harper
128134
*.DotSettings.user
129135

130-
# JustCode is a .NET coding add-in
131-
.JustCode
132-
133136
# TeamCity is a build add-in
134137
_TeamCity*
135138

@@ -140,6 +143,11 @@ _TeamCity*
140143
.axoCover/*
141144
!.axoCover/settings.json
142145

146+
# Coverlet is a free, cross platform Code Coverage Tool
147+
coverage*.json
148+
coverage*.xml
149+
coverage*.info
150+
143151
# Visual Studio code coverage results
144152
*.coverage
145153
*.coveragexml
@@ -352,5 +360,8 @@ MigrationBackup/
352360
# Ionide (cross platform F# VS Code tools) working folder
353361
.ionide/
354362

363+
# Fody - auto-generated XML schema
364+
FodyWeavers.xsd
365+
355366
# Specflow feature.cs files
356367
*.feature.cs

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# SpecFlow.DependencyInjection
22

3-
[![GitHub License](https://img.shields.io/github/license/solidtoken/SpecFlow.DependencyInjection.svg)](https://github.com/solidtoken/SpecFlow.DependencyInjection/blob/master/LICENSE)
3+
[![GitHub License](https://img.shields.io/github/license/solidtoken/SpecFlow.DependencyInjection.svg)](https://github.com/solidtoken/SpecFlow.DependencyInjection/blob/main/LICENSE)
44
[![GitHub Issues](https://img.shields.io/github/issues/solidtoken/SpecFlow.DependencyInjection.svg)](https://github.com/solidtoken/SpecFlow.DependencyInjection/issues)
5-
[![Azure Build](https://img.shields.io/azure-devops/build/solidtoken/GitHub/8.svg)](https://solidtoken.visualstudio.com/GitHub/_build/latest?definitionId=8&branchName=master)
5+
[![Azure Build](https://img.shields.io/azure-devops/build/solidtoken/GitHub/8.svg)](https://solidtoken.visualstudio.com/GitHub/_build/latest?definitionId=8&branchName=main)
66
[![NuGet Package](https://img.shields.io/nuget/v/SolidToken.SpecFlow.DependencyInjection.svg)](https://www.nuget.org/packages/SolidToken.SpecFlow.DependencyInjection)
77

88
SpecFlow plugin that enables to use Microsoft.Extensions.DependencyInjection for resolving test dependencies.

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ variables:
44
BuildConfiguration: Release
55

66
trigger:
7-
- master
7+
- main
88

99
pool:
1010
vmImage: 'windows-latest'

0 commit comments

Comments
 (0)