Browse Source

Merge pull request #3544 from petercrabtree/dev/dev-env-clean

Minor Dev Environment Fixes (.editorconfig cleanup, typo fix, .gitignore tweak)
pull/3546/head
Siegfried Pammer 4 months ago committed by GitHub
parent
commit
9a1ebfe3f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 14
      .editorconfig
  2. 2
      .gitignore
  3. 4
      ICSharpCode.ILSpyCmd/IlspyCmdProgram.cs
  4. 2
      ICSharpCode.ILSpyX/MermaidDiagrammer/GenerateHtmlDiagrammer.cs
  5. 2
      ICSharpCode.ILSpyX/MermaidDiagrammer/Generator.Run.cs

14
.editorconfig

@ -106,7 +106,7 @@ csharp_space_after_dot = false
csharp_space_after_keywords_in_control_flow_statements = true csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_after_semicolon_in_for_statement = true csharp_space_after_semicolon_in_for_statement = true
csharp_space_around_binary_operators = before_and_after csharp_space_around_binary_operators = before_and_after
csharp_space_around_declaration_statements = do_not_ignore csharp_space_around_declaration_statements = false
csharp_space_before_colon_in_inheritance_clause = true csharp_space_before_colon_in_inheritance_clause = true
csharp_space_before_comma = false csharp_space_before_comma = false
csharp_space_before_dot = false csharp_space_before_dot = false
@ -179,16 +179,11 @@ csharp_style_prefer_not_pattern = true:suggestion
csharp_style_prefer_extended_property_pattern = true:suggestion csharp_style_prefer_extended_property_pattern = true:suggestion
dotnet_style_operator_placement_when_wrapping = beginning_of_line dotnet_style_operator_placement_when_wrapping = beginning_of_line
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_auto_properties = true:silent dotnet_style_prefer_auto_properties = true:silent
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
dotnet_style_prefer_conditional_expression_over_assignment = true:silent dotnet_style_prefer_conditional_expression_over_assignment = true:silent
dotnet_style_prefer_conditional_expression_over_return = true:silent dotnet_style_prefer_conditional_expression_over_return = true:silent
dotnet_style_explicit_tuple_names = true:suggestion
dotnet_style_prefer_inferred_tuple_names = true:suggestion dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_compound_assignment = true:suggestion dotnet_style_prefer_compound_assignment = true:suggestion
@ -196,8 +191,6 @@ dotnet_style_prefer_simplified_interpolation = true:suggestion
dotnet_style_prefer_collection_expression = when_types_loosely_match:suggestion dotnet_style_prefer_collection_expression = when_types_loosely_match:suggestion
dotnet_style_namespace_match_folder = true:suggestion dotnet_style_namespace_match_folder = true:suggestion
dotnet_style_readonly_field = true:suggestion dotnet_style_readonly_field = true:suggestion
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
dotnet_style_predefined_type_for_member_access = true:silent
dotnet_style_require_accessibility_modifiers = omit_if_default:suggestion dotnet_style_require_accessibility_modifiers = omit_if_default:suggestion
dotnet_style_allow_multiple_blank_lines_experimental = false:warning dotnet_style_allow_multiple_blank_lines_experimental = false:warning
dotnet_style_allow_statement_immediately_after_block_experimental = true:silent dotnet_style_allow_statement_immediately_after_block_experimental = true:silent
@ -206,10 +199,7 @@ dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:sil
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
dotnet_style_qualification_for_field = false:silent
dotnet_style_qualification_for_property = false:silent
dotnet_style_qualification_for_method = false:silent
dotnet_style_qualification_for_event = false:silent
# Errors and warnings # Errors and warnings

2
.gitignore vendored

@ -19,6 +19,6 @@ multitargeting.props
ILSpy.Installer/wix/ ILSpy.Installer/wix/
/VERSION /VERSION
/ICSharpCode.Decompiler/Properties/DecompilerVersionInfo.cs /ICSharpCode.Decompiler/Properties/DecompilerVersionInfo.cs
*/.vscode/ **/.vscode/
DecompilerTests.config.json DecompilerTests.config.json
*.trx *.trx

4
ICSharpCode.ILSpyCmd/IlspyCmdProgram.cs

@ -149,7 +149,7 @@ Examples:
[Option(generateDiagrammerCmd + "-report-excluded", "Outputs a report of types excluded from the generated diagrammer" + [Option(generateDiagrammerCmd + "-report-excluded", "Outputs a report of types excluded from the generated diagrammer" +
$" - whether by default because compiler-generated, explicitly by '{exclude}' or implicitly by '{include}'." + $" - whether by default because compiler-generated, explicitly by '{exclude}' or implicitly by '{include}'." +
" You may find this useful to develop and debug your regular expressions.", CommandOptionType.NoValue)] " You may find this useful to develop and debug your regular expressions.", CommandOptionType.NoValue)]
public bool ReportExludedTypes { get; set; } public bool ReportExcludedTypes { get; set; }
[Option(generateDiagrammerCmd + "-docs", "The path or file:// URI of the XML file containing the target assembly's documentation comments." + [Option(generateDiagrammerCmd + "-docs", "The path or file:// URI of the XML file containing the target assembly's documentation comments." +
" You only need to set this if a) you want your diagrams annotated with them and b) the file name differs from that of the assmbly." + " You only need to set this if a) you want your diagrams annotated with them and b) the file name differs from that of the assmbly." +
@ -221,7 +221,7 @@ Examples:
OutputFolder = OutputDirectory, OutputFolder = OutputDirectory,
Include = Include, Include = Include,
Exclude = Exclude, Exclude = Exclude,
ReportExludedTypes = ReportExludedTypes, ReportExcludedTypes = ReportExcludedTypes,
JsonOnly = JsonOnly, JsonOnly = JsonOnly,
XmlDocs = XmlDocs, XmlDocs = XmlDocs,
StrippedNamespaces = StrippedNamespaces StrippedNamespaces = StrippedNamespaces

2
ICSharpCode.ILSpyX/MermaidDiagrammer/GenerateHtmlDiagrammer.cs

@ -32,7 +32,7 @@ namespace ICSharpCode.ILSpyX.MermaidDiagrammer
public string? Include { get; set; } public string? Include { get; set; }
public string? Exclude { get; set; } public string? Exclude { get; set; }
public bool JsonOnly { get; set; } public bool JsonOnly { get; set; }
public bool ReportExludedTypes { get; set; } public bool ReportExcludedTypes { get; set; }
public string? XmlDocs { get; set; } public string? XmlDocs { get; set; }
/// <summary>Namespaces to strip from <see cref="XmlDocs"/>. /// <summary>Namespaces to strip from <see cref="XmlDocs"/>.

2
ICSharpCode.ILSpyX/MermaidDiagrammer/Generator.Run.cs

@ -127,7 +127,7 @@ namespace ICSharpCode.ILSpyX.MermaidDiagrammer
Debug.WriteLine("Successfully generated HTML diagrammer."); Debug.WriteLine("Successfully generated HTML diagrammer.");
} }
if (ReportExludedTypes) if (ReportExcludedTypes)
{ {
string excludedTypes = model.Excluded.Join(Environment.NewLine); string excludedTypes = model.Excluded.Join(Environment.NewLine);
File.WriteAllText(Path.Combine(outputFolder, "excluded types.txt"), excludedTypes); File.WriteAllText(Path.Combine(outputFolder, "excluded types.txt"), excludedTypes);

Loading…
Cancel
Save