Skip to content

Commit 0faaa57

Browse files
committed
chore: initial commit
0 parents  commit 0faaa57

25 files changed

+2613
-0
lines changed

.editorconfig

Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
# EditorConfig - https://editorconfig.org
2+
3+
root = true
4+
5+
# All files
6+
[*]
7+
indent_style = space
8+
indent_size = 4
9+
end_of_line = crlf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
14+
# XML files
15+
[*.{xml,csproj,props,targets,nuspec}]
16+
indent_size = 2
17+
18+
# JSON/YAML files
19+
[*.{json,yml,yaml}]
20+
indent_size = 2
21+
22+
# Markdown files
23+
[*.md]
24+
trim_trailing_whitespace = false
25+
26+
# C# files
27+
[*.cs]
28+
# Organize usings
29+
dotnet_sort_system_directives_first = true
30+
dotnet_separate_import_directive_groups = false
31+
32+
# this. preferences
33+
dotnet_style_qualification_for_field = false:suggestion
34+
dotnet_style_qualification_for_property = false:suggestion
35+
dotnet_style_qualification_for_method = false:suggestion
36+
dotnet_style_qualification_for_event = false:suggestion
37+
38+
# Language keywords vs BCL types preferences
39+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
40+
dotnet_style_predefined_type_for_member_access = true:suggestion
41+
42+
# Modifier preferences
43+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
44+
dotnet_style_readonly_field = true:suggestion
45+
46+
# Parentheses preferences
47+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
48+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
49+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
50+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
51+
52+
# Expression-level preferences
53+
dotnet_style_object_initializer = true:suggestion
54+
dotnet_style_collection_initializer = true:suggestion
55+
dotnet_style_explicit_tuple_names = true:suggestion
56+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
57+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
58+
dotnet_style_prefer_auto_properties = true:suggestion
59+
dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
60+
dotnet_style_prefer_conditional_expression_over_return = true:suggestion
61+
dotnet_style_prefer_compound_assignment = true:suggestion
62+
dotnet_style_prefer_simplified_interpolation = true:suggestion
63+
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
64+
65+
# Null-checking preferences
66+
dotnet_style_coalesce_expression = true:suggestion
67+
dotnet_style_null_propagation = true:suggestion
68+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
69+
70+
# var preferences
71+
csharp_style_var_for_built_in_types = false:suggestion
72+
csharp_style_var_when_type_is_apparent = true:suggestion
73+
csharp_style_var_elsewhere = false:suggestion
74+
75+
# Expression-bodied members
76+
csharp_style_expression_bodied_methods = when_on_single_line:suggestion
77+
csharp_style_expression_bodied_constructors = false:suggestion
78+
csharp_style_expression_bodied_operators = when_on_single_line:suggestion
79+
csharp_style_expression_bodied_properties = true:suggestion
80+
csharp_style_expression_bodied_indexers = true:suggestion
81+
csharp_style_expression_bodied_accessors = true:suggestion
82+
csharp_style_expression_bodied_lambdas = true:suggestion
83+
csharp_style_expression_bodied_local_functions = when_on_single_line:suggestion
84+
85+
# Pattern matching preferences
86+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
87+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
88+
csharp_style_prefer_switch_expression = true:suggestion
89+
csharp_style_prefer_pattern_matching = true:suggestion
90+
csharp_style_prefer_not_pattern = true:suggestion
91+
92+
# Code-block preferences
93+
csharp_prefer_braces = true:suggestion
94+
csharp_prefer_simple_using_statement = true:suggestion
95+
96+
# 'using' directive preferences
97+
csharp_using_directive_placement = outside_namespace:suggestion
98+
99+
# New line preferences
100+
csharp_new_line_before_open_brace = all
101+
csharp_new_line_before_else = true
102+
csharp_new_line_before_catch = true
103+
csharp_new_line_before_finally = true
104+
csharp_new_line_before_members_in_object_initializers = true
105+
csharp_new_line_before_members_in_anonymous_types = true
106+
csharp_new_line_between_query_expression_clauses = true
107+
108+
# Indentation preferences
109+
csharp_indent_case_contents = true
110+
csharp_indent_switch_labels = true
111+
csharp_indent_labels = one_less_than_current
112+
csharp_indent_block_contents = true
113+
csharp_indent_braces = false
114+
csharp_indent_case_contents_when_block = false
115+
116+
# Space preferences
117+
csharp_space_after_cast = false
118+
csharp_space_after_keywords_in_control_flow_statements = true
119+
csharp_space_between_parentheses = false
120+
csharp_space_before_colon_in_inheritance_clause = true
121+
csharp_space_after_colon_in_inheritance_clause = true
122+
csharp_space_around_binary_operators = before_and_after
123+
csharp_space_between_method_declaration_parameter_list_parentheses = false
124+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
125+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
126+
csharp_space_between_method_call_parameter_list_parentheses = false
127+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
128+
csharp_space_between_method_call_name_and_opening_parenthesis = false
129+
csharp_space_after_comma = true
130+
csharp_space_before_comma = false
131+
csharp_space_after_dot = false
132+
csharp_space_before_dot = false
133+
csharp_space_after_semicolon_in_for_statement = true
134+
csharp_space_before_semicolon_in_for_statement = false
135+
csharp_space_around_declaration_statements = false
136+
csharp_space_before_open_square_brackets = false
137+
csharp_space_between_empty_square_brackets = false
138+
csharp_space_between_square_brackets = false
139+
140+
# Wrapping preferences
141+
csharp_preserve_single_line_statements = false
142+
csharp_preserve_single_line_blocks = true
143+
144+
# Naming conventions
145+
dotnet_naming_rule.private_fields_should_be_camel_case_with_underscore.severity = suggestion
146+
dotnet_naming_rule.private_fields_should_be_camel_case_with_underscore.symbols = private_fields
147+
dotnet_naming_rule.private_fields_should_be_camel_case_with_underscore.style = camel_case_with_underscore
148+
149+
dotnet_naming_symbols.private_fields.applicable_kinds = field
150+
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
151+
152+
dotnet_naming_style.camel_case_with_underscore.capitalization = camel_case
153+
dotnet_naming_style.camel_case_with_underscore.required_prefix = _
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: Bug Report
2+
description: Report a bug or unexpected behavior
3+
title: "[Bug]: "
4+
labels: ["bug", "triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to report a bug! Please fill out the form below.
10+
11+
- type: textarea
12+
id: description
13+
attributes:
14+
label: Description
15+
description: A clear and concise description of the bug.
16+
placeholder: Describe what happened...
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
id: repro
22+
attributes:
23+
label: Steps to Reproduce
24+
description: Steps to reproduce the behavior.
25+
placeholder: |
26+
1. Initialize telemetry with...
27+
2. Call method...
28+
3. See error...
29+
validations:
30+
required: true
31+
32+
- type: textarea
33+
id: expected
34+
attributes:
35+
label: Expected Behavior
36+
description: What did you expect to happen?
37+
validations:
38+
required: true
39+
40+
- type: textarea
41+
id: actual
42+
attributes:
43+
label: Actual Behavior
44+
description: What actually happened?
45+
validations:
46+
required: true
47+
48+
- type: input
49+
id: version
50+
attributes:
51+
label: Otel4Vsix Version
52+
description: What version of Otel4Vsix are you using?
53+
placeholder: "1.0.0"
54+
validations:
55+
required: true
56+
57+
- type: input
58+
id: vs-version
59+
attributes:
60+
label: Visual Studio Version
61+
description: What version of Visual Studio are you using?
62+
placeholder: "Visual Studio 2022 17.8.0"
63+
validations:
64+
required: true
65+
66+
- type: dropdown
67+
id: os
68+
attributes:
69+
label: Operating System
70+
options:
71+
- Windows 11
72+
- Windows 10
73+
- Other
74+
validations:
75+
required: true
76+
77+
- type: textarea
78+
id: logs
79+
attributes:
80+
label: Relevant Log Output
81+
description: Please copy and paste any relevant log output or stack traces.
82+
render: shell
83+
84+
- type: textarea
85+
id: additional
86+
attributes:
87+
label: Additional Context
88+
description: Add any other context, screenshots, or code samples here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Questions & Discussions
4+
url: https://github.com/CodingWithCalvin/Otel4Vsix/discussions
5+
about: Ask questions and discuss ideas in GitHub Discussions
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Feature Request
2+
description: Suggest a new feature or enhancement
3+
title: "[Feature]: "
4+
labels: ["enhancement", "triage"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for suggesting a feature! Please fill out the form below.
10+
11+
- type: textarea
12+
id: problem
13+
attributes:
14+
label: Problem Statement
15+
description: Is your feature request related to a problem? Describe it here.
16+
placeholder: I'm always frustrated when...
17+
validations:
18+
required: false
19+
20+
- type: textarea
21+
id: solution
22+
attributes:
23+
label: Proposed Solution
24+
description: Describe the solution you'd like to see.
25+
placeholder: I would like to be able to...
26+
validations:
27+
required: true
28+
29+
- type: textarea
30+
id: alternatives
31+
attributes:
32+
label: Alternatives Considered
33+
description: Describe any alternative solutions or features you've considered.
34+
validations:
35+
required: false
36+
37+
- type: textarea
38+
id: code-example
39+
attributes:
40+
label: Example Usage
41+
description: If applicable, show how the feature would be used in code.
42+
render: csharp
43+
44+
- type: dropdown
45+
id: impact
46+
attributes:
47+
label: Impact
48+
description: How important is this feature to you?
49+
options:
50+
- Nice to have
51+
- Important - affects my workflow
52+
- Critical - blocking my work
53+
validations:
54+
required: true
55+
56+
- type: textarea
57+
id: additional
58+
attributes:
59+
label: Additional Context
60+
description: Add any other context, screenshots, or examples here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## Description
2+
3+
<!-- Describe your changes in detail -->
4+
5+
## Related Issue
6+
7+
<!-- If applicable, link to the issue this PR addresses -->
8+
<!-- Use "Fixes #123" or "Closes #123" to auto-close the issue -->
9+
10+
Fixes #
11+
12+
## Type of Change
13+
14+
<!-- Mark the relevant option with an "x" -->
15+
16+
- [ ] Bug fix (non-breaking change that fixes an issue)
17+
- [ ] New feature (non-breaking change that adds functionality)
18+
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
19+
- [ ] Documentation update
20+
- [ ] Refactoring (no functional changes)
21+
- [ ] Build/CI changes
22+
23+
## Checklist
24+
25+
<!-- Mark completed items with an "x" -->
26+
27+
- [ ] My code follows the project's coding style
28+
- [ ] I have performed a self-review of my own code
29+
- [ ] I have commented my code, particularly in hard-to-understand areas
30+
- [ ] I have updated the documentation accordingly
31+
- [ ] My changes generate no new warnings
32+
- [ ] I have added tests that prove my fix is effective or that my feature works
33+
- [ ] New and existing unit tests pass locally with my changes
34+
35+
## Testing
36+
37+
<!-- Describe how you tested your changes -->
38+
39+
## Screenshots (if applicable)
40+
41+
<!-- Add screenshots to help explain your changes -->
42+
43+
## Additional Notes
44+
45+
<!-- Add any additional notes for reviewers -->

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v4
19+
with:
20+
dotnet-version: '8.0.x'
21+
22+
- name: Restore dependencies
23+
run: dotnet restore
24+
25+
- name: Build
26+
run: dotnet build --configuration Release --no-restore
27+
28+
- name: Upload build artifacts
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: build-output
32+
path: src/Otel4Vsix/bin/Release/
33+
retention-days: 7

0 commit comments

Comments
 (0)