Skip to content

Commit def90fc

Browse files
authored
Merge pull request #12 from AltecSystems/dev
Перемещение сообщения об успешной выгрузки. Добавлен editorconfig. Удалена поддержка rest api для загрузки моделей с Revit server.
2 parents a9d489f + 6fe9ec3 commit def90fc

33 files changed

Lines changed: 453 additions & 449 deletions

.editorconfig

Lines changed: 331 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,331 @@
1+
# EditorConfig is awesome:http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Don't use tabs for indentation.
7+
[*]
8+
indent_style = space
9+
# (Please don't specify an indent_size here; that has too many unintended consequences.)
10+
11+
# Code files
12+
[*.{cs,csx,vb,vbx}]
13+
indent_size = 4
14+
15+
# Xml project files
16+
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
17+
indent_size = 2
18+
19+
# Xml config files
20+
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
21+
indent_size = 2
22+
23+
# JSON files
24+
[*.json]
25+
indent_size = 2
26+
27+
[*.{xaml,xml}]
28+
indent_size = 2
29+
insert_final_newline = true
30+
trim_trailing_whitespace = true
31+
end_of_line = crlf
32+
33+
[*.{cs,vb}]
34+
35+
# IDE0055: Fix formatting
36+
dotnet_diagnostic.IDE0055.severity = warning
37+
38+
# Sort using and Import directives with System.* appearing first
39+
dotnet_sort_system_directives_first = true
40+
dotnet_separate_import_directive_groups = false
41+
42+
# Avoid "this." and "Me." if not necessary
43+
dotnet_style_qualification_for_field = false:error
44+
dotnet_style_qualification_for_property = false:error
45+
dotnet_style_qualification_for_method = false:error
46+
dotnet_style_qualification_for_event = false:error
47+
48+
# Use language keywords instead of framework type names for type references
49+
dotnet_style_predefined_type_for_locals_parameters_members = true:error
50+
dotnet_style_predefined_type_for_member_access = true:error
51+
52+
# Suggest more modern language features when available
53+
dotnet_style_object_initializer = true:suggestion
54+
dotnet_style_collection_initializer = true:suggestion
55+
dotnet_style_coalesce_expression = true:suggestion
56+
dotnet_style_null_propagation = true:suggestion
57+
dotnet_style_explicit_tuple_names = true:suggestion
58+
59+
60+
#################################### VVV #######################################
61+
# Expression-level preferences
62+
dotnet_style_prefer_auto_properties = true:suggestion
63+
dotnet_style_prefer_compound_assignment = true:warning
64+
dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
65+
dotnet_style_prefer_conditional_expression_over_return = true:suggestion
66+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
67+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
68+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
69+
dotnet_style_prefer_simplified_interpolation = true:suggestion
70+
71+
# Parentheses preferences
72+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:error
73+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:error
74+
# TODO: Разобраться с этим позже.
75+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
76+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:error
77+
78+
# Modifier preferences
79+
# IDE0036: Order modifiers
80+
dotnet_diagnostic.IDE0036.severity = error
81+
dotnet_style_require_accessibility_modifiers = always:error
82+
dotnet_style_readonly_field = true:warning
83+
84+
# Parameter preferences
85+
dotnet_code_quality_unused_parameters = all:warning
86+
#####################################################################################
87+
88+
################################## NEW VVV ####################################
89+
# Whitespace options
90+
dotnet_style_allow_multiple_blank_lines_experimental = true
91+
dotnet_style_allow_statement_immediately_after_block_experimental = true
92+
93+
# Non-private static fields are PascalCase
94+
dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.severity = suggestion
95+
dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.symbols = non_private_static_fields
96+
dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.style = non_private_static_field_style
97+
98+
dotnet_naming_symbols.non_private_static_fields.applicable_kinds = field
99+
dotnet_naming_symbols.non_private_static_fields.applicable_accessibilities = public, protected, internal, protected_internal, private_protected
100+
dotnet_naming_symbols.non_private_static_fields.required_modifiers = static
101+
102+
dotnet_naming_style.non_private_static_field_style.capitalization = pascal_case
103+
104+
# Non-private readonly fields are PascalCase
105+
dotnet_naming_rule.non_private_readonly_fields_should_be_pascal_case.severity = suggestion
106+
dotnet_naming_rule.non_private_readonly_fields_should_be_pascal_case.symbols = non_private_readonly_fields
107+
dotnet_naming_rule.non_private_readonly_fields_should_be_pascal_case.style = non_private_readonly_field_style
108+
109+
dotnet_naming_symbols.non_private_readonly_fields.applicable_kinds = field
110+
dotnet_naming_symbols.non_private_readonly_fields.applicable_accessibilities = public, protected, internal, protected_internal, private_protected
111+
dotnet_naming_symbols.non_private_readonly_fields.required_modifiers = readonly
112+
113+
dotnet_naming_style.non_private_readonly_field_style.capitalization = pascal_case
114+
115+
# Constants are PascalCase
116+
dotnet_naming_rule.constants_should_be_pascal_case.severity = suggestion
117+
dotnet_naming_rule.constants_should_be_pascal_case.symbols = constants
118+
dotnet_naming_rule.constants_should_be_pascal_case.style = constant_style
119+
120+
dotnet_naming_symbols.constants.applicable_kinds = field, local
121+
dotnet_naming_symbols.constants.required_modifiers = const
122+
123+
dotnet_naming_style.constant_style.capitalization = pascal_case
124+
125+
# Static fields are camelCase and start with s_
126+
dotnet_naming_rule.static_fields_should_be_camel_case.severity = suggestion
127+
dotnet_naming_rule.static_fields_should_be_camel_case.symbols = static_fields
128+
dotnet_naming_rule.static_fields_should_be_camel_case.style = static_field_style
129+
130+
dotnet_naming_symbols.static_fields.applicable_kinds = field
131+
dotnet_naming_symbols.static_fields.required_modifiers = static
132+
133+
dotnet_naming_style.static_field_style.capitalization = camel_case
134+
dotnet_naming_style.static_field_style.required_prefix = удоли_
135+
136+
# Instance fields are camelCase and start with _
137+
dotnet_naming_rule.instance_fields_should_be_camel_case.severity = suggestion
138+
dotnet_naming_rule.instance_fields_should_be_camel_case.symbols = instance_fields
139+
dotnet_naming_rule.instance_fields_should_be_camel_case.style = instance_field_style
140+
141+
dotnet_naming_symbols.instance_fields.applicable_kinds = field
142+
143+
dotnet_naming_style.instance_field_style.capitalization = camel_case
144+
dotnet_naming_style.instance_field_style.required_prefix = _
145+
146+
# Locals and parameters are camelCase
147+
dotnet_naming_rule.locals_should_be_camel_case.severity = suggestion
148+
dotnet_naming_rule.locals_should_be_camel_case.symbols = locals_and_parameters
149+
dotnet_naming_rule.locals_should_be_camel_case.style = camel_case_style
150+
151+
dotnet_naming_symbols.locals_and_parameters.applicable_kinds = parameter, local
152+
153+
dotnet_naming_style.camel_case_style.capitalization = camel_case
154+
155+
# Local functions are PascalCase
156+
dotnet_naming_rule.local_functions_should_be_pascal_case.severity = suggestion
157+
dotnet_naming_rule.local_functions_should_be_pascal_case.symbols = local_functions
158+
dotnet_naming_rule.local_functions_should_be_pascal_case.style = local_function_style
159+
160+
dotnet_naming_symbols.local_functions.applicable_kinds = local_function
161+
162+
dotnet_naming_style.local_function_style.capitalization = pascal_case
163+
164+
# By default, name items with PascalCase
165+
dotnet_naming_rule.members_should_be_pascal_case.severity = suggestion
166+
dotnet_naming_rule.members_should_be_pascal_case.symbols = all_members
167+
dotnet_naming_rule.members_should_be_pascal_case.style = pascal_case_style
168+
169+
dotnet_naming_symbols.all_members.applicable_kinds = *
170+
171+
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
172+
173+
# error RS2008: Enable analyzer release tracking for the analyzer project containing rule '{0}'
174+
dotnet_diagnostic.RS2008.severity = none
175+
###############################################################################
176+
177+
# CSharp code style settings:
178+
[*.cs]
179+
# Newline settings
180+
csharp_new_line_before_open_brace = all
181+
csharp_new_line_before_else = true
182+
csharp_new_line_before_catch = true
183+
csharp_new_line_before_finally = true
184+
csharp_new_line_before_members_in_object_initializers = true
185+
csharp_new_line_before_members_in_anonymous_types = true
186+
csharp_new_line_between_query_expression_clauses = true
187+
188+
# Indentation preferences
189+
csharp_indent_block_contents = true
190+
csharp_indent_braces = false
191+
csharp_indent_case_contents = true
192+
csharp_indent_case_contents_when_block = false
193+
csharp_indent_switch_labels = true
194+
csharp_indent_labels = no_change
195+
196+
# Whitespace options
197+
csharp_style_allow_embedded_statements_on_same_line_experimental = false
198+
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false
199+
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false
200+
201+
# Prefer "var"
202+
# csharp_style_var_for_built_in_types = true:silent
203+
# csharp_style_var_when_type_is_apparent = true:silent
204+
# csharp_style_var_elsewhere = true:silent
205+
206+
# Prefer method-like constructs to have a block body, except for lambdas
207+
csharp_style_expression_bodied_methods = false:suggestion
208+
csharp_style_expression_bodied_constructors = false:warning
209+
csharp_style_expression_bodied_operators = false:warning
210+
csharp_style_expression_bodied_local_functions = when_on_single_line:warning
211+
csharp_style_expression_bodied_lambdas = when_on_single_line:warning
212+
csharp_style_expression_bodied_properties = when_on_single_line:warning
213+
csharp_style_expression_bodied_indexers = false:warning
214+
csharp_style_expression_bodied_accessors = when_on_single_line:warning
215+
216+
# Suggest more modern language features when available
217+
csharp_style_pattern_matching_over_as_with_null_check = true:error
218+
csharp_style_pattern_matching_over_is_with_cast_check = true:error
219+
csharp_style_inlined_variable_declaration = true:error
220+
csharp_style_throw_expression = true:silent
221+
csharp_style_conditional_delegate_call = true:warning
222+
223+
# Space preferences
224+
csharp_space_after_cast = false
225+
csharp_space_after_colon_in_inheritance_clause = true
226+
csharp_space_after_comma = true
227+
csharp_space_after_dot = false
228+
csharp_space_after_keywords_in_control_flow_statements = true
229+
csharp_space_after_semicolon_in_for_statement = true
230+
csharp_space_around_binary_operators = before_and_after
231+
csharp_space_around_declaration_statements = false
232+
csharp_space_before_colon_in_inheritance_clause = true
233+
csharp_space_before_comma = false
234+
csharp_space_before_dot = false
235+
csharp_space_before_open_square_brackets = false
236+
csharp_space_before_semicolon_in_for_statement = false
237+
csharp_space_between_empty_square_brackets = false
238+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
239+
csharp_space_between_method_call_name_and_opening_parenthesis = false
240+
csharp_space_between_method_call_parameter_list_parentheses = false
241+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
242+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
243+
csharp_space_between_method_declaration_parameter_list_parentheses = false
244+
csharp_space_between_parentheses = false
245+
csharp_space_between_square_brackets = false
246+
247+
# Blocks are allowed
248+
csharp_prefer_braces = true:error
249+
csharp_preserve_single_line_blocks = true
250+
csharp_preserve_single_line_statements = false
251+
252+
## нет у Roslyn ##
253+
csharp_prefer_static_local_function = true:none
254+
255+
# TODO: погуглить
256+
csharp_prefer_simple_using_statement = true:silent
257+
258+
# Expression-level preferences
259+
csharp_style_unused_value_assignment_preference = discard_variable:warning
260+
csharp_prefer_simple_default_expression = true:warning
261+
csharp_style_deconstructed_variable_declaration = true:warning
262+
csharp_style_pattern_local_over_anonymous_function = true:suggestion
263+
csharp_style_prefer_index_operator = true:silent
264+
csharp_style_prefer_switch_expression = true:none
265+
csharp_style_prefer_range_operator = true:silent
266+
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
267+
268+
# 'using' directive preferences
269+
csharp_using_directive_placement = outside_namespace:error
270+
271+
272+
### Configuration for IDE code style by diagnostic IDs ###
273+
[*.{cs,vb}]
274+
275+
# CA1822: Mark members as static
276+
dotnet_diagnostic.CA1822.severity = silent
277+
278+
# dotnet_style_allow_multiple_blank_lines_experimental
279+
dotnet_diagnostic.IDE2000.severity = warning
280+
281+
# csharp_style_allow_embedded_statements_on_same_line_experimental
282+
dotnet_diagnostic.IDE2001.severity = warning
283+
284+
# csharp_style_allow_blank_lines_between_consecutive_braces_experimental
285+
dotnet_diagnostic.IDE2002.severity = warning
286+
287+
# dotnet_style_allow_statement_immediately_after_block_experimental
288+
dotnet_diagnostic.IDE2003.severity = none
289+
290+
# csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental
291+
dotnet_diagnostic.IDE2004.severity = warning
292+
293+
# ReSharper
294+
295+
# https://www.jetbrains.com/help/resharper/EditorConfig_CSHARP_LineBreaksPageSchema.html
296+
resharper_csharp_keep_user_linebreaks = false
297+
298+
# Arrangement of Initializers
299+
resharper_csharp_keep_existing_initializer_arrangement = true
300+
resharper_csharp_place_simple_initializer_on_single_line = true
301+
resharper_csharp_max_initializer_elements_on_line = 5
302+
resharper_csharp_wrap_object_and_collection_initializer_style = chop_if_long
303+
resharper_csharp_wrap_array_initializer_style = wrap_if_long
304+
305+
# ReSharper space
306+
resharper_space_within_single_line_array_initializer_braces = true
307+
308+
# ReSharper align and wrap
309+
resharper_csharp_keep_existing_attribute_arrangement = false
310+
resharper_csharp_place_type_attribute_on_same_line = never
311+
resharper_csharp_place_method_attribute_on_same_line = never
312+
resharper_csharp_place_accessorholder_attribute_on_same_line = never
313+
resharper_csharp_place_accessor_attribute_on_same_line = never
314+
resharper_csharp_place_field_attribute_on_same_line = never
315+
316+
# ReSharper align and wrap
317+
resharper_keep_existing_initializer_arrangement = false
318+
resharper_keep_existing_invocation_parens_arrangement = false
319+
resharper_keep_existing_linebreaks = false
320+
resharper_max_formal_parameters_on_line = 5
321+
resharper_max_initializer_elements_on_line = 5
322+
323+
resharper_align_linq_query = true
324+
resharper_align_multiline_argument = true
325+
resharper_align_multiline_extends_list = true
326+
resharper_align_multiline_parameter = true
327+
resharper_align_tuple_components = true
328+
329+
resharper_csharp_wrap_arguments_style = chop_if_long
330+
resharper_csharp_wrap_parameters_style = chop_if_long
331+
resharper_wrap_chained_method_calls = chop_if_long

0 commit comments

Comments
 (0)