Skip to content

Commit ed53248

Browse files
author
Mux
committed
initial commit
0 parents  commit ed53248

240 files changed

Lines changed: 19697 additions & 0 deletions

File tree

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: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
[*]
2+
indent_style = space
3+
indent_size = 4
4+
tab_width = 4
5+
trim_trailing_whitespace = true
6+
insert_final_newline = true
7+
charset = utf-8
8+
end_of_line = crlf
9+
10+
resharper_csharp_brace_style = next_line
11+
resharper_csharp_braces_for_foreach = not_required
12+
resharper_csharp_braces_for_for = not_required
13+
resharper_csharp_braces_for_while = not_required
14+
15+
# Microsoft .NET properties
16+
csharp_new_line_before_members_in_object_initializers = false
17+
csharp_preferred_modifier_order = public, private, protected, internal, file, new, static, abstract, virtual, sealed, readonly, override, extern, unsafe, volatile, async, required:suggestion
18+
csharp_style_prefer_utf8_string_literals = true:suggestion
19+
csharp_style_var_elsewhere = true:suggestion
20+
csharp_style_var_for_built_in_types = true:suggestion
21+
csharp_style_var_when_type_is_apparent = true:suggestion
22+
dotnet_naming_rule.unity_serialized_field_rule.import_to_resharper = True
23+
dotnet_naming_rule.unity_serialized_field_rule.resharper_description = Unity serialized field
24+
dotnet_naming_rule.unity_serialized_field_rule.resharper_guid = 5f0fdb63-c892-4d2c-9324-15c80b22a7ef
25+
dotnet_naming_rule.unity_serialized_field_rule.severity = warning
26+
dotnet_naming_rule.unity_serialized_field_rule.style = lower_camel_case_style
27+
dotnet_naming_rule.unity_serialized_field_rule.symbols = unity_serialized_field_symbols
28+
dotnet_naming_style.lower_camel_case_style.capitalization = camel_case
29+
dotnet_naming_symbols.unity_serialized_field_symbols.applicable_accessibilities = *
30+
dotnet_naming_symbols.unity_serialized_field_symbols.applicable_kinds =
31+
dotnet_naming_symbols.unity_serialized_field_symbols.resharper_applicable_kinds = unity_serialised_field
32+
dotnet_naming_symbols.unity_serialized_field_symbols.resharper_required_modifiers = instance
33+
dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:none
34+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:none
35+
dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:none
36+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
37+
dotnet_style_predefined_type_for_member_access = true:suggestion
38+
dotnet_style_qualification_for_event = false:suggestion
39+
dotnet_style_qualification_for_field = false:suggestion
40+
dotnet_style_qualification_for_method = false:suggestion
41+
dotnet_style_qualification_for_property = false:suggestion
42+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
43+
44+
# ReSharper properties
45+
resharper_autodetect_indent_settings = true
46+
resharper_formatter_off_tag = @formatter:off
47+
resharper_formatter_on_tag = @formatter:on
48+
resharper_formatter_tags_enabled = true
49+
resharper_no_indent_inside_if_element_longer_than = 2147483647
50+
resharper_trailing_comma_in_multiline_lists = true
51+
resharper_use_indent_from_vs = false
52+
53+
# ReSharper inspection severities
54+
resharper_arrange_redundant_parentheses_highlighting = hint
55+
resharper_arrange_this_qualifier_highlighting = hint
56+
resharper_arrange_type_member_modifiers_highlighting = hint
57+
resharper_arrange_type_modifiers_highlighting = hint
58+
resharper_built_in_type_reference_style_for_member_access_highlighting = hint
59+
resharper_built_in_type_reference_style_highlighting = hint
60+
resharper_mvc_action_not_resolved_highlighting = warning
61+
resharper_mvc_area_not_resolved_highlighting = warning
62+
resharper_mvc_controller_not_resolved_highlighting = warning
63+
resharper_mvc_masterpage_not_resolved_highlighting = warning
64+
resharper_mvc_partial_view_not_resolved_highlighting = warning
65+
resharper_mvc_template_not_resolved_highlighting = warning
66+
resharper_mvc_view_component_not_resolved_highlighting = warning
67+
resharper_mvc_view_component_view_not_resolved_highlighting = warning
68+
resharper_mvc_view_not_resolved_highlighting = warning
69+
resharper_razor_assembly_not_resolved_highlighting = warning
70+
resharper_redundant_base_qualifier_highlighting = warning
71+
resharper_suggest_var_or_type_built_in_types_highlighting = hint
72+
resharper_suggest_var_or_type_elsewhere_highlighting = hint
73+
resharper_suggest_var_or_type_simple_types_highlighting = hint
74+
resharper_unnecessary_whitespace_highlighting = suggestion
75+
resharper_web_config_module_not_resolved_highlighting = warning
76+
resharper_web_config_type_not_resolved_highlighting = warning
77+
resharper_web_config_wrong_module_highlighting = warning
78+
79+
[{*.json,*.jsonc,*.yml,*.yaml}]
80+
indent_style = space
81+
indent_size = 2
82+
83+
[{*.proto}]
84+
indent_style = tab
85+
indent_size = 1

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
MutagenSdk/Proto/**/*.proto linguist-generated=true

.github/workflows/ci.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build-and-test:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 20
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Setup dotnet
19+
uses: actions/setup-dotnet@v4
20+
with:
21+
dotnet-version: 8.0.x
22+
23+
- name: Restore
24+
run: dotnet restore Coder.Desktop.sln
25+
26+
- name: Build Avalonia app
27+
run: dotnet build App.Avalonia/App.Avalonia.csproj -c Release --no-restore
28+
29+
- name: Build VPN service
30+
run: dotnet build Vpn.Service/Vpn.Service.csproj -c Release --no-restore
31+
32+
- name: Run tests
33+
run: |
34+
dotnet test Tests.CoderSdk/Tests.CoderSdk.csproj --no-restore -v q
35+
dotnet test Tests.Vpn.Proto/Tests.Vpn.Proto.csproj --no-restore -v q
36+
dotnet test Tests.Vpn/Tests.Vpn.csproj --no-restore -v q
37+
dotnet test Tests.Vpn.Service/Tests.Vpn.Service.csproj --no-restore -v q

0 commit comments

Comments
 (0)