Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 82 additions & 55 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,79 +2,106 @@
"version": "0.2",
"language": "en",
"words": [
"SPDX",
"SBOM",
"Anson",
"Blockquotes",
"buildmark",
"BuildMark",
"buildnotes",
"camelcase",
"Checkmarx",
"CodeQL",
"copilot",
"cspell",
"csproj",
"dbproj",
"dcterms",
"declaredat",
"Dema",
"DemaConsulting",
"demaconsulting",
"DEMACONSULTINGNUGETKEY",
"Dependabot",
"dependabot",
"doctitle",
"dotnet",
"dotnettool",
"nuget",
"csproj",
"MSTest",
"YamlDotNet",
"SpdxModel",
"SpdxTool",
"TemplateDotNetTool",
"trx",
"json",
"yaml",
"mermaid",
"purl",
"ntia",
"Sonar",
"SonarCloud",
"SonarAnalyzer",
"editorconfig",
"filepart",
"fsproj",
"Gidget",
"gitattributes",
"gitignore",
"hotspots",
"ibiqlik",
"LINQ",
"maintainer",
"markdownlint",
"mermaid",
"MSTest",
"mstest",
"yamllint",
"myterm",
"ncipollo",
"NOASSERTION",
"ntia",
"nuget",
"nupkg",
"snupkg",
"opencover",
"pagetitle",
"Pandoc",
"pandoc",
"purl",
"Pylint",
"Qube",
"reqstream",
"ReqStream",
"sandboxed",
"Sarif",
"SarifMark",
"SBOM",
"Semgrep",
"semver",
"slnx",
"snupkg",
"Sonar",
"SonarAnalyzer",
"SonarCloud",
"sonarmark",
"SonarMark",
"sonarscanner",
"wildcards",
"SonarQube",
"spdx",
"SPDX",
"SPDXID",
"NOASSERTION",
"declaredat",
"sandboxed",
"hotspots",
"Pandoc"
],
"ignoreWords": [
"demaconsulting"
"SpdxModel",
"SpdxTool",
"streetsidesoftware",
"TemplateDotNetTool",
"templatetool",
"testname",
"TMPL",
"tracematrix",
"triaging",
"Trivy",
"trx",
"vbproj",
"vcxproj",
"Weasyprint",
"wildcards",
"YamlDotNet",
"yamllint"
],
"ignorePaths": [
"node_modules/**",
".git/**",
"bin/**",
"obj/**",
"*.min.js",
"*.min.css",
"node_modules",
".git",
"bin",
"obj",
"*.nupkg",
"*.snupkg",
"*.dll",
"*.exe",
"*.trx",
"*.spdx.json",
"package-lock.json",
".vs/**",
".vscode/**",
"coverage/**",
"TestResults/**",
"**/*.DotSettings",
"**/*.csproj",
"yarn.lock",
"AGENT_REPORT_*.md"
],
"flagWords": [],
"patterns": [
{
"name": "Markdown links",
"pattern": "\\[.*?\\]\\(.*?\\)",
"description": "Ignore markdown links"
},
{
"name": "Inline code",
"pattern": "`[^`]*`",
"description": "Ignore inline code blocks"
}
]
}
161 changes: 42 additions & 119 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,47 @@ root = true

# All files
[*]
charset = utf-8
charset = utf-8-bom
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

# Code files
[*.{cs,csx,vb,vbx}]
indent_size = 4

# XML project files
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
indent_size = 2
# Markdown files
[*.md]
trim_trailing_whitespace = false

# XML config files
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
# YAML files
[*.{yml,yaml}]
indent_size = 2

# JSON files
[*.json]
indent_size = 2

# YAML files
[*.{yml,yaml}]
# XML files
[*.{xml,csproj,props,targets}]
indent_size = 2

# Markdown files
[*.md]
trim_trailing_whitespace = false
# C# files
[*.cs]
indent_size = 4

# Code style rules
csharp_prefer_braces = true:warning
csharp_prefer_simple_using_statement = true:suggestion
csharp_style_namespace_declarations = file_scoped:warning
csharp_style_prefer_method_group_conversion = true:silent
csharp_style_prefer_top_level_statements = true:silent
csharp_style_expression_bodied_methods = false:silent
csharp_style_expression_bodied_constructors = false:silent
csharp_style_expression_bodied_operators = false:silent
csharp_style_expression_bodied_properties = true:silent
csharp_style_expression_bodied_indexers = true:silent
csharp_style_expression_bodied_accessors = true:silent
csharp_style_expression_bodied_lambdas = true:silent
csharp_style_expression_bodied_local_functions = false:silent

