-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 69a8c5e
Showing
17 changed files
with
657 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,203 @@ | ||
# Remove the line below if you want to inherit .editorconfig settings from higher directories | ||
root = true | ||
|
||
[*] | ||
#### Core EditorConfig Options #### | ||
# Indentation and spacing | ||
indent_size = 4 | ||
indent_style = space | ||
tab_width = 4 | ||
trim_trailing_whitespace = true | ||
|
||
# New line preferences | ||
end_of_line = crlf | ||
insert_final_newline = true | ||
|
||
# MSBuild related files | ||
[*.{csproj,props,targets}] | ||
indent_size = 2 | ||
|
||
# C# files | ||
[*.cs] | ||
|
||
#### .NET Coding Conventions #### | ||
|
||
# Organize usings | ||
dotnet_separate_import_directive_groups = true | ||
dotnet_sort_system_directives_first = true | ||
|
||
# this. and Me. preferences | ||
dotnet_style_qualification_for_event = false:silent | ||
dotnet_style_qualification_for_field = false:silent | ||
dotnet_style_qualification_for_method = false:silent | ||
dotnet_style_qualification_for_property = false:silent | ||
|
||
# Language keywords vs BCL types preferences | ||
dotnet_style_predefined_type_for_locals_parameters_members = true:silent | ||
dotnet_style_predefined_type_for_member_access = true:silent | ||
|
||
# Parentheses preferences | ||
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent | ||
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent | ||
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent | ||
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent | ||
|
||
# Modifier preferences | ||
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent | ||
|
||
# Expression-level preferences | ||
dotnet_style_coalesce_expression = true:suggestion | ||
dotnet_style_collection_initializer = true:suggestion | ||
dotnet_style_explicit_tuple_names = true:suggestion | ||
dotnet_style_null_propagation = true:suggestion | ||
dotnet_style_object_initializer = true:suggestion | ||
dotnet_style_prefer_auto_properties = true:silent | ||
dotnet_style_prefer_compound_assignment = true:suggestion | ||
dotnet_style_prefer_conditional_expression_over_assignment = true:silent | ||
dotnet_style_prefer_conditional_expression_over_return = true:silent | ||
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion | ||
dotnet_style_prefer_inferred_tuple_names = true:suggestion | ||
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion | ||
dotnet_style_require_accessibility_modifiers = omit_if_default:silent | ||
|
||
# Field preferences | ||
dotnet_style_readonly_field = true:suggestion | ||
|
||
# Parameter preferences | ||
dotnet_code_quality_unused_parameters = all:suggestion | ||
|
||
#### C# Coding Conventions #### | ||
|
||
# var preferences | ||
csharp_style_var_elsewhere = false:silent | ||
csharp_style_var_for_built_in_types = false:silent | ||
csharp_style_var_when_type_is_apparent = true:silent | ||
|
||
# Expression-bodied members | ||
csharp_style_expression_bodied_accessors = true:silent | ||
csharp_style_expression_bodied_constructors = false:silent | ||
csharp_style_expression_bodied_indexers = true:silent | ||
csharp_style_expression_bodied_lambdas = true:silent | ||
csharp_style_expression_bodied_local_functions = false:silent | ||
csharp_style_expression_bodied_methods = false:silent | ||
csharp_style_expression_bodied_operators = false:silent | ||
csharp_style_expression_bodied_properties = true:silent | ||
|
||
# Pattern matching preferences | ||
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion | ||
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion | ||
csharp_style_prefer_switch_expression = true:suggestion | ||
|
||
# Null-checking preferences | ||
csharp_style_conditional_delegate_call = true:suggestion | ||
|
||
# Modifier preferences | ||
csharp_prefer_static_local_function = true:suggestion | ||
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async | ||
|
||
# Code-block preferences | ||
csharp_prefer_braces = false:suggestion | ||
csharp_prefer_simple_using_statement = true:suggestion | ||
|
||
# Expression-level preferences | ||
csharp_prefer_simple_default_expression = true:suggestion | ||
csharp_style_deconstructed_variable_declaration = true:suggestion | ||
csharp_style_inlined_variable_declaration = true:suggestion | ||
csharp_style_pattern_local_over_anonymous_function = true:suggestion | ||
csharp_style_prefer_index_operator = true:suggestion | ||
csharp_style_prefer_range_operator = true:suggestion | ||
csharp_style_throw_expression = true:suggestion | ||
csharp_style_unused_value_assignment_preference = discard_variable:suggestion | ||
csharp_style_unused_value_expression_statement_preference = discard_variable:silent | ||
|
||
# 'using' directive preferences | ||
csharp_using_directive_placement = outside_namespace:silent | ||
|
||
#### C# Formatting Rules #### | ||
|
||
# New line preferences | ||
csharp_new_line_before_catch = false | ||
csharp_new_line_before_else = false | ||
csharp_new_line_before_finally = false | ||
csharp_new_line_before_members_in_anonymous_types = true | ||
csharp_new_line_before_members_in_object_initializers = true | ||
csharp_new_line_before_open_brace = methods,types | ||
csharp_new_line_between_query_expression_clauses = true | ||
|
||
# Indentation preferences | ||
csharp_indent_block_contents = true | ||
csharp_indent_braces = false | ||
csharp_indent_case_contents = true | ||
csharp_indent_case_contents_when_block = false | ||
csharp_indent_labels = one_less_than_current | ||
csharp_indent_switch_labels = true | ||
|
||
# Space preferences | ||
csharp_space_after_cast = true | ||
csharp_space_after_colon_in_inheritance_clause = true | ||
csharp_space_after_comma = true | ||
csharp_space_after_dot = false | ||
csharp_space_after_keywords_in_control_flow_statements = true | ||
csharp_space_after_semicolon_in_for_statement = true | ||
csharp_space_around_binary_operators = before_and_after | ||
csharp_space_around_declaration_statements = false | ||
csharp_space_before_colon_in_inheritance_clause = true | ||
csharp_space_before_comma = false | ||
csharp_space_before_dot = false | ||
csharp_space_before_open_square_brackets = false | ||
csharp_space_before_semicolon_in_for_statement = false | ||
csharp_space_between_empty_square_brackets = false | ||
csharp_space_between_method_call_empty_parameter_list_parentheses = false | ||
csharp_space_between_method_call_name_and_opening_parenthesis = true | ||
csharp_space_between_method_call_parameter_list_parentheses = false | ||
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false | ||
csharp_space_between_method_declaration_name_and_open_parenthesis = true | ||
csharp_space_between_method_declaration_parameter_list_parentheses = false | ||
csharp_space_between_parentheses = false | ||
csharp_space_between_square_brackets = false | ||
|
||
# Wrapping preferences | ||
csharp_preserve_single_line_blocks = true | ||
csharp_preserve_single_line_statements = false | ||
|
||
#### Naming styles #### | ||
|
||
# Naming rules | ||
|
||
dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion | ||
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 = suggestion | ||
dotnet_naming_rule.types_should_be_pascal_case.symbols = types | ||
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case | ||
|
||
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion | ||
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members | ||
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case | ||
|
||
# Symbol specifications | ||
|
||
dotnet_naming_symbols.interface.applicable_kinds = interface | ||
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected | ||
dotnet_naming_symbols.interface.required_modifiers = | ||
|
||
dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum | ||
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected | ||
dotnet_naming_symbols.types.required_modifiers = | ||
|
||
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method | ||
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
*.cs text | ||
*.csproj text | ||
*.dll.config text | ||
*.DotSettings text | ||
*.exe.config text | ||
*.md text | ||
*.proj text | ||
*.props text | ||
*.resx text | ||
*.sh text eol=lf | ||
*.sln text eol=crlf | ||
*.targets text | ||
*.txt text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.DS_Store | ||
.vs/ | ||
bin/ | ||
obj/ | ||
/src/MonoTorrent.sln.DotSettings.user | ||
/build/ | ||
/out/ | ||
/src/.vs | ||
*.csproj.user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (C) 2022 Alan McGovern | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
XBUILD=msbuild | ||
XBUILD_ARGS=/nologo /restore | ||
|
||
all: | ||
@echo Building | ||
$(XBUILD) $(XBUILD_ARGS) | ||
|
||
clean: | ||
@echo Cleaning $(MAIN_SLN) | ||
$(XBUILD) $(XBUILD_ARGS) /t:Clean | ||
|
||
pack: | ||
@echo Creating the nupkg | ||
$(XBUILD) $(XBUILD_ARGS) /t:Pack /p:Configuration=Release | ||
|
||
.PHONY: all clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
MonoTorrent.Socks5 | ||
======== | ||
|
||
[![NuGet version](https://badge.fury.io/nu/monotorrent.socks5.svg)](https://www.nuget.org/packages/MonoTorrent.Socks5/) | ||
|
||
[![Backers on Open Collective](https://opencollective.com/monotorrent/all/badge.svg?label=Backers)](https://opencollective.com/monotorrent) | ||
|
||
|
||
## JetBrains | ||
|
||
A special thank you to [JetBrains](http://www.jetbrains.com/?from=monotorrent) for supplying a free license to their tooling so I can continue to deliver great features on this opensource project. | ||
|
||
* [dotTrace](http://www.jetbrains.com/dottrace/?from=monotorrent) - Performance profiling | ||
* [dotMemory](http://www.jetbrains.com/dotmemory/?from=monotorrent) - Memory allocation/retention profiling | ||
|
||
## Contributors | ||
|
||
### Code Contributors | ||
|
||
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. | ||
<a href="https://github.com/alanmcgovern/monotorrent/graphs/contributors"><img src="https://opencollective.com/monotorrent/contributors.svg?width=890&button=false" /></a> | ||
|
||
### Financial Contributors | ||
|
||
Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/monotorrent/contribute)] | ||
|
||
#### Individuals | ||
|
||
<a href="https://opencollective.com/monotorrent"><img src="https://opencollective.com/monotorrent/individuals.svg?width=890"></a> | ||
|
||
#### Organizations | ||
|
||
Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/monotorrent/contribute)] | ||
|
||
<a href="https://opencollective.com/monotorrent/organization/0/website"><img src="https://opencollective.com/monotorrent/organization/0/avatar.svg"></a> | ||
<a href="https://opencollective.com/monotorrent/organization/1/website"><img src="https://opencollective.com/monotorrent/organization/1/avatar.svg"></a> | ||
<a href="https://opencollective.com/monotorrent/organization/2/website"><img src="https://opencollective.com/monotorrent/organization/2/avatar.svg"></a> | ||
<a href="https://opencollective.com/monotorrent/organization/3/website"><img src="https://opencollective.com/monotorrent/organization/3/avatar.svg"></a> | ||
<a href="https://opencollective.com/monotorrent/organization/4/website"><img src="https://opencollective.com/monotorrent/organization/4/avatar.svg"></a> | ||
<a href="https://opencollective.com/monotorrent/organization/5/website"><img src="https://opencollective.com/monotorrent/organization/5/avatar.svg"></a> | ||
<a href="https://opencollective.com/monotorrent/organization/6/website"><img src="https://opencollective.com/monotorrent/organization/6/avatar.svg"></a> | ||
<a href="https://opencollective.com/monotorrent/organization/7/website"><img src="https://opencollective.com/monotorrent/organization/7/avatar.svg"></a> | ||
<a href="https://opencollective.com/monotorrent/organization/8/website"><img src="https://opencollective.com/monotorrent/organization/8/avatar.svg"></a> | ||
<a href="https://opencollective.com/monotorrent/organization/9/website"><img src="https://opencollective.com/monotorrent/organization/9/avatar.svg"></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alpha | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build" ToolsVersion="15.0"> | ||
|
||
<PropertyGroup> | ||
<CI Condition="'$(CI)' == '' and '$(TF_BUILD)' == 'true'">true</CI> | ||
<CI Condition="'$(CI)' == '' ">false</CI> | ||
|
||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Out Condition=" '$(Out)' == '' ">$(MSBuildThisFileDirectory)out</Out> | ||
|
||
<MSBuildCommonProperties>$(MSBuildCommonProperties);Deterministic=true</MSBuildCommonProperties> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<SolutionFile Include="src/MonoTorrent.Socks5.sln"> | ||
<Configuration>$(Configuration)</Configuration> | ||
</SolutionFile> | ||
<PackFile Include="src/MonoTorrent.Socks5/MonoTorrent.Socks5.csproj"> | ||
<Configuration>$(Configuration)</Configuration> | ||
</PackFile> | ||
</ItemGroup> | ||
|
||
<Target Name="Build" DependsOnTargets="$(BuildDependsOn)"> | ||
<Error Text="You have not restored the solution. Run "msbuild /restore" to restore and compile, or run "msbuild /t:Restore" if you just want to restore." | ||
Condition="! Exists ('src\MonoTorrent\obj\project.assets.json')" /> | ||
|
||
<MSBuild | ||
Projects="@(SolutionFile)" | ||
Properties="$(MSBuildCommonProperties);Configuration=%(SolutionFile.Configuration)" | ||
Targets="Build" | ||
/> | ||
</Target> | ||
|
||
<Target Name="Clean"> | ||
<MSBuild | ||
Projects="@(SolutionFile)" | ||
Properties="$(MSBuildCommonProperties);Configuration=%(SolutionFile.Configuration)" | ||
Targets="Clean" | ||
/> | ||
</Target> | ||
|
||
<Target Name="Pack"> | ||
<MakeDir Directories="$(Out)" /> | ||
<MSBuild | ||
Projects="@(PackFile)" | ||
Properties="$(MSBuildCommonProperties);Configuration=%(PackFile.Configuration);PackageOutputPath=$(Out)" | ||
Targets="Pack" | ||
/> | ||
|
||
</Target> | ||
|
||
<Target Name="Rebuild" DependsOnTargets="Clean;Build" /> | ||
|
||
<Target Name="Restore"> | ||
<MSBuild | ||
Projects="@(SolutionFile)" | ||
Properties="$(MSBuildCommonProperties);Configuration=%(SolutionFile.Configuration)" | ||
Targets="Restore" | ||
/> | ||
</Target> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
msbuild /restore /t:Pack /p:Configuration=Release |
Oops, something went wrong.