Skip to content

Commit b809ae6

Browse files
author
Akácz Károly
committed
Initial commit: Fox.ChainKit v1.0.0
Lightweight, DI-friendly Chain of Responsibility framework for .NET 8/9/10 Includes: Core library, ResultKit integration, 90 tests, demo application, full documentation
1 parent 3196051 commit b809ae6

65 files changed

Lines changed: 5060 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 254 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,254 @@
1+
# Remove the line below if you want to inherit .editorconfig settings from higher directories
2+
root = true
3+
4+
# All files
5+
[*]
6+
charset = utf-8
7+
end_of_line = crlf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
# C# files
12+
[*.cs]
13+
14+
#### Core EditorConfig Options ####
15+
16+
# Indentation and spacing
17+
indent_size = 4
18+
indent_style = space
19+
tab_width = 4
20+
21+
# New line preferences
22+
end_of_line = crlf
23+
insert_final_newline = true
24+
25+
#### .NET Code Actions ####
26+
27+
# Type members
28+
dotnet_hide_advanced_members = false
29+
dotnet_member_insertion_location = with_other_members_of_the_same_kind
30+
dotnet_property_generation_behavior = prefer_auto_properties
31+
32+
# Symbol search
33+
dotnet_search_reference_assemblies = true
34+
35+
#### .NET Coding Conventions ####
36+
37+
# Organize usings
38+
dotnet_separate_import_directive_groups = false
39+
dotnet_sort_system_directives_first = true
40+
file_header_template = unset
41+
42+
# this. and Me. preferences
43+
dotnet_style_qualification_for_event = false
44+
dotnet_style_qualification_for_field = false
45+
dotnet_style_qualification_for_method = false
46+
dotnet_style_qualification_for_property = false
47+
48+
# Language keywords vs BCL types preferences
49+
dotnet_style_predefined_type_for_locals_parameters_members = true
50+
dotnet_style_predefined_type_for_member_access = true
51+
52+
# Parentheses preferences
53+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity
54+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity
55+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary
56+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity
57+
58+
# Modifier preferences
59+
dotnet_style_require_accessibility_modifiers = for_non_interface_members
60+
61+
# Expression-level preferences
62+
dotnet_prefer_system_hash_code = true
63+
dotnet_style_coalesce_expression = true
64+
dotnet_style_collection_initializer = true
65+
dotnet_style_explicit_tuple_names = true
66+
dotnet_style_namespace_match_folder = true
67+
dotnet_style_null_propagation = true
68+
dotnet_style_object_initializer = true
69+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
70+
dotnet_style_prefer_auto_properties = true
71+
dotnet_style_prefer_collection_expression = when_types_loosely_match
72+
dotnet_style_prefer_compound_assignment = true
73+
dotnet_style_prefer_conditional_expression_over_assignment = true
74+
dotnet_style_prefer_conditional_expression_over_return = true
75+
dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed
76+
dotnet_style_prefer_inferred_anonymous_type_member_names = true
77+
dotnet_style_prefer_inferred_tuple_names = true
78+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true
79+
dotnet_style_prefer_simplified_boolean_expressions = true:warning
80+
dotnet_style_prefer_simplified_interpolation = true
81+
82+
# Field preferences
83+
dotnet_style_readonly_field = true
84+
85+
# Parameter preferences
86+
dotnet_code_quality_unused_parameters = all
87+
88+
# Suppression preferences
89+
dotnet_remove_unnecessary_suppression_exclusions = none
90+
91+
# New line preferences
92+
dotnet_style_allow_multiple_blank_lines_experimental = false:suggestion
93+
dotnet_style_allow_statement_immediately_after_block_experimental = false:suggestion
94+
95+
#### C# Coding Conventions ####
96+
97+
# var preferences
98+
csharp_style_var_elsewhere = false
99+
csharp_style_var_for_built_in_types = false
100+
csharp_style_var_when_type_is_apparent = false
101+
102+
# Expression-bodied members
103+
csharp_style_expression_bodied_accessors = true
104+
csharp_style_expression_bodied_constructors = false
105+
csharp_style_expression_bodied_indexers = true
106+
csharp_style_expression_bodied_lambdas = true
107+
csharp_style_expression_bodied_local_functions = false
108+
csharp_style_expression_bodied_methods = false
109+
csharp_style_expression_bodied_operators = false
110+
csharp_style_expression_bodied_properties = true
111+
112+
# Pattern matching preferences
113+
csharp_style_pattern_matching_over_as_with_null_check = true
114+
csharp_style_pattern_matching_over_is_with_cast_check = true
115+
csharp_style_prefer_extended_property_pattern = true
116+
csharp_style_prefer_not_pattern = true
117+
csharp_style_prefer_pattern_matching = true:suggestion
118+
csharp_style_prefer_switch_expression = true
119+
120+
# Null-checking preferences
121+
csharp_style_conditional_delegate_call = true
122+
123+
# Modifier preferences
124+
csharp_prefer_static_anonymous_function = true
125+
csharp_prefer_static_local_function = true
126+
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async
127+
csharp_style_prefer_readonly_struct = true
128+
csharp_style_prefer_readonly_struct_member = true
129+
130+
# Code-block preferences
131+
csharp_prefer_braces = true
132+
csharp_prefer_simple_using_statement = false
133+
csharp_prefer_system_threading_lock = true
134+
csharp_style_namespace_declarations = block_scoped
135+
csharp_style_prefer_method_group_conversion = true
136+
csharp_style_prefer_primary_constructors = true
137+
csharp_style_prefer_simple_property_accessors = true
138+
csharp_style_prefer_top_level_statements = true
139+
140+
# Expression-level preferences
141+
csharp_prefer_simple_default_expression = true
142+
csharp_style_deconstructed_variable_declaration = true
143+
csharp_style_implicit_object_creation_when_type_is_apparent = true
144+
csharp_style_inlined_variable_declaration = true
145+
csharp_style_prefer_implicitly_typed_lambda_expression = true
146+
csharp_style_prefer_index_operator = true
147+
csharp_style_prefer_local_over_anonymous_function = true
148+
csharp_style_prefer_null_check_over_type_check = true
149+
csharp_style_prefer_range_operator = false:silent
150+
csharp_style_prefer_tuple_swap = true
151+
csharp_style_prefer_unbound_generic_type_in_nameof = true
152+
csharp_style_prefer_utf8_string_literals = true
153+
csharp_style_throw_expression = true
154+
csharp_style_unused_value_assignment_preference = discard_variable
155+
csharp_style_unused_value_expression_statement_preference = discard_variable
156+
157+
# 'using' directive preferences
158+
csharp_using_directive_placement = outside_namespace
159+
160+
# New line preferences
161+
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true
162+
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental = true
163+
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental = true
164+
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false:suggestion
165+
csharp_style_allow_embedded_statements_on_same_line_experimental = false
166+
167+
#### C# Formatting Rules ####
168+
169+
# New line preferences
170+
csharp_new_line_before_catch = true
171+
csharp_new_line_before_else = true
172+
csharp_new_line_before_finally = true
173+
csharp_new_line_before_members_in_anonymous_types = true
174+
csharp_new_line_before_members_in_object_initializers = true
175+
csharp_new_line_before_open_brace = all
176+
csharp_new_line_between_query_expression_clauses = true
177+
178+
# Indentation preferences
179+
csharp_indent_block_contents = true
180+
csharp_indent_braces = false
181+
csharp_indent_case_contents = true
182+
csharp_indent_case_contents_when_block = true
183+
csharp_indent_labels = one_less_than_current
184+
csharp_indent_switch_labels = true
185+
186+
# Space preferences
187+
csharp_space_after_cast = false
188+
csharp_space_after_colon_in_inheritance_clause = true
189+
csharp_space_after_comma = true
190+
csharp_space_after_dot = false
191+
csharp_space_after_keywords_in_control_flow_statements = true
192+
csharp_space_after_semicolon_in_for_statement = true
193+
csharp_space_around_binary_operators = before_and_after
194+
csharp_space_around_declaration_statements = false
195+
csharp_space_before_colon_in_inheritance_clause = true
196+
csharp_space_before_comma = false
197+
csharp_space_before_dot = false
198+
csharp_space_before_open_square_brackets = false
199+
csharp_space_before_semicolon_in_for_statement = false
200+
csharp_space_between_empty_square_brackets = false
201+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
202+
csharp_space_between_method_call_name_and_opening_parenthesis = false
203+
csharp_space_between_method_call_parameter_list_parentheses = false
204+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
205+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
206+
csharp_space_between_method_declaration_parameter_list_parentheses = false
207+
csharp_space_between_parentheses = false
208+
csharp_space_between_square_brackets = false
209+
210+
# Wrapping preferences
211+
csharp_preserve_single_line_blocks = true
212+
csharp_preserve_single_line_statements = true
213+
214+
#### Naming styles ####
215+
216+
# Naming rules
217+
218+
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
219+
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
220+
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
221+
222+
dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
223+
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
224+
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
225+
226+
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
227+
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
228+
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
229+
230+
# Symbol specifications
231+
232+
dotnet_naming_symbols.interface.applicable_kinds = interface
233+
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
234+
dotnet_naming_symbols.interface.required_modifiers =
235+
236+
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
237+
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
238+
dotnet_naming_symbols.types.required_modifiers =
239+
240+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
241+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
242+
dotnet_naming_symbols.non_field_members.required_modifiers =
243+
244+
# Naming styles
245+
246+
dotnet_naming_style.pascal_case.required_prefix =
247+
dotnet_naming_style.pascal_case.required_suffix =
248+
dotnet_naming_style.pascal_case.word_separator =
249+
dotnet_naming_style.pascal_case.capitalization = pascal_case
250+
251+
dotnet_naming_style.begins_with_i.required_prefix = I
252+
dotnet_naming_style.begins_with_i.required_suffix =
253+
dotnet_naming_style.begins_with_i.word_separator =
254+
dotnet_naming_style.begins_with_i.capitalization = pascal_case

