Skip to content

Commit dc68648

Browse files
committed
Add source code formatting with fantomas
1 parent d7fd2f9 commit dc68648

File tree

4 files changed

+523
-265
lines changed

4 files changed

+523
-265
lines changed

.config/dotnet-tools.json

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
"commands": [
2020
"fsdocs"
2121
]
22+
},
23+
"fantomas-tool": {
24+
"version": "4.5.8",
25+
"commands": [
26+
"fantomas"
27+
]
2228
}
2329
}
2430
}

.editorconfig

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[*.fs]
2+
indent_size=4
3+
max_line_length=120
4+
fsharp_semicolon_at_end_of_line=false
5+
fsharp_space_before_parameter=true
6+
fsharp_space_before_lowercase_invocation=true
7+
fsharp_space_before_uppercase_invocation=false
8+
fsharp_space_before_class_constructor=false
9+
fsharp_space_before_member=false
10+
fsharp_space_before_colon=false
11+
fsharp_space_after_comma=true
12+
fsharp_space_before_semicolon=false
13+
fsharp_space_after_semicolon=true
14+
fsharp_indent_on_try_with=false
15+
fsharp_space_around_delimiter=true
16+
fsharp_max_if_then_else_short_width=40
17+
fsharp_max_infix_operator_expression=120
18+
fsharp_max_record_width=40
19+
fsharp_max_record_number_of_items=1
20+
fsharp_record_multiline_formatter=character_width
21+
fsharp_max_array_or_list_width=40
22+
fsharp_max_array_or_list_number_of_items=1
23+
fsharp_array_or_list_multiline_formatter=character_width
24+
fsharp_max_value_binding_width=40
25+
fsharp_max_function_binding_width=40
26+
fsharp_max_dot_get_expression_width=50
27+
fsharp_multiline_block_brackets_on_same_column=true
28+
fsharp_newline_between_type_definition_and_members=false
29+
fsharp_keep_if_then_in_same_line=false
30+
fsharp_max_elmish_width=40
31+
fsharp_single_argument_web_mode=false
32+
fsharp_align_function_signature_to_indentation=false
33+
fsharp_alternative_long_member_definitions=false
34+
fsharp_multi_line_lambda_closing_newline=false
35+
fsharp_disable_elmish_syntax=false
36+
fsharp_keep_indent_in_branch=false
37+
fsharp_blank_lines_around_nested_multiline_expressions=true
38+
fsharp_bar_before_discriminated_union_declaration=false
39+
fsharp_strict_mode=false

Plotly.NET.sln

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 17
4-
VisualStudioVersion = 17.0.31903.59
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.31702.278
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "project", "project", "{BF60BC93-E09B-4E5F-9D85-95A519479D54}"
77
ProjectSection(SolutionItems) = preProject
@@ -141,6 +141,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Plotly.NET.Tests.CSharp", "
141141
EndProject
142142
Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Plotly.NET.ImageExport.Tests", "tests\Plotly.NET.ImageExport.Tests\Plotly.NET.ImageExport.Tests.fsproj", "{55A461C3-8018-4020-B16E-D6005BDFCAED}"
143143
EndProject
144+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8E913083-86D3-4C55-B260-2AC4AC21B2D9}"
145+
ProjectSection(SolutionItems) = preProject
146+
.editorconfig = .editorconfig
147+
EndProjectSection
148+
EndProject
144149
Global
145150
GlobalSection(SolutionConfigurationPlatforms) = preSolution
146151
Debug|Any CPU = Debug|Any CPU

0 commit comments

Comments
 (0)