-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve
projectAssembliesOnly
option. Remove the `CopyLocalLockFile…
…Assemblies` parameter
- Loading branch information
1 parent
87bc9e9
commit ab9d7ea
Showing
11 changed files
with
176 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
# This file is the top-most EditorConfig file | ||
root = true | ||
|
||
# All Files | ||
[*] | ||
indent_size = 4 | ||
indent_style = space | ||
tab_width = 4 | ||
insert_final_newline = false | ||
trim_trailing_whitespace = true | ||
|
||
[*.cs] | ||
# Code analyzers | ||
dotnet_analyzer_diagnostic.category-Style.severity = silent | ||
dotnet_analyzer_diagnostic.category-Design.severity = suggestion | ||
dotnet_analyzer_diagnostic.category-Interoperability.severity = suggestion | ||
dotnet_analyzer_diagnostic.category-Performance.severity = warning | ||
dotnet_analyzer_diagnostic.category-Reliability.severity = suggestion | ||
dotnet_analyzer_diagnostic.category-Security.severity = warning | ||
dotnet_analyzer_diagnostic.category-Usage.severity = suggestion | ||
|
||
# CA1001: Types that own disposable fields should be disposable | ||
dotnet_diagnostic.CA1001.severity = none | ||
# IDE0290: Use primary constructor | ||
dotnet_diagnostic.IDE0290.severity = none | ||
# IDE0078: Use pattern matching | ||
dotnet_diagnostic.IDE0078.severity = none | ||
# IDE0066: Use 'switch' expression | ||
dotnet_diagnostic.IDE0066.severity = none | ||
# IDE0028: Simplify collection initialization | ||
dotnet_diagnostic.IDE0028.severity = none | ||
# IDE0058: Expression value is never used | ||
dotnet_diagnostic.IDE0058.severity = none | ||
|
||
# Organize usings | ||
dotnet_separate_import_directive_groups = false | ||
dotnet_sort_system_directives_first = true | ||
|
||
# Namespace preferences | ||
csharp_style_namespace_declarations = file_scoped:suggestion | ||
|
||
# var preferences | ||
csharp_style_var_elsewhere = false:none | ||
csharp_style_var_for_built_in_types = false:none | ||
csharp_style_var_when_type_is_apparent = false:none | ||
|
||
# new preferences | ||
csharp_style_implicit_object_creation_when_type_is_apparent = false:none | ||
|
||
# Modifier preferences | ||
csharp_prefer_static_local_function = true:suggestion | ||
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion | ||
|
||
# Code-block preferences | ||
csharp_prefer_simple_method = true:none | ||
csharp_prefer_braces = false:silent | ||
csharp_prefer_simple_using_statement = true:suggestion | ||
|
||
# 'using' directive preferences | ||
csharp_using_directive_placement = outside_namespace:warning | ||
|
||
# New line preferences | ||
csharp_new_line_before_catch = false | ||
csharp_new_line_before_else = false | ||
csharp_new_line_before_finally = false | ||
csharp_new_line_before_members_in_anonymous_types = false | ||
csharp_new_line_before_members_in_object_initializers = false | ||
csharp_new_line_before_open_brace = none | ||
csharp_new_line_between_query_expression_clauses = true | ||
|
||
# Naming rules | ||
|
||
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion | ||
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface | ||
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i | ||
|
||
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion | ||
dotnet_naming_rule.types_should_be_pascal_case.symbols = types | ||
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case | ||
|
||
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion | ||
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members | ||
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case | ||
|
||
# Symbol specifications | ||
|
||
dotnet_naming_symbols.interface.applicable_kinds = interface | ||
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected | ||
dotnet_naming_symbols.interface.required_modifiers = | ||
|
||
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum | ||
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected | ||
dotnet_naming_symbols.types.required_modifiers = | ||
|
||
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method | ||
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected | ||
dotnet_naming_symbols.non_field_members.required_modifiers = | ||
|
||
# Naming styles | ||
|
||
dotnet_naming_style.pascal_case.required_prefix = | ||
dotnet_naming_style.pascal_case.required_suffix = | ||
dotnet_naming_style.pascal_case.word_separator = | ||
dotnet_naming_style.pascal_case.capitalization = pascal_case | ||
|
||
dotnet_naming_style.begins_with_i.required_prefix = I | ||
dotnet_naming_style.begins_with_i.required_suffix = | ||
dotnet_naming_style.begins_with_i.word_separator = | ||
dotnet_naming_style.begins_with_i.capitalization = pascal_case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,13 @@ | ||
using System; | ||
using Mono.Debugging.Client; | ||
using NLog; | ||
|
||
namespace DotNet.Meteor.Debug; | ||
namespace DotNet.Meteor.Debug.Logging; | ||
|
||
public class MonoLogger : ICustomLogger { | ||
private readonly Logger logger = LogManager.GetCurrentClassLogger(); | ||
|
||
public string GetNewDebuggerLogFilename() => nameof(MonoLogger); | ||
public void LogMessage(string format, params object[] args) => logger.Debug(format, args); | ||
public void LogAndShowException(string message, Exception ex) => LogError(message, ex); | ||
public void LogError(string message, Exception ex) { | ||
if (ex == null) { | ||
logger.Error(message); | ||
return; | ||
} | ||
logger.Error(ex, message + Environment.NewLine + ex.StackTrace); | ||
var innerException = ex.InnerException; | ||
|
||
while (innerException != null) { | ||
logger.Error(innerException); | ||
innerException = innerException.InnerException; | ||
} | ||
} | ||
public void LogError(string message, Exception ex) => logger.Error($"{message}: {ex}"); | ||
} |
Oops, something went wrong.