2022-05-06 18:56:57 +03:00
|
|
|
root = true
|
|
|
|
|
2022-05-30 17:58:30 +03:00
|
|
|
# max_line_length is set to 140. At some point we will reduce it to 120 for as many files as reasonable.
|
2022-05-06 18:56:57 +03:00
|
|
|
[*.fs]
|
2022-05-20 00:45:51 +03:00
|
|
|
max_line_length=140
|
2022-05-06 18:56:57 +03:00
|
|
|
fsharp_newline_between_type_definition_and_members=true
|
2022-05-30 17:58:30 +03:00
|
|
|
fsharp_max_function_binding_width=40
|
|
|
|
fsharp_max_if_then_else_short_width=60
|
2022-05-18 22:08:57 +03:00
|
|
|
fsharp_max_infix_operator_expression=80
|
|
|
|
fsharp_max_array_or_list_width=80
|
|
|
|
fsharp_max_array_or_list_number_of_items=5
|
|
|
|
fsharp_max_dot_get_expression_width=80
|
|
|
|
fsharp_multiline_block_brackets_on_same_column=true
|
|
|
|
fsharp_keep_max_number_of_blank_lines=1
|
2022-05-06 18:56:57 +03:00
|
|
|
|
|
|
|
[*.fsi]
|
|
|
|
fsharp_newline_between_type_definition_and_members=true
|
2022-05-18 22:08:57 +03:00
|
|
|
fsharp_keep_max_number_of_blank_lines=1
|
2022-05-30 17:58:30 +03:00
|
|
|
|
|
|
|
# These files contains many imperative if-then expressions which are not clearer on one line
|
|
|
|
# Reducing fsharp_max_if_then_else_short_width back to its default formats these over multiple lines.
|
|
|
|
[src/FSharp.Build/*.fs]
|
|
|
|
fsharp_max_if_then_else_short_width=40
|
|
|
|
|
|
|
|
# This file contains a long list of one-line function definitions. Increasing
|
|
|
|
# fsharp_max_function_binding_width formats these over a single line.
|
|
|
|
[src/Compiler/Driver/CompilerDiagnostics.fs]
|
|
|
|
fsharp_max_function_binding_width=70
|
2022-06-08 10:56:41 +03:00
|
|
|
|
|
|
|
# This file contains long specifications of navigation items
|
|
|
|
[src/Compiler/Service/ServiceStructure.fs]
|
|
|
|
fsharp_max_value_binding_width=100
|
|
|
|
|
|
|
|
# This file contains long specifications of navigation items
|
|
|
|
[src/Compiler/Service/ServiceNavigation.fs]
|
|
|
|
max_line_length=170
|
|
|
|
fsharp_max_value_binding_width=120
|
|
|
|
|
|
|
|
# This file contains long calls with explicitly named arguments
|
|
|
|
[src/Compiler/Service/service.fs]
|
|
|
|
max_line_length=150
|
|
|
|
fsharp_max_value_binding_width=100
|