Skip to content

Commit bcd217c

Browse files
committed
Merge branch 'main' into feature/v3.1
2 parents 01c165c + b2a1aa7 commit bcd217c

4 files changed

Lines changed: 39 additions & 15 deletions

File tree

.github/workflows/cd-production.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ env:
99
ARTIFACTS_FEED_URL: https://api.nuget.org/v3/index.json
1010

1111
jobs:
12-
publish:
13-
name: build, pack & publish
12+
pack-and-publish:
1413
runs-on: ubuntu-latest
1514
steps:
1615
- name: Checkout
@@ -35,3 +34,12 @@ jobs:
3534
run: dotnet nuget push --skip-duplicate -s $ARTIFACTS_FEED_URL -k $NUGET_AUTH_TOKEN **/*.nupkg
3635
env:
3736
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY_NEOLUTION }}
37+
38+
notify:
39+
needs: [pack-and-publish]
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: neolution-ch/action-release-notifier@v1
43+
with:
44+
slack-token: ${{ secrets.SLACK_RELEASE_NOTIFIER_TOKEN }}
45+
slack-channel-ids: "CD34NHYN6"

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11-
publish:
12-
name: build & pack
11+
pack:
1312
runs-on: ubuntu-latest
1413
steps:
1514
- name: Checkout

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ and adheres to a project-specific [Versioning](/README.md).
77

88
## [Unreleased]
99

10+
## [3.0.1] - 2023-07-12
11+
12+
### Added
13+
14+
- Notification for Slack channel upon new releases
15+
16+
### Changed
17+
18+
- Changed "S3242: Method parameters should be declared with base types" to `suggestion`
19+
- Changed "S3257: Declarations and initializations should be as concise as possible" to `suggestion`
20+
- Changed "S3267: Loops should be simplified with "LINQ" expressions" to `suggestion`
21+
1022
## [3.0.0] - 2023-06-28
1123

1224
### Changed
@@ -26,6 +38,7 @@ and adheres to a project-specific [Versioning](/README.md).
2638

2739
- Changelog
2840

29-
[unreleased]: https://github.com/neolution-ch/Neolution.CodeAnalysis/compare/v3.0.0...HEAD
41+
[unreleased]: https://github.com/neolution-ch/Neolution.CodeAnalysis/compare/v3.0.1...HEAD
42+
[3.0.1]: https://github.com/neolution-ch/Neolution.CodeAnalysis/compare/v3.0.0...v3.0.1
3043
[3.0.0]: https://github.com/neolution-ch/Neolution.CodeAnalysis/compare/v2.7.1...v3.0.0
3144
[2.7.1]: https://github.com/neolution-ch/Neolution.CodeAnalysis/compare/v2.7.0...v2.7.1

build/Neolution.CodeAnalysis.globalconfig

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,17 @@ dotnet_diagnostic.CA2007.severity = warning
229229
; Exceptions can be configured in stylecop.json
230230
dotnet_diagnostic.SA1412.severity = warning
231231

232-
# S113: Files should contain an empty newline at the end
233-
; Some tools (e.g. Git Diff) work better when files end with an empty line.
234-
dotnet_diagnostic.S113.severity = warning
235-
dotnet_diagnostic.SA1518.severity = none
232+
# S3242: Method parameters should be declared with base types
233+
; False positive with IEnumerable<T> that could lead to multiple enumerations. This should be only applied on Developers discretion.
234+
dotnet_diagnostic.S3242.severity = suggestion
235+
236+
# S3257: Declarations and initializations should be as concise as possible
237+
; In some cases developers may prefer the verbosity of a unused parameter over the easier readability of a discard.
238+
dotnet_diagnostic.S3257.severity = suggestion
239+
240+
# S3267: Loops should be simplified with "LINQ" expressions
241+
; This can be an annoying rule in cases where it does not really improve readability or even worsens it.
242+
dotnet_diagnostic.S3267.severity = suggestion
236243

237244
# S107: Methods should not have too many parameters
238245
dotnet_diagnostic.S107.severity = warning
@@ -282,6 +289,9 @@ dotnet_diagnostic.S110.severity = warning
282289
# S1109: A close curly brace should be located at the beginning of a line
283290
dotnet_diagnostic.S1109.severity = warning
284291

292+
# S113: Files should contain an empty newline at the end
293+
dotnet_diagnostic.S113.severity = warning
294+
285295
# S1144: Unused private types or members should be removed
286296
dotnet_diagnostic.S1144.severity = warning
287297

@@ -408,18 +418,12 @@ dotnet_diagnostic.S3234.severity = error
408418
# S3240: The simplest possible condition syntax should be used
409419
dotnet_diagnostic.S3240.severity = warning
410420

411-
# S3242: Method parameters should be declared with base types
412-
dotnet_diagnostic.S3242.severity = warning
413-
414421
# S3253: Constructor and destructor declarations should not be redundant
415422
dotnet_diagnostic.S3253.severity = warning
416423

417424
# S3254: Default parameter values should not be passed as arguments
418425
dotnet_diagnostic.S3254.severity = warning
419426

420-
# S3257: Declarations and initializations should be as concise as possible
421-
dotnet_diagnostic.S3257.severity = warning
422-
423427
# S3353: Unchanged local variables should be "const"
424428
dotnet_diagnostic.S3353.severity = warning
425429

0 commit comments

Comments
 (0)