.gitattributes

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Force CRLF for all text files on Windows
5+
*.cs text eol=crlf
6+
*.csproj text eol=crlf
7+
*.sln text eol=crlf
8+
*.props text eol=crlf
9+
*.targets text eol=crlf
10+
*.config text eol=crlf
11+
*.json text eol=crlf
12+
*.xml text eol=crlf
13+
*.md text eol=crlf
14+
*.txt text eol=crlf
15+
*.svg text eol=crlf
16+
*.ps1 text eol=crlf
17+
18+
# Binary files
19+
*.png binary
20+
*.jpg binary
21+
*.ico binary
22+
*.dll binary
23+
*.exe binary

.github/CODEOWNERS

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Code Owners for Fox.ChainKit
2+
# These users will be automatically requested for review when someone opens a pull request.
3+
# See: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
4+
5+
# Global owner for everything in the repository
6+
* @akikari
7+
8+
# Core library
9+
/src/Fox.ChainKit/ @akikari
10+
/src/Fox.ChainKit.ResultKit/ @akikari
11+
12+
# Tests
13+
/tests/ @akikari
14+
15+
# Documentation
16+
/README.md @akikari
17+
/CHANGELOG.md @akikari
18+
/.github/ @akikari
19+
20+
# Build configuration
21+
/Directory.Build.props @akikari
22+
*.csproj @akikari
23+
24+
# GitHub workflows (require extra scrutiny)
25+
/.github/workflows/ @akikari
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
name: Bug Report
3+
about: Report a bug or unexpected behavior
4+
title: '[BUG] '
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
## 🐛 Bug Description
10+
11+
A clear and concise description of what the bug is.
12+
13+
## 📋 Steps to Reproduce
14+
15+
1. Go to '...'
16+
2. Call method '...'
17+
3. Pass parameters '...'
18+
4. See error
19+
20+
## ✅ Expected Behavior
21+
22+
A clear and concise description of what you expected to happen.
23+
24+
## ❌ Actual Behavior
25+
26+
A clear and concise description of what actually happened.
27+
28+
## 💻 Code Sample
29+
30+
```csharp
31+
// Minimal code sample that reproduces the issue
32+
var result = Result<int>.Success(42);
33+
// ...
34+
```
35+
36+
## 🌍 Environment
37+
38+
- **Fox.ChainKit Version**: [e.g., 1.0.0]
39+
- **.NET Version**: [e.g., .NET 8.0]
40+
- **OS**: [e.g., Windows 11, Ubuntu 22.04]
41+
- **IDE**: [e.g., Visual Studio 2022, Rider 2023.3]
42+
43+
## 📎 Additional Context
44+
45+
Add any other context about the problem here (stack traces, logs, screenshots, etc.).
46+
47+
## ✔️ Possible Solution
48+
49+
If you have a suggestion on how to fix the bug, please describe it here.

0 commit comments

Comments
 (0)