Skip to content

Commit cdeae01

Browse files
committed
fix: incorrect comparison time after loading state
1 parent 1e1c9d6 commit cdeae01

File tree

6 files changed

+522
-113
lines changed

6 files changed

+522
-113
lines changed

.editorconfig

+338
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,338 @@
1+
root = true
2+
3+
[*.cs]
4+
indent_style = space
5+
indent_size = 4
6+
7+
# https://kent-boogaart.com/blog/editorconfig-reference-for-c-developers
8+
9+
csharp_indent_block_contents = true
10+
csharp_indent_case_contents = true
11+
csharp_indent_labels = no_change
12+
csharp_new_line_before_catch = false
13+
csharp_new_line_before_else = false
14+
csharp_new_line_before_finally = false
15+
csharp_new_line_before_members_in_anonymous_types = true
16+
csharp_new_line_before_members_in_object_initializers = false
17+
csharp_new_line_before_open_brace = none
18+
csharp_prefer_braces = true:suggestion
19+
csharp_prefer_simple_default_expression = true:warning
20+
csharp_preserve_single_line_statements = false
21+
csharp_style_conditional_delegate_call = true:warning
22+
csharp_style_expression_bodied_indexers = true:suggestion
23+
csharp_style_expression_bodied_operators = true:suggestion
24+
csharp_style_inlined_variable_declaration = true:warning
25+
csharp_style_pattern_matching_over_as_with_null_check = true:warning
26+
csharp_style_pattern_matching_over_is_with_cast_check = true:warning
27+
csharp_style_throw_expression = true:warning
28+
csharp_style_var_elsewhere = false:suggestion
29+
csharp_style_var_for_built_in_types = false:suggestion
30+
csharp_style_var_when_type_is_apparent = false:suggestion
31+
dotnet_style_coalesce_expression = true:warning
32+
dotnet_style_collection_initializer = true:suggestion
33+
dotnet_style_explicit_tuple_names = true:suggestion
34+
dotnet_style_null_propagation = true:suggestion
35+
dotnet_style_object_initializer = true:silent
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+
43+
# CS1591: Missing XML comment for publicly visible type or member
44+
45+
# ReSharper properties
46+
resharper_accessor_owner_body = accessors_with_expression_body
47+
resharper_autodetect_indent_settings = true
48+
resharper_braces_redundant = true
49+
resharper_cpp_max_line_length = 160
50+
resharper_csharp_empty_block_style = together_same_line
51+
resharper_csharp_max_line_length = 150
52+
resharper_fsharp_max_line_length = 160
53+
resharper_html_max_line_length = 160
54+
resharper_resx_max_line_length = 160
55+
resharper_shaderlab_max_line_length = 160
56+
resharper_show_autodetect_configure_formatting_tip = false
57+
resharper_use_indent_from_vs = false
58+
resharper_vb_max_line_length = 160
59+
resharper_xmldoc_max_line_length = 160
60+
resharper_xml_max_line_length = 160
61+
62+
# ReSharper inspection severities
63+
resharper_arrange_redundant_parentheses_highlighting = hint
64+
resharper_arrange_this_qualifier_highlighting = hint
65+
resharper_arrange_type_member_modifiers_highlighting = hint
66+
resharper_arrange_type_modifiers_highlighting = hint
67+
resharper_built_in_type_reference_style_for_member_access_highlighting = hint
68+
resharper_built_in_type_reference_style_highlighting = hint
69+
resharper_enforce_do_while_statement_braces_highlighting = hint
70+
resharper_enforce_fixed_statement_braces_highlighting = hint
71+
resharper_enforce_foreach_statement_braces_highlighting = hint
72+
resharper_enforce_for_statement_braces_highlighting = hint
73+
resharper_enforce_if_statement_braces_highlighting = hint
74+
resharper_enforce_lock_statement_braces_highlighting = hint
75+
resharper_enforce_using_statement_braces_highlighting = hint
76+
resharper_enforce_while_statement_braces_highlighting = hint
77+
resharper_inconsistent_naming_highlighting = none
78+
resharper_redundant_base_qualifier_highlighting = warning
79+
resharper_remove_redundant_braces_highlighting = hint
80+
resharper_suggest_var_or_type_built_in_types_highlighting = hint
81+
resharper_suggest_var_or_type_elsewhere_highlighting = hint
82+
resharper_suggest_var_or_type_simple_types_highlighting = hint
83+
resharper_unused_type_global_highlighting = warning
84+
resharper_web_config_module_not_resolved_highlighting = warning
85+
resharper_web_config_type_not_resolved_highlighting = warning
86+
resharper_web_config_wrong_module_highlighting = warning
87+
88+
# Microsoft .NET properties
89+
csharp_preferred_modifier_order = public, private, protected, internal, new, abstract, virtual, sealed, override, static, readonly, extern, unsafe, volatile, async:suggestion
90+
dotnet_naming_rule.private_constants_rule.severity = none
91+
dotnet_naming_rule.private_constants_rule.style = upper_camel_case_style
92+
dotnet_naming_rule.private_constants_rule.symbols = private_constants_symbols
93+
dotnet_naming_rule.private_instance_fields_rule.severity = none
94+
dotnet_naming_rule.private_instance_fields_rule.style = lower_camel_case_style
95+
dotnet_naming_rule.private_static_fields_rule.severity = none
96+
dotnet_naming_rule.private_static_fields_rule.style = lower_camel_case_style
97+
dotnet_naming_rule.private_static_readonly_rule.severity = none
98+
dotnet_naming_rule.private_static_readonly_rule.style = upper_camel_case_style
99+
dotnet_naming_style.lower_camel_case_style.capitalization = camel_case
100+
dotnet_naming_style.upper_camel_case_style.capitalization = pascal_case
101+
dotnet_naming_symbols.private_constants_symbols.applicable_accessibilities = private
102+
dotnet_naming_symbols.private_constants_symbols.applicable_kinds = field
103+
dotnet_naming_symbols.private_constants_symbols.required_modifiers = const
104+
dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:none
105+
dotnet_style_parentheses_in_other_binary_operators = never_if_unnecessary:none
106+
dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:none
107+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
108+
109+
[*.{appxmanifest, asax, ascx, aspx, axaml, build, cg, cginc, compute, cs, cshtml, dtd, fs, fsi, fsscript, fsx, hlsl, hlsli, hlslinc, master, ml, mli, nuspec, paml, razor, resw, resx, shader, skin, usf, ush, vb, xaml, xamlx, xoml, xsd}]
110+
indent_style = space
111+
indent_size = 4
112+
tab_width = 4
113+
114+
[*]
115+
charset = utf-8
116+
end_of_line = crlf
117+
indent_style = space
118+
indent_size = 4
119+
120+
# Standard properties
121+
max_line_length = 160
122+
123+
# ReSharper properties
124+
resharper_accessor_owner_body = expression_body
125+
resharper_apply_auto_detected_rules = false
126+
resharper_autodetect_indent_settings = true
127+
resharper_braces_redundant = true
128+
resharper_cpp_max_line_length = 160
129+
resharper_csharp_empty_block_style = together_same_line
130+
resharper_csharp_max_line_length = 150
131+
resharper_csharp_naming_rule.constants = AaBb
132+
resharper_csharp_naming_rule.event = AaBb
133+
resharper_csharp_naming_rule.interfaces = I + AaBb
134+
resharper_csharp_naming_rule.locals = aaBb
135+
resharper_csharp_naming_rule.local_constants = aaBb
136+
resharper_csharp_naming_rule.local_functions = AaBb
137+
resharper_csharp_naming_rule.method = AaBb
138+
resharper_csharp_naming_rule.parameters = aaBb
139+
resharper_csharp_naming_rule.private_constants = AaBb
140+
resharper_csharp_naming_rule.private_instance_fields = aaBb
141+
resharper_csharp_naming_rule.private_static_fields = aaBb
142+
resharper_csharp_naming_rule.private_static_readonly = AaBb
143+
resharper_csharp_naming_rule.property = AaBb
144+
resharper_csharp_naming_rule.public_fields = AaBb
145+
resharper_csharp_naming_rule.static_readonly = AaBb
146+
resharper_csharp_naming_rule.types_and_namespaces = AaBb
147+
resharper_csharp_naming_rule.type_parameters = T + AaBb
148+
resharper_fsharp_max_line_length = 160
149+
resharper_html_max_line_length = 160
150+
resharper_resx_max_line_length = 160
151+
resharper_resx_wrap_lines = false
152+
resharper_shaderlab_max_line_length = 160
153+
resharper_show_autodetect_configure_formatting_tip = false
154+
resharper_use_indent_from_vs = false
155+
resharper_vb_max_line_length = 160
156+
resharper_wrap_lines = true
157+
resharper_xmldoc_max_line_length = 160
158+
resharper_xml_max_line_length = 160
159+
160+
# Microsoft .NET properties
161+
csharp_new_line_before_catch = false
162+
csharp_new_line_before_else = false
163+
csharp_new_line_before_finally = false
164+
csharp_new_line_before_members_in_object_initializers = false
165+
csharp_new_line_before_open_brace = none
166+
csharp_preferred_modifier_order = public, private, protected, internal, new, abstract, virtual, sealed, override, static, readonly, extern, unsafe, volatile, async:suggestion
167+
csharp_prefer_braces = true:suggestion
168+
csharp_style_var_elsewhere = false:suggestion
169+
csharp_style_var_for_built_in_types = false:suggestion
170+
csharp_style_var_when_type_is_apparent = false:suggestion
171+
dotnet_naming_rule.constants_rule.severity = warning
172+
dotnet_naming_rule.constants_rule.style = upper_camel_case_style
173+
dotnet_naming_rule.constants_rule.symbols = constants_symbols
174+
dotnet_naming_rule.event_rule.severity = warning
175+
dotnet_naming_rule.event_rule.style = upper_camel_case_style
176+
dotnet_naming_rule.event_rule.symbols = event_symbols
177+
dotnet_naming_rule.interfaces_rule.severity = warning
178+
dotnet_naming_rule.interfaces_rule.style = i_upper_camel_case_style
179+
dotnet_naming_rule.interfaces_rule.symbols = interfaces_symbols
180+
dotnet_naming_rule.locals_rule.severity = warning
181+
dotnet_naming_rule.locals_rule.style = lower_camel_case_style
182+
dotnet_naming_rule.locals_rule.symbols = locals_symbols
183+
dotnet_naming_rule.local_constants_rule.severity = warning
184+
dotnet_naming_rule.local_constants_rule.style = lower_camel_case_style
185+
dotnet_naming_rule.local_constants_rule.symbols = local_constants_symbols
186+
dotnet_naming_rule.local_functions_rule.severity = warning
187+
dotnet_naming_rule.local_functions_rule.style = upper_camel_case_style
188+
dotnet_naming_rule.local_functions_rule.symbols = local_functions_symbols
189+
dotnet_naming_rule.method_rule.severity = warning
190+
dotnet_naming_rule.method_rule.style = upper_camel_case_style
191+
dotnet_naming_rule.method_rule.symbols = method_symbols
192+
dotnet_naming_rule.parameters_rule.severity = warning
193+
dotnet_naming_rule.parameters_rule.style = lower_camel_case_style
194+
dotnet_naming_rule.parameters_rule.symbols = parameters_symbols
195+
dotnet_naming_rule.private_constants_rule.severity = warning
196+
dotnet_naming_rule.private_constants_rule.style = upper_camel_case_style
197+
dotnet_naming_rule.private_constants_rule.symbols = private_constants_symbols
198+
dotnet_naming_rule.private_instance_fields_rule.severity = warning
199+
dotnet_naming_rule.private_instance_fields_rule.style = lower_camel_case_style
200+
dotnet_naming_rule.private_instance_fields_rule.symbols = private_instance_fields_symbols
201+
dotnet_naming_rule.private_instance_fields_rule_1.severity = none
202+
dotnet_naming_rule.private_instance_fields_rule_1.style = lower_camel_case_style
203+
dotnet_naming_rule.private_static_fields_rule.severity = warning
204+
dotnet_naming_rule.private_static_fields_rule.style = lower_camel_case_style
205+
dotnet_naming_rule.private_static_fields_rule.symbols = private_static_fields_symbols
206+
dotnet_naming_rule.private_static_fields_rule_1.severity = none
207+
dotnet_naming_rule.private_static_fields_rule_1.style = lower_camel_case_style
208+
dotnet_naming_rule.private_static_readonly_rule.severity = warning
209+
dotnet_naming_rule.private_static_readonly_rule.style = upper_camel_case_style
210+
dotnet_naming_rule.private_static_readonly_rule.symbols = private_static_readonly_symbols
211+
dotnet_naming_rule.private_static_readonly_rule_1.severity = none
212+
dotnet_naming_rule.private_static_readonly_rule_1.style = lower_camel_case_style
213+
dotnet_naming_rule.property_rule.severity = warning
214+
dotnet_naming_rule.property_rule.style = upper_camel_case_style
215+
dotnet_naming_rule.property_rule.symbols = property_symbols
216+
dotnet_naming_rule.public_fields_rule.severity = none
217+
dotnet_naming_rule.public_fields_rule.style = lower_camel_case_style
218+
dotnet_naming_rule.public_fields_rule_1.severity = warning
219+
dotnet_naming_rule.public_fields_rule_1.style = upper_camel_case_style
220+
dotnet_naming_rule.public_fields_rule_1.symbols = public_fields_symbols
221+
dotnet_naming_rule.static_readonly_rule.severity = none
222+
dotnet_naming_rule.static_readonly_rule.style = lower_camel_case_style
223+
dotnet_naming_rule.static_readonly_rule_1.severity = warning
224+
dotnet_naming_rule.static_readonly_rule_1.style = upper_camel_case_style
225+
dotnet_naming_rule.static_readonly_rule_1.symbols = static_readonly_symbols
226+
dotnet_naming_rule.types_and_namespaces_rule.severity = warning
227+
dotnet_naming_rule.types_and_namespaces_rule.style = upper_camel_case_style
228+
dotnet_naming_rule.types_and_namespaces_rule.symbols = types_and_namespaces_symbols
229+
dotnet_naming_rule.type_parameters_rule.severity = warning
230+
dotnet_naming_rule.type_parameters_rule.style = t_upper_camel_case_style
231+
dotnet_naming_rule.type_parameters_rule.symbols = type_parameters_symbols
232+
dotnet_naming_style.i_upper_camel_case_style.capitalization = pascal_case
233+
dotnet_naming_style.i_upper_camel_case_style.required_prefix = I
234+
dotnet_naming_style.lower_camel_case_style.capitalization = camel_case
235+
dotnet_naming_style.t_upper_camel_case_style.capitalization = pascal_case
236+
dotnet_naming_style.t_upper_camel_case_style.required_prefix = T
237+
dotnet_naming_style.upper_camel_case_style.capitalization = pascal_case
238+
dotnet_naming_symbols.constants_symbols.applicable_accessibilities = public, internal, protected, protected_internal, private_protected
239+
dotnet_naming_symbols.constants_symbols.applicable_kinds = field
240+
dotnet_naming_symbols.constants_symbols.required_modifiers = const
241+
dotnet_naming_symbols.event_symbols.applicable_accessibilities = *
242+
dotnet_naming_symbols.event_symbols.applicable_kinds = event
243+
dotnet_naming_symbols.interfaces_symbols.applicable_accessibilities = *
244+
dotnet_naming_symbols.interfaces_symbols.applicable_kinds = interface
245+
dotnet_naming_symbols.locals_symbols.applicable_accessibilities = *
246+
dotnet_naming_symbols.locals_symbols.applicable_kinds = local
247+
dotnet_naming_symbols.local_constants_symbols.applicable_accessibilities = *
248+
dotnet_naming_symbols.local_constants_symbols.applicable_kinds = local
249+
dotnet_naming_symbols.local_constants_symbols.required_modifiers = const
250+
dotnet_naming_symbols.local_functions_symbols.applicable_accessibilities = *
251+
dotnet_naming_symbols.local_functions_symbols.applicable_kinds = local_function
252+
dotnet_naming_symbols.method_symbols.applicable_accessibilities = *
253+
dotnet_naming_symbols.method_symbols.applicable_kinds = method
254+
dotnet_naming_symbols.parameters_symbols.applicable_accessibilities = *
255+
dotnet_naming_symbols.parameters_symbols.applicable_kinds = parameter
256+
dotnet_naming_symbols.private_constants_symbols.applicable_accessibilities = private
257+
dotnet_naming_symbols.private_constants_symbols.applicable_kinds = field
258+
dotnet_naming_symbols.private_constants_symbols.required_modifiers = const
259+
dotnet_naming_symbols.private_instance_fields_symbols.applicable_accessibilities = private
260+
dotnet_naming_symbols.private_instance_fields_symbols.applicable_kinds = field
261+
dotnet_naming_symbols.private_static_fields_symbols.applicable_accessibilities = private
262+
dotnet_naming_symbols.private_static_fields_symbols.applicable_kinds = field
263+
dotnet_naming_symbols.private_static_fields_symbols.required_modifiers = static
264+
dotnet_naming_symbols.private_static_readonly_symbols.applicable_accessibilities = private
265+
dotnet_naming_symbols.private_static_readonly_symbols.applicable_kinds = field
266+
dotnet_naming_symbols.private_static_readonly_symbols.required_modifiers = static, readonly
267+
dotnet_naming_symbols.property_symbols.applicable_accessibilities = *
268+
dotnet_naming_symbols.property_symbols.applicable_kinds = property
269+
dotnet_naming_symbols.public_fields_symbols.applicable_accessibilities = public, internal, protected, protected_internal, private_protected
270+
dotnet_naming_symbols.public_fields_symbols.applicable_kinds = field
271+
dotnet_naming_symbols.static_readonly_symbols.applicable_accessibilities = public, internal, protected, protected_internal, private_protected
272+
dotnet_naming_symbols.static_readonly_symbols.applicable_kinds = field
273+
dotnet_naming_symbols.static_readonly_symbols.required_modifiers = static, readonly
274+
dotnet_naming_symbols.types_and_namespaces_symbols.applicable_accessibilities = *
275+
dotnet_naming_symbols.types_and_namespaces_symbols.applicable_kinds = namespace, class, struct, enum, delegate
276+
dotnet_naming_symbols.type_parameters_symbols.applicable_accessibilities = *
277+
dotnet_naming_symbols.type_parameters_symbols.applicable_kinds = type_parameter
278+
dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:none
279+
dotnet_style_parentheses_in_other_binary_operators = never_if_unnecessary:none
280+
dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:none
281+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
282+
dotnet_style_predefined_type_for_member_access = true:suggestion
283+
dotnet_style_qualification_for_event = false:suggestion
284+
dotnet_style_qualification_for_field = false:suggestion
285+
dotnet_style_qualification_for_method = false:suggestion
286+
dotnet_style_qualification_for_property = false:suggestion
287+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
288+
289+
# ReSharper inspection severities
290+
resharper_arrange_redundant_parentheses_highlighting = hint
291+
resharper_arrange_this_qualifier_highlighting = hint
292+
resharper_arrange_type_member_modifiers_highlighting = hint
293+
resharper_arrange_type_modifiers_highlighting = hint
294+
resharper_built_in_type_reference_style_for_member_access_highlighting = hint
295+
resharper_built_in_type_reference_style_highlighting = hint
296+
resharper_convert_to_auto_property_with_private_setter_highlighting = none
297+
resharper_enforce_do_while_statement_braces_highlighting = hint
298+
resharper_enforce_fixed_statement_braces_highlighting = hint
299+
resharper_enforce_foreach_statement_braces_highlighting = hint
300+
resharper_enforce_for_statement_braces_highlighting = hint
301+
resharper_enforce_if_statement_braces_highlighting = hint
302+
resharper_enforce_lock_statement_braces_highlighting = hint
303+
resharper_enforce_using_statement_braces_highlighting = hint
304+
resharper_enforce_while_statement_braces_highlighting = hint
305+
resharper_invert_if_highlighting = none
306+
resharper_redundant_base_qualifier_highlighting = warning
307+
resharper_redundant_if_else_block_highlighting = none
308+
resharper_remove_redundant_braces_highlighting = hint
309+
resharper_suggest_var_or_type_built_in_types_highlighting = hint
310+
resharper_suggest_var_or_type_elsewhere_highlighting = hint
311+
resharper_suggest_var_or_type_simple_types_highlighting = hint
312+
resharper_unused_type_global_highlighting = warning
313+
resharper_web_config_module_not_resolved_highlighting = warning
314+
resharper_web_config_type_not_resolved_highlighting = warning
315+
resharper_web_config_wrong_module_highlighting = warning
316+
insert_final_newline = false
317+
318+
[{*.yaml, *.yml}]
319+
indent_style = space
320+
indent_size = 2
321+
322+
[{*.yaml, *.yml}]
323+
indent_style = space
324+
indent_size = 2
325+
326+
[*.{appxmanifest, asax, ascx, aspx, axaml, build, cg, cginc, compute, cs, cshtml, dtd, fs, fsi, fsscript, fsx, hlsl, hlsli, hlslinc, master, ml, mli, nuspec, paml, razor, resw, resx, shader, skin, usf, ush, vb, xaml, xamlx, xoml, xsd}]
327+
indent_style = space
328+
indent_size = 4
329+
tab_width = 4
330+
331+
[{*.yaml, *.yml}]
332+
indent_style = space
333+
indent_size = 2
334+
335+
[*.{appxmanifest, asax, ascx, aspx, axaml, build, cg, cginc, compute, cs, cshtml, dtd, fs, fsi, fsscript, fsx, hlsl, hlsli, hlslinc, master, ml, mli, nuspec, paml, razor, resw, resx, shader, skin, usf, ush, vb, xaml, xamlx, xoml, xsd}]
336+
indent_style = space
337+
indent_size = 4
338+
tab_width = 4

0 commit comments

Comments
 (0)