Skip to content

Commit c939d1e

Browse files
committed
format whitespace
1 parent 20d2360 commit c939d1e

20 files changed

+74
-114
lines changed

.editorconfig

Lines changed: 35 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,52 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
13
root = true
24

5+
# All Files
36
[*]
4-
trim_trailing_whitespace = true
5-
insert_final_newline = true
7+
charset = utf-8
68
indent_style = space
79
indent_size = 4
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
812

9-
[*.{csproj,json,config,yml}]
13+
# XML Configuration Files
14+
[*.{xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct}]
1015
indent_size = 2
1116

12-
[*.sh]
13-
end_of_line = lf
14-
15-
[*.{cmd, bat}]
16-
end_of_line = crlf
17+
# JSON Files
18+
[*.{json,json5,webmanifest}]
19+
indent_size = 2
1720

18-
[*.cs]
21+
# Project Files
22+
[*.{csproj,sqlproj}]
23+
indent_size = 2
1924

20-
#Core editorconfig formatting - indentation
25+
# YAML Files
26+
[*.{yml,yaml}]
27+
indent_size = 2
2128

22-
#use soft tabs (spaces) for indentation
23-
indent_style = space
29+
# Markdown Files
30+
[*.md]
31+
trim_trailing_whitespace = false
2432

25-
#Formatting - new line options
33+
# Web Files
34+
[*.{htm,html,js,jsm,ts,tsx,css,sass,scss,less,pcss,svg,vue}]
35+
indent_size = 2
2636

27-
#place catch statements on a new line
28-
csharp_new_line_before_catch = true
29-
#place else statements on a new line
30-
csharp_new_line_before_else = true
31-
#require finally statements to be on a new line after the closing brace
32-
csharp_new_line_before_finally = true
33-
#require braces to be on a new line for methods, control_blocks, types, object_collection, and properties (also known as "Allman" style)
34-
csharp_new_line_before_open_brace = methods, control_blocks, types, object_collection, properties
37+
# Batch Files
38+
[*.{cmd,bat}]
39+
end_of_line = crlf
3540

36-
#Formatting - organize using options
41+
# Bash Files
42+
[*.sh]
43+
end_of_line = lf
3744

38-
#sort System.* using directives alphabetically, and place them before other usings
45+
[*.{cs,vb}]
3946
dotnet_sort_system_directives_first = true
47+
dotnet_separate_import_directive_groups = true
48+
dotnet_style_namespace_match_folder = true
4049

41-
#Formatting - spacing options
42-
43-
#require NO space between a cast and the value
44-
csharp_space_after_cast = false
45-
#require a space before the colon for bases or interfaces in a type declaration
46-
csharp_space_after_colon_in_inheritance_clause = true
47-
#require a space after a keyword in a control flow statement such as a for loop
48-
csharp_space_after_keywords_in_control_flow_statements = true
49-
#require a space before the colon for bases or interfaces in a type declaration
50-
csharp_space_before_colon_in_inheritance_clause = true
51-
#remove space within empty argument list parentheses
52-
csharp_space_between_method_call_empty_parameter_list_parentheses = false
53-
#remove space between method call name and opening parenthesis
54-
csharp_space_between_method_call_name_and_opening_parenthesis = false
55-
#do not place space characters after the opening parenthesis and before the closing parenthesis of a method call
56-
csharp_space_between_method_call_parameter_list_parentheses = false
57-
#remove space within empty parameter list parentheses for a method declaration
58-
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
59-
#place a space character after the opening parenthesis and before the closing parenthesis of a method declaration parameter list.
60-
csharp_space_between_method_declaration_parameter_list_parentheses = false
61-
62-
#Formatting - wrapping options
63-
64-
#leave code block on single line
65-
csharp_preserve_single_line_blocks = true
66-
#leave statements and member declarations on the same line
67-
csharp_preserve_single_line_statements = true
68-
69-
#Style - expression bodied member options
70-
71-
#prefer expression-bodied members for accessors
72-
csharp_style_expression_bodied_accessors = true:suggestion
73-
#prefer block bodies for methods
74-
csharp_style_expression_bodied_methods = false:suggestion
75-
#prefer expression-bodied members for properties
76-
csharp_style_expression_bodied_properties = true:suggestion
77-
78-
#Style - expression level options
79-
80-
#prefer out variables to be declared inline in the argument list of a method call when possible
81-
csharp_style_inlined_variable_declaration = true:suggestion
82-
#prefer the language keyword for member access expressions, instead of the type name, for types that have a keyword to represent them
83-
dotnet_style_predefined_type_for_member_access = true:suggestion
84-
85-
#Style - implicit and explicit types
86-
87-
#prefer var is used to declare variables with built-in system types such as int
88-
csharp_style_var_for_built_in_types = true:suggestion
89-
#prefer var when the type is already mentioned on the right-hand side of a declaration expression
90-
csharp_style_var_when_type_is_apparent = true:suggestion
91-
92-
#Style - language keyword and framework type options
93-
94-
#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
95-
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
96-
97-
#Style - qualification options
98-
99-
#prefer fields not to be prefaced with this. or Me. in Visual Basic
100-
dotnet_style_qualification_for_field = false:suggestion
101-
#prefer methods not to be prefaced with this. or Me. in Visual Basic
102-
dotnet_style_qualification_for_method = false:suggestion
103-
#prefer properties not to be prefaced with this. or Me. in Visual Basic
104-
dotnet_style_qualification_for_property = false:suggestion
50+
[*.cs]
51+
csharp_using_directive_placement = outside_namespace
52+
csharp_style_namespace_declarations = file_scoped:warning