# Dotnet code style settings:
[*.{cs,vb}]
Expand All @@ -41,33 +54,10 @@ trim_trailing_whitespace = false
dotnet_sort_system_directives_first = true
dotnet_separate_import_directive_groups = false

# Avoid "this." and "Me." if not necessary
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_qualification_for_event = false:suggestion

# Use language keywords instead of framework type names for type references
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
dotnet_style_predefined_type_for_member_access = true:suggestion

# Suggest more modern language features when available
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_coalesce_expression = true:suggestion
dotnet_style_null_propagation = true:suggestion
dotnet_style_explicit_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_auto_properties = true:suggestion
dotnet_style_prefer_conditional_expression_over_return = false:silent
dotnet_style_prefer_conditional_expression_over_assignment = false:silent
dotnet_style_prefer_compound_assignment = true:suggestion

# Naming Conventions
dotnet_naming_rule.interfaces_should_be_prefixed_with_i.severity = warning
dotnet_naming_rule.interfaces_should_be_prefixed_with_i.symbols = interface
dotnet_naming_rule.interfaces_should_be_prefixed_with_i.style = begins_with_i
dotnet_naming_rule.interface_should_be_begins_with_i.severity = warning
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 = warning
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
Expand All @@ -91,93 +81,26 @@ dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, int
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

# CSharp code style settings:
[*.cs]
# Newline settings
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true

# Indentation preferences
csharp_indent_case_contents = true
csharp_indent_switch_labels = true
csharp_indent_labels = flush_left
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents_when_block = false

# Space preferences
csharp_space_after_cast = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_around_binary_operators = before_and_after
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false

# Wrapping preferences
csharp_preserve_single_line_statements = false
csharp_preserve_single_line_blocks = true

# Prefer "var" everywhere
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion

# Prefer method-like constructs to have a block body
csharp_style_expression_bodied_methods = false:none
csharp_style_expression_bodied_constructors = false:none
csharp_style_expression_bodied_operators = false:none

# Prefer property-like constructs to have an expression-body
csharp_style_expression_bodied_properties = true:suggestion
csharp_style_expression_bodied_indexers = true:suggestion
csharp_style_expression_bodied_accessors = true:suggestion

# Suggest more modern language features when available
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_inlined_variable_declaration = true:suggestion
csharp_style_throw_expression = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion
csharp_prefer_simple_default_expression = true:suggestion
csharp_style_prefer_local_over_anonymous_function = true:suggestion
csharp_style_prefer_index_operator = true:suggestion
csharp_style_prefer_range_operator = true:suggestion
csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion
csharp_style_prefer_tuple_swap = true:suggestion
csharp_style_deconstructed_variable_declaration = true:suggestion
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
csharp_style_unused_value_expression_statement_preference = discard_variable:silent

# Code block preferences
csharp_prefer_braces = true:suggestion
csharp_prefer_simple_using_statement = true:suggestion
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

# Using directive preferences
csharp_using_directive_placement = outside_namespace:warning
# Organize usings
dotnet_sort_system_directives_first = true
dotnet_separate_import_directive_groups = false

# Code quality rules
# Code quality - set to suggestion to not break existing code
dotnet_code_quality_unused_parameters = all:suggestion

# Nullable reference types
csharp_nullable_reference_types = enable

# Suppress specific CA rules
dotnet_diagnostic.CA1303.severity = none # Do not pass literals as localized parameters (not localizing)
dotnet_diagnostic.CA2007.severity = none # Do not directly await a Task (library code, not UI)
Expand Down
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,32 @@ FodyWeavers.xsd

# JetBrains Rider
*.sln.iml
.idea/

# Documentation build artifacts
docs/**/*.html
docs/**/*.pdf
!docs/template/**
docs/requirements/requirements.md
docs/justifications/justifications.md
docs/tracematrix/tracematrix.md
docs/quality/codeql-quality.md
docs/quality/sonar-quality.md
docs/buildnotes.md
docs/buildnotes/versions.md

# Test results
TestResults/
*.trx
coverage.opencover.xml

# VersionMark captures (generated during CI/CD)
versionmark-*.json

# Temporary files
*.tmp
*.temp
*.log

# Agent report files (temporary inter-agent communication)
AGENT_REPORT_*.md
Loading
Loading