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
4 changes: 4 additions & 0 deletions .azuredevops/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Mirrored repository. We use dependabot via GitHub, not Azure DevOps.
Comment thread
hallvictoria marked this conversation as resolved.
version: 2
enable-security-updates: false
enable-campaigned-updates: false
153 changes: 35 additions & 118 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# EditorConfig for Azure Connectors .NET SDK
# EditorConfig for Azure Connectors Python SDK
# https://editorconfig.org

root = true
Expand All @@ -10,132 +10,49 @@ indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf

# Python files (PEP 8)
[*.py]
indent_style = space
indent_size = 4
max_line_length = 120

# Python stub files
[*.pyi]
indent_style = space
indent_size = 4

# Markdown files
[*.md]
trim_trailing_whitespace = false

# JSON, YAML, XML
[*.{json,yml,yaml,xml,props,targets,csproj,sln}]
# JSON, YAML, TOML configuration files
[*.{json,yaml,yml,toml}]
indent_style = space
indent_size = 2

# C# files
[*.cs]
# Shell scripts
[*.sh]
indent_style = space
indent_size = 4
end_of_line = lf

# Usings outside namespace
csharp_using_directive_placement = outside_namespace:warning

# File-scoped namespaces preferred
csharp_style_namespace_declarations = file_scoped:suggestion

# Sort System.* usings first
dotnet_sort_system_directives_first = true
dotnet_separate_import_directive_groups = false

# this. qualification
dotnet_style_qualification_for_field = true:warning
dotnet_style_qualification_for_property = true:warning
dotnet_style_qualification_for_method = true:warning
dotnet_style_qualification_for_event = true:warning

# Use var when type is apparent
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 language keywords (int, string) over framework types (Int32, String)
dotnet_style_predefined_type_for_locals_parameters_members = true:warning
dotnet_style_predefined_type_for_member_access = true:warning

# Expression-level preferences
dotnet_style_object_initializer = true:suggestion
dotnet_style_collection_initializer = true:suggestion
dotnet_style_explicit_tuple_names = true:warning
dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion

# Modifier preferences
dotnet_style_require_accessibility_modifiers = always:warning
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:warning

# Newline preferences (Allman style)
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
csharp_indent_case_contents = true
csharp_indent_switch_labels = true
csharp_indent_block_contents = true
csharp_indent_braces = false

# Spacing
csharp_space_after_cast = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_parentheses = false

# Wrapping
csharp_preserve_single_line_statements = false
csharp_preserve_single_line_blocks = true

# Naming conventions

# Constants: PascalCase (must be before private fields rule)
dotnet_naming_rule.constants_should_be_pascal_case.severity = warning
dotnet_naming_rule.constants_should_be_pascal_case.symbols = constants
dotnet_naming_rule.constants_should_be_pascal_case.style = pascal_case

dotnet_naming_symbols.constants.applicable_kinds = field
dotnet_naming_symbols.constants.required_modifiers = const
dotnet_naming_symbols.constants.applicable_accessibilities = *

dotnet_naming_style.pascal_case.capitalization = pascal_case

# Private static fields: PascalCase (effectively constants)
dotnet_naming_rule.private_static_fields_should_be_pascal_case.severity = warning
dotnet_naming_rule.private_static_fields_should_be_pascal_case.symbols = private_static_fields
dotnet_naming_rule.private_static_fields_should_be_pascal_case.style = pascal_case

dotnet_naming_symbols.private_static_fields.applicable_kinds = field
dotnet_naming_symbols.private_static_fields.applicable_accessibilities = private, protected, private_protected
dotnet_naming_symbols.private_static_fields.required_modifiers = static

# Private instance fields: _camelCase
dotnet_naming_rule.private_fields_should_be_camel_case.severity = warning
dotnet_naming_rule.private_fields_should_be_camel_case.symbols = private_instance_fields
dotnet_naming_rule.private_fields_should_be_camel_case.style = camel_case_underscore

dotnet_naming_symbols.private_instance_fields.applicable_kinds = field
dotnet_naming_symbols.private_instance_fields.applicable_accessibilities = private, protected, private_protected
dotnet_naming_symbols.private_instance_fields.required_modifiers =

dotnet_naming_style.camel_case_underscore.required_prefix = _
dotnet_naming_style.camel_case_underscore.capitalization = camel_case

# Public members: PascalCase
dotnet_naming_rule.public_members_should_be_pascal_case.severity = warning
dotnet_naming_rule.public_members_should_be_pascal_case.symbols = public_members
dotnet_naming_rule.public_members_should_be_pascal_case.style = pascal_case

dotnet_naming_symbols.public_members.applicable_kinds = property, method, event, class, struct, interface, enum, delegate
dotnet_naming_symbols.public_members.applicable_accessibilities = public, internal
# PowerShell scripts
[*.{ps1,psm1,psd1}]
indent_style = space
indent_size = 4
end_of_line = crlf

# Interfaces: IPascalCase
dotnet_naming_rule.interfaces_should_begin_with_i.severity = warning
dotnet_naming_rule.interfaces_should_begin_with_i.symbols = interfaces
dotnet_naming_rule.interfaces_should_begin_with_i.style = begins_with_i
# Requirements and constraints files
[{requirements*.txt,constraints*.txt}]
insert_final_newline = true

dotnet_naming_symbols.interfaces.applicable_kinds = interface
dotnet_naming_symbols.interfaces.applicable_accessibilities = *
# Makefiles require tabs
[Makefile]
indent_style = tab

dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.capitalization = pascal_case
# GitHub Actions and Azure Pipelines
[*.{yml,yaml}]
indent_style = space
indent_size = 2
6 changes: 1 addition & 5 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
# Default owners
* @Azure/azure-logicapps-team

# SDK components
/src/ @Azure/azure-logicapps-team
/tests/ @Azure/azure-logicapps-team
* @Azure/connectors-sdks
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ body:
id: sdk-version
attributes:
label: SDK version
description: The version of the Azure Connectors .NET SDK you are using.
placeholder: e.g. 0.1.0-preview.1
description: The version of the Azure Connectors Python SDK you are using.
placeholder: e.g. 0.1.0dev2
validations:
required: true

- type: input
id: dotnet-version
id: python-version
attributes:
label: .NET version
description: The .NET runtime/SDK version (output of `dotnet --version`).
placeholder: e.g. 8.0.300
label: Python version
description: The Python version (output of `python --version`).
placeholder: e.g. 3.12.0
validations:
required: true

Expand Down
Loading