Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project maintenance updates #2763

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
]
},
"fantomas": {
"version": "5.0.5",
"version": "6.3.10",
"commands": [
"fantomas"
]
},
"fsdocs-tool": {
"version": "16.0.1",
"version": "19.1.0",
"commands": [
"fsdocs"
]
Expand All @@ -33,4 +33,4 @@
]
}
}
}
}
108 changes: 98 additions & 10 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,13 +1,101 @@
# EditorConfig is awesome:
http://EditorConfig.org

# top-most EditorConfig file
root = true
###############################
# Core EditorConfig Options #
###############################
# All files
[*] # Do not apply to all files not to break something
guidelines = 80 dashed, 100
# Either crlf | lf, default is system-dependent (when not specified at all)
# end_of_line=crlf
# Remove whitespace at the end of any line

# Code files
[*.{cs,csx,fs,fsi,fsx}]
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space # default=space
indent_size = 4 # default=4
charset = utf-8

# Project files and app specific XML files
[*.{csproj,fsproj,shproj,projitems,props,xaml}]
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

# XML configuration files
[{app.config,nuget.config,packages.config,web.config}]
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

# XML files
[*.xml]
trim_trailing_whitespace = false # do not trim as it affects CData
insert_final_newline = true
indent_style = space
indent_size = 2

# JSON and YAML files
[*.{json,yml,yaml}]
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

# Proto files
[*.proto]
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4

###############################
# F# Coding Conventions #
###############################
# filetypes that need to be formatted by Fantomas:
[*.{fs,fsx}]

# files to be ignored for Fantomas may go into this file, if present:
# .fantomasignore

# indentation size, default=space
# indent_style = space

# indentation size, default=4
# indent_size = 4

# line length before it gets broken down into multiple lines
# default 120
# max_line_length=120

# Either crlf | lf, default is system-dependent (when not specified at all)
# end_of_line=crlf

# false: let a = [1;2;3]
# true: let a = [ 1;2;3 ]
# default true
fsharp_space_around_delimiter=true

# breaks a single-line record declaration
# i.e. if this gets too wide: { X = 10; Y = 12 }
# default 40
fsharp_max_record_width=60

# breaks a record into one item per line if items exceed this number
# i.e. if set to 1, this will be on three lines: { X = 10; Y = 12 }
# requires fsharp_record_multiline_formatter=number_of_items to take effect
# default 1
fsharp_max_record_number_of_items=1

[*]
insert_final_newline = true
indent_style = space
indent_size = 4
# whether to use line-length (by counting chars) or items (by counting fields)
# for the record settings above
# either number_of_items or character_width
# default character_width
fsharp_record_multiline_formatter=character_width

[*.fsproj]
indent_size = 2
# set maximal number of consecutive blank lines to keep from original source
# it doesn't change number of new blank lines generated by Fantomas
fsharp_keep_max_number_of_blank_lines=2
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup .NET 6
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.301'
dotnet-version: '6.0.424'
- name: Restore dotnet tools
run: dotnet tool restore
- name: remove current fake runner tool
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup .NET 6
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.301'
dotnet-version: '6.0.424'
- name: Restore dotnet tools
run: dotnet tool restore
- name: remove current fake runner tool
Expand Down
Loading
Loading