Skip to content

Commit

Permalink
Feature/update NuGet to 1.3.3v (#357)
Browse files Browse the repository at this point in the history
## Update NuGet to 1.3.3v

## Checklist
<!--
It serves as a gentle reminder for common tasks. Confirm it's done and
check everything that applies.
-->
- [x] Tests cover new or modified code
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the site documentation
- [x] I have made corresponding changes to the README, NuGet README file
- [x] My changes generate no new warnings
- [x] New dependencies added or updated
- [ ] Includes breaking changes
- [x] Version bumped


---------

Co-authored-by: ColdForeign <[email protected]>
Co-authored-by: George Radchuk <[email protected]>
Co-authored-by: Xander Van Boom <[email protected]>
  • Loading branch information
4 people authored Aug 4, 2024
1 parent 1cac7e5 commit cfe513e
Show file tree
Hide file tree
Showing 100 changed files with 1,939 additions and 1,216 deletions.
102 changes: 102 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
root = true

# All files
[*]
indent_style = space
csharp_indent_labels = no_change
csharp_using_directive_placement = outside_namespace:silent
csharp_prefer_simple_using_statement = true:suggestion
csharp_prefer_braces = true:silent
csharp_style_namespace_declarations = block_scoped:silent
csharp_style_prefer_method_group_conversion = true:silent
csharp_style_prefer_top_level_statements = true:silent
csharp_style_prefer_primary_constructors = true:suggestion
csharp_style_expression_bodied_methods = false:silent
csharp_style_expression_bodied_constructors = false:silent
csharp_style_expression_bodied_operators = false:silent
csharp_style_expression_bodied_properties = true:silent
csharp_style_expression_bodied_indexers = true:silent
csharp_style_expression_bodied_accessors = true:silent
csharp_style_expression_bodied_lambdas = true:silent
csharp_style_expression_bodied_local_functions = false:silent

[*.{csproj,sln,vcxproj,vcxproj.filters,proj,nativeproj,locproj}]
indent_size = 4
tab_width = 4
indent_style = tab

# Xml build files
[*.builds]
indent_size = 2

# Xml files
[*.{xml,stylecop,resx,ruleset}]
indent_size = 2

# Xml config files
[*.{props,targets,config,nuspec}]
indent_size = 2

# YML files
[*.yml]
indent_size = 2
indent_style = space

[*.{cs,vb}]
#### Naming styles ####

# Naming rules

dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i

dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.types_should_be_pascal_case.symbols = types
dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case

dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case

# Symbol specifications

dotnet_naming_symbols.interface.applicable_kinds = interface
dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.interface.required_modifiers =

dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.types.required_modifiers =

dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
dotnet_naming_symbols.non_field_members.required_modifiers =

# Naming styles

dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
dotnet_naming_style.begins_with_i.capitalization = pascal_case

dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case

dotnet_naming_style.pascal_case.required_prefix =
dotnet_naming_style.pascal_case.required_suffix =
dotnet_naming_style.pascal_case.word_separator =
dotnet_naming_style.pascal_case.capitalization = pascal_case
dotnet_style_operator_placement_when_wrapping = beginning_of_line
tab_width = 4
indent_size = 4
end_of_line = crlf
dotnet_style_coalesce_expression = true:suggestion
insert_final_newline = true

[*.html]
tab_width = 4
indent_size = 4
indent_style = tab
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
* text=auto eol=crlf

# Declare files that will always have LF line endings on checkout.
*.sh text eol=lf

# Don't check these into the repo as LF to work around TeamCity bug
*.xml -text
*.targets -text
6 changes: 3 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
<!--
It serves as a gentle reminder for common tasks. Confirm it's done and check everything that applies.
-->
- [ ] Documentation updated
- [ ] Tests cover new or modified code
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] I have made corresponding changes to the site documentation
- [ ] I have made corresponding changes to the README, NuGet README file
- [ ] My changes generate no new warnings
- [ ] New dependencies added
- [ ] New dependencies added or updated
- [ ] Includes breaking changes
- [ ] Version bumped

Expand Down
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ updates:
target-branch: "dev" # Location of package manifests
schedule:
interval: "monthly"
groups:
dotnet:
patterns:
- "*"
3 changes: 3 additions & 0 deletions .github/linters/.checkov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
quiet: true
skip-check:
- CKV2_GHA_1
10 changes: 7 additions & 3 deletions .github/linters/.jscpd.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"consoleFull"
],
"ignore": [
"**/src/Cropper.Blazor/Cropper.Blazor.UnitTests/**"
"**/src/Cropper.Blazor/Cropper.Blazor.UnitTests/**",
"**/examples/**",
"**/*.md",
"**/*excubowebcompiler.json"
],
"absolute": true
}
"absolute": true,
"minTokens": 75
}
18 changes: 9 additions & 9 deletions .github/linters/.stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"extends": "stylelint-config-standard",
"extends": [ "stylelint-config-standard", "stylelint-config-standard-scss" ],
"rules": {
"at-rule-no-unknown": [true, {
"ignoreAtRules": ["function", "if", "each", "include", "mixin"]
}],
"selector-list-comma-newline-after": "always-multi-line",
"selector-list-comma-newline-before": "never-multi-line",
"block-closing-brace-newline-before": "always",
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": [ "function", "if", "each", "include", "mixin" ]
}
],
"selector-pseudo-class-no-unknown": [
true,
{
Expand All @@ -19,6 +19,6 @@
"ignorePseudoElements": [ "deep" ]
}
],
"indentation": 4
"media-feature-range-notation": "prefix"
}
}
}
61 changes: 61 additions & 0 deletions .github/workflows/build-test-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Build and run tests

on:
workflow_call:
inputs:
configuration:
description: 'dotnet build configuration'
required: false
type: string
default: 'Debug'
publish-coverage:
description: 'publish coverage to codecov'
required: false
type: boolean
default: true

jobs:
build_and_test:
name: Build & Test
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup .NET 8, 7, 6
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Install WASM tools Workloads
run: |
dotnet workload install wasm-tools --ignore-failed-sources
- name: Restore dependencies
run: dotnet restore
working-directory: src/Cropper.Blazor

- name: Restore dotnet tool
run: dotnet tool restore
working-directory: src/Cropper.Blazor/Cropper.Blazor

- name: DotNet Build
run: dotnet build -c ${{ inputs.configuration }} --no-restore
working-directory: src/Cropper.Blazor

- name: Test
run: dotnet test -c ${{ inputs.configuration }} --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:ExcludeByAttribute='ExcludeFromCodeCoverage' /p:SkipAutoProps=true /p:Exclude="[*]Cropper.Blazor.Testing.*"
working-directory: src/Cropper.Blazor/Cropper.Blazor.UnitTests

- name: Coverage
if: ${{ inputs.publish-coverage == true }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.net6.0.cobertura.xml, coverage.net7.0.cobertura.xml, coverage.net8.0.cobertura.xml
fail_ci_if_error: true
verbose: true
Loading

0 comments on commit cfe513e

Please sign in to comment.