src/Serilog.Sinks.AzureTableStorage/AzureTableStorageExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Linq;
1+
using System.Linq;
2+
23
using Azure;
34
using Azure.Data.Tables;
45
using Azure.Data.Tables.Models;

src/Serilog.Sinks.AzureTableStorage/LoggerConfigurationAzureTableStorageExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2014 Serilog Contributors
1+
// Copyright 2014 Serilog Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

src/Serilog.Sinks.AzureTableStorage/LoggerConfigurationAzureTableStorageWithPropertiesExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2014 Serilog Contributors
1+
// Copyright 2014 Serilog Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

src/Serilog.Sinks.AzureTableStorage/ObjectNaming.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Text.RegularExpressions;
1+
using System.Text.RegularExpressions;
22

33
namespace Serilog.Sinks.AzureTableStorage
44
{

src/Serilog.Sinks.AzureTableStorage/Sinks/AzureTableProvider/DefaultCloudTableProvider.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2014 Serilog Contributors
1+
// Copyright 2014 Serilog Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
using System;
16+
1617
using Azure.Data.Tables;
1718

1819
namespace Serilog.Sinks.AzureTableStorage.AzureTableProvider

src/Serilog.Sinks.AzureTableStorage/Sinks/AzureTableProvider/ICloudTableProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2014 Serilog Contributors
1+
// Copyright 2014 Serilog Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

src/Serilog.Sinks.AzureTableStorage/Sinks/AzureTableStorage/AzureBatchingTableStorageSink.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2014 Serilog Contributors
1+
// Copyright 2014 Serilog Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

src/Serilog.Sinks.AzureTableStorage/Sinks/AzureTableStorage/AzureTableStorageSink.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2014 Serilog Contributors
1+
// Copyright 2014 Serilog Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -14,7 +14,9 @@
1414

1515
using System;
1616
using System.Threading;
17+
1718
using Azure.Data.Tables;
19+
1820
using Serilog.Core;
1921
using Serilog.Events;
2022
using Serilog.Formatting;

src/Serilog.Sinks.AzureTableStorage/Sinks/AzureTableStorage/LogEventEntity.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2014 Serilog Contributors
1+
// Copyright 2014 Serilog Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -14,8 +14,10 @@
1414

1515
using System;
1616
using System.IO;
17+
1718
using Azure;
1819
using Azure.Data.Tables;
20+
1921
using Serilog.Events;
2022
using Serilog.Formatting;
2123

0 commit comments

Comments
 (0)