Skip to content

Commit b23aa22

Browse files
Merge pull request #286 from SixLabors/js/vnext
Update to .NET 6 and ImageSharp v3.x
2 parents b319910 + ae40bad commit b23aa22

File tree

294 files changed

+28046
-28149
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

294 files changed

+28046
-28149
lines changed

.editorconfig

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Version: 2.1.0 (Using https://semver.org/)
2-
# Updated: 2021-03-03
1+
# Version: 4.1.1 (Using https://semver.org/)
2+
# Updated: 2022-05-23
33
# See https://github.com/RehanSaeed/EditorConfig/releases for release notes.
44
# See https://github.com/RehanSaeed/EditorConfig for updates to this file.
55
# See http://EditorConfig.org for more information about .editorconfig files.
@@ -49,11 +49,11 @@ indent_size = 2
4949
indent_size = 2
5050

5151
# Markdown Files
52-
[*.md]
52+
[*.{md,mdx}]
5353
trim_trailing_whitespace = false
5454

5555
# Web Files
56-
[*.{htm,html,js,jsm,ts,tsx,css,sass,scss,less,svg,vue}]
56+
[*.{htm,html,js,jsm,ts,tsx,cjs,cts,ctsx,mjs,mts,mtsx,css,sass,scss,less,pcss,svg,vue}]
5757
indent_size = 2
5858

5959
# Batch Files
@@ -75,7 +75,7 @@ indent_style = tab
7575

7676
[*.{cs,csx,cake,vb,vbx}]
7777
# Default Severity for all .NET Code Style rules below
78-
dotnet_analyzer_diagnostic.category-style.severity = warning
78+
dotnet_analyzer_diagnostic.severity = warning
7979

8080
##########################################
8181
# Language Rules
@@ -122,20 +122,21 @@ dotnet_style_coalesce_expression = true:warning
122122
dotnet_style_null_propagation = true:warning
123123
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
124124
# File header preferences
125-
file_header_template = Copyright (c) Six Labors.\nLicensed under the Apache License, Version 2.0.
125+
file_header_template = Copyright (c) Six Labors.\nLicensed under the Six Labors Split License.
126126
# SA1636: File header copyright text should match
127127
# Justification: .editorconfig supports file headers. If this is changed to a value other than "none", a stylecop.json file will need to added to the project.
128128
# dotnet_diagnostic.SA1636.severity = none
129129

130130
# Undocumented
131-
dotnet_style_operator_placement_when_wrapping = end_of_line
131+
dotnet_style_operator_placement_when_wrapping = end_of_line:warning
132+
csharp_style_prefer_null_check_over_type_check = true:warning
132133

133134
# C# Style Rules
134135
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/language-rules#c-style-rules
135136
[*.{cs,csx,cake}]
136137
# 'var' preferences
137-
csharp_style_var_for_built_in_types = never
138-
csharp_style_var_when_type_is_apparent = true:warning
138+
csharp_style_var_for_built_in_types = false:warning
139+
csharp_style_var_when_type_is_apparent = false:warning
139140
csharp_style_var_elsewhere = false:warning
140141
# Expression-bodied members
141142
csharp_style_expression_bodied_methods = true:warning
@@ -200,12 +201,15 @@ dotnet_diagnostic.IDE0059.severity = suggestion
200201
# Organize using directives
201202
dotnet_sort_system_directives_first = true
202203
dotnet_separate_import_directive_groups = false
204+
# Dotnet namespace options
205+
dotnet_style_namespace_match_folder = true:suggestion
206+
dotnet_diagnostic.IDE0130.severity = suggestion
203207

204208
# C# formatting rules
205209
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#c-formatting-rules
206210
[*.{cs,csx,cake}]
207211
# Newline options
208-
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#new-line-options
212+
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#new-line-options
209213
csharp_new_line_before_open_brace = all
210214
csharp_new_line_before_else = true
211215
csharp_new_line_before_catch = true
@@ -214,15 +218,15 @@ csharp_new_line_before_members_in_object_initializers = true
214218
csharp_new_line_before_members_in_anonymous_types = true
215219
csharp_new_line_between_query_expression_clauses = true
216220
# Indentation options
217-
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#indentation-options
221+
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#indentation-options
218222
csharp_indent_case_contents = true
219223
csharp_indent_switch_labels = true
220224
csharp_indent_labels = no_change
221225
csharp_indent_block_contents = true
222226
csharp_indent_braces = false
223227
csharp_indent_case_contents_when_block = false
224228
# Spacing options
225-
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#spacing-options
229+
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#spacing-options
226230
csharp_space_after_cast = false
227231
csharp_space_after_keywords_in_control_flow_statements = true
228232
csharp_space_between_parentheses = false
@@ -246,9 +250,12 @@ csharp_space_before_open_square_brackets = false
246250
csharp_space_between_empty_square_brackets = false
247251
csharp_space_between_square_brackets = false
248252
# Wrap options
249-
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#wrap-options
253+
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#wrap-options
250254
csharp_preserve_single_line_statements = false
251255
csharp_preserve_single_line_blocks = true
256+
# Namespace options
257+
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#namespace-options
258+
csharp_style_namespace_declarations = file_scoped:warning
252259

253260
##########################################
254261
# .NET Naming Rules

.gitattributes

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,19 @@
6464
# Set explicit file behavior to:
6565
# treat as text
6666
# normalize to Unix-style line endings and
67-
# use a union merge when resoling conflicts
67+
# use a union merge when resolving conflicts
6868
###############################################################################
6969
*.csproj text eol=lf merge=union
7070
*.dbproj text eol=lf merge=union
7171
*.fsproj text eol=lf merge=union
7272
*.ncrunchproject text eol=lf merge=union
7373
*.vbproj text eol=lf merge=union
74+
*.shproj text eol=lf merge=union
7475
###############################################################################
7576
# Set explicit file behavior to:
7677
# treat as text
7778
# normalize to Windows-style line endings and
78-
# use a union merge when resoling conflicts
79+
# use a union merge when resolving conflicts
7980
###############################################################################
8081
*.sln text eol=crlf merge=union
8182
###############################################################################
@@ -87,15 +88,13 @@
8788
*.eot binary
8889
*.exe binary
8990
*.otf binary
90-
*.pbm binary
9191
*.pdf binary
9292
*.ppt binary
9393
*.pptx binary
9494
*.pvr binary
9595
*.snk binary
9696
*.ttc binary
9797
*.ttf binary
98-
*.wbmp binary
9998
*.woff binary
10099
*.woff2 binary
101100
*.xls binary
@@ -119,10 +118,18 @@
119118
*.bmp filter=lfs diff=lfs merge=lfs -text
120119
*.gif filter=lfs diff=lfs merge=lfs -text
121120
*.png filter=lfs diff=lfs merge=lfs -text
121+
*.qoi filter=lfs diff=lfs merge=lfs -text
122122
*.tif filter=lfs diff=lfs merge=lfs -text
123123
*.tiff filter=lfs diff=lfs merge=lfs -text
124124
*.tga filter=lfs diff=lfs merge=lfs -text
125125
*.webp filter=lfs diff=lfs merge=lfs -text
126126
*.dds filter=lfs diff=lfs merge=lfs -text
127127
*.ktx filter=lfs diff=lfs merge=lfs -text
128128
*.ktx2 filter=lfs diff=lfs merge=lfs -text
129+
*.pam filter=lfs diff=lfs merge=lfs -text
130+
*.pbm filter=lfs diff=lfs merge=lfs -text
131+
*.pgm filter=lfs diff=lfs merge=lfs -text
132+
*.ppm filter=lfs diff=lfs merge=lfs -text
133+
*.pnm filter=lfs diff=lfs merge=lfs -text
134+
*.wbmp filter=lfs diff=lfs merge=lfs -text
135+
*.exr filter=lfs diff=lfs merge=lfs -text

.github/CONTRIBUTING.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,14 @@
2828

2929
#### **Running tests and Debugging**
3030

31-
* Expected test output is pulled in as a submodule from the [ImageSharp.Tests.Images repository](https://github.com/SixLabors/Imagesharp.Tests.Images/tree/main/ReferenceOutput). To succesfully run tests, make sure that you have updated the submodules!
32-
* Debugging (running tests in Debug mode) is only supported on .NET Core 2.1, because of JIT Code Generation bugs like [dotnet/coreclr#16443](https://github.com/dotnet/coreclr/issues/16443) or [dotnet/coreclr#20657](https://github.com/dotnet/coreclr/issues/20657)
31+
* Expected test output is pulled in as a submodule from the [ImageSharp.Drawing.Tests.Images repository](https://github.com/SixLabors/ImageSharp.Drawing.Tests.Images/tree/main/ReferenceOutput). To succesfully run tests, make sure that you have updated the submodules!
3332

3433
#### **Do you have questions about consuming the library or the source code?**
3534

36-
* Ask any question about how to use SixLabors.ImageSharp in the [Help Discussions Channel](https://github.com/SixLabors/ImageSharp.Drawing/discussions?discussions_q=category%3AHelp).
35+
* Ask any question about how to use SixLabors.ImageSharp.Drawing in the [Help Discussions Channel](https://github.com/SixLabors/ImageSharp.Drawing/discussions?discussions_q=category%3AHelp).
3736

3837
#### Code of Conduct
3938
This project has adopted the code of conduct defined by the [Contributor Covenant](https://contributor-covenant.org/) to clarify expected behavior in our community.
40-
For more information, see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).
4139

4240
And please remember. SixLabors.ImageSharp.Drawing is the work of a very, very, small number of developers who struggle balancing time to contribute to the project with family time and work commitments. We encourage you to pitch in and help make our vision of simple accessible image processing available to all. Open Source can only exist with your help.
4341

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: Ask a Question
4-
url: https://github.com/SixLabors/ImageSharp.Drawing/discussions?discussions_q=category%3AHelp
5-
about: Ask a question about this project.
3+
- name: Questions
4+
url: https://github.com/SixLabors/ImageSharp.Drawing/discussions/categories/q-a
5+
about: Ask the community for help.
66
- name: Feature Request
7-
url: https://github.com/SixLabors/ImageSharp.Drawing/discussions?discussions_q=category%3AIdeas
7+
url: https://github.com/SixLabors/ImageSharp.Drawing/discussions/categories/ideas
88
about: Share ideas for new features for this project.
Lines changed: 52 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,52 @@
1-
---
2-
name: "OSS : Bug Report"
3-
about: Create a report to help us improve the project.
4-
labels: needs triage
5-
6-
---
7-
8-
### Prerequisites
9-
10-
- [ ] I have written a descriptive issue title
11-
- [ ] I have verified that I am running the latest version of ImageSharp.Drawing
12-
- [ ] I have verified if the problem exist in both `DEBUG` and `RELEASE` mode
13-
- [ ] I have searched [open](https://github.com/SixLabors/ImageSharp.Drawing/issues) and [closed](https://github.com/SixLabors/ImageSharp.Drawing/issues?q=is%3Aissue+is%3Aclosed) issues to ensure it has not already been reported
14-
15-
### Description
16-
<!-- A description of the bug or feature -->
17-
18-
### Steps to Reproduce
19-
<!-- List of steps, sample code, failing test or link to a project that reproduces the behavior -->
20-
21-
### System Configuration
22-
<!-- Tell us about the environment where you are experiencing the bug -->
23-
24-
- ImageSharp.Drawing version:
25-
- Other ImageSharp packages and versions:
26-
- Environment (Operating system, version and so on):
27-
- .NET Framework version:
28-
- Additional information:
29-
30-
<!-- Thanks for reporting the issue to ImageSharp.Drawing! -->
1+
name: "Bug Report"
2+
description: Create a report to help us improve the project. Issues are not guaranteed to be triaged.
3+
labels: ["needs triage"]
4+
body:
5+
- type: checkboxes
6+
attributes:
7+
label: Prerequisites
8+
options:
9+
- label: I have written a descriptive issue title
10+
required: true
11+
- label: I have verified that I am running the latest version of ImageSharp.Drawing
12+
required: true
13+
- label: I have verified if the problem exist in both `DEBUG` and `RELEASE` mode
14+
required: true
15+
- label: I have searched [open](https://github.com/SixLabors/ImageSharp.Drawing/issues) and [closed](https://github.com/SixLabors/ImageSharp.Drawing/issues?q=is%3Aissue+is%3Aclosed) issues to ensure it has not already been reported
16+
required: true
17+
- type: input
18+
attributes:
19+
label: ImageSharp.Drawing version
20+
validations:
21+
required: true
22+
- type: input
23+
attributes:
24+
label: Other ImageSharp packages and versions
25+
validations:
26+
required: true
27+
- type: input
28+
attributes:
29+
label: Environment (Operating system, version and so on)
30+
validations:
31+
required: true
32+
- type: input
33+
attributes:
34+
label: .NET Framework version
35+
validations:
36+
required: true
37+
- type: textarea
38+
attributes:
39+
label: Description
40+
description: A description of the bug
41+
validations:
42+
required: true
43+
- type: textarea
44+
attributes:
45+
label: Steps to Reproduce
46+
description: List of steps, sample code, failing test or link to a project that reproduces the behavior. Make sure you place a stack trace inside a code (```) block to avoid linking unrelated issues.
47+
validations:
48+
required: true
49+
- type: textarea
50+
attributes:
51+
label: Images
52+
description: Please upload images that can be used to reproduce issues in the area below. If the file type is not supported the file can be zipped and then uploaded instead.

0 commit comments

Comments
 (0)