Repository navigation
Bump StyleCop.Analyzers from 1.1.118 to 1.3.180 - #203
Open
dependabot[bot] wants to merge 1 commit into
Open
dependabot[bot] wants to merge 1 commit into
dependabot[bot] wants to merge 1 commit into
Conversation
--- updated-dependencies: - dependency-name: StyleCop.Analyzers dependency-version: 1.3.180 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #203 +/- ##
===========================================
- Coverage 82.12% 80.18% -1.95%
===========================================
Files 114 114
Lines 2781 2781
Branches 0 136 +136
===========================================
- Hits 2284 2230 -54
+ Misses 497 496 -1
- Partials 0 55 +55 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated StyleCop.Analyzers from 1.1.118 to 1.3.180.
Release notes
Sourced from StyleCop.Analyzers's releases.
1.3.180
This is the first stable StyleCop.Analyzers release since 1.1.118. It includes the entire 1.2 beta line and the 1.3 revival: the analyzers now understand C# 8 through the C# 15 previews, many long-standing bugs are fixed, and the project is once again actively maintained. Thank you to everyone who contributed code, reviews, translations and bug reports over the long gap.
Highlights
allows ref struct, C# 14 extension blocks and thefieldkeyword, and C# 15 preview unions with theclosedandsafemodifiers, instead of ignoring that syntax or crashing on it. (#4142, #4139, #4137, #4163, #4148, #4191, #4193)?:) expressions are laid out consistently, SA1315 requires overriding and implementing parameters to keep their inherited names, SA1317 reports identifiers that use letters outside basic Latin A–Z, SA1653 reports<summary>documentation on more than one part of a partial type, and SA1654 reports escaped generic brackets increfs (for exampleList<T>vsList{T}). SX1412 is an opt-in alternative to SA1412 that requires UTF-8 without a BOM. All of these except SX1412 are on by default as warnings. (#3942, #4299, #4318, #4314, #4315, #4328).editorconfig. New settings includeorderingRules.memberKindOrder,orderingRules.accessibilityOrderandlayoutRules.allowBracelessIfStatements(bracelessifs are off by default; the accessibility order default is unchanged). (#4221, #3285, #4324, #4359, #4319)zh-CN) resources and documentation, finishes the Czech translations, and includes more translations of code-fix documentation text (Czech, Dutch, Russian and others). Rule documentation and status are published on GitHub Pages. (#4285, #4286, #3374, #3944, #3900, #4220, #4218)Behavior changes worth knowing about
Upgrading from 1.1.118, or from a 1.2 beta, may produce new or different diagnostics:
<summary>on more than one part, but ignores generated partial declarations such as WPF*.g.csfiles. (#4148, #4149, #4152, #4308, #4299, #4393)IntPtrandUIntPtrin XML documentationcrefs, or in shared source compiled for targets wherenintisn't equivalent. SA1121 and SA1125 also report System types in using alias targets. (#4287, #4395, #4175)includeInferredTupleElementNamesis off. (#4202)_forforeachvariables andusingdeclarations. (#4203)filemodifier as an access modifier. (#4198)protected readonlyfields when SA1307 is enabled. (#4217)&,|,^) and>>>. SA1408 reports??mixed with&&or||without parentheses. (#4289, #4323)extern aliasdirectives using the same placement setting asusingdirectives. (#4313)[NotNullWhen(true)] out string? foo. (#4321)maintainabilityRules.topLevelTypessetting. (#4281, #4301, #4316)documentInterfacessetting. WithdocumentInterfaces: false, public interfaces and their members are still required whendocumentExposedElementsis on. WithdocumentInterfaces: "exposed", members of interfaces that aren't actually exposed are not reported. (#3140, #4346, #4343)extern alias. (#4341)?and:lines line up and are indented past the condition's last line. The SA1143 code fix keeps multi-line branches intact. (#4336, #4374, #4392).symbols.nupkgis gone, because PDBs are now embedded in the DLLs. (#4173)All changes
Fixes
... (truncated)
1.3.177-beta
A small follow-up to 1.3.171-beta. It accepts a common layout for collection-expression brackets and strengthens the settings default tests.
Highlights
Behavior changes worth knowing about
All changes
Fixes
Infrastructure and build
Full Changelog: DotNetAnalyzers/StyleCopAnalyzers@1.3.171-beta...1.3.177-beta
1.3.171-beta
A reliability-focused follow-up to 1.3.151-beta. It fixes several crashes and broken code fixes, checks the layout of multi-line collection expressions, and reduces false positives in SA1121, SA1143 and SA1653.
Highlights
<include>, crashes and an infinite loop in SA1500 and its code fix, crashes in the SA1642 and using-directive code fixes, and a using code fix that rewrote a non-genericSystem.ValueTuplealias. (#4380, #4383, #4382, #4384, #4381, #4385)IntPtrandUIntPtrwherenintandnuintwould be wrong, SA1653 ignores generated partial declarations such as WPF*.g.csfiles, and the SA1143 fix keeps multi-line branches intact. (#4395, #4393, #4392)Behavior changes worth knowing about
]shares a line with the last element. (#4396)IntPtrandUIntPtrin XML documentationcrefs, or in shared source compiled for targets wherenintisn't equivalent. (#4395)<summary>tags in generated partial declarations. (#4393)All changes
Fixes
Infrastructure and build
Full Changelog: DotNetAnalyzers/StyleCopAnalyzers@1.3.151-beta...1.3.171-beta
1.3.151-beta
A small follow-up to 1.3.149-beta. SA1143 now accepts conditional expressions whose condition spans several lines.
Behavior changes worth knowing about
?and:lines line up and are indented past the condition's last line. The code fix still flattens the condition onto one line. (#4374)Fixes
Infrastructure and build
Full Changelog: DotNetAnalyzers/StyleCopAnalyzers@1.3.149-beta...1.3.151-beta
1.3.149-beta
A follow-up to 1.3.133-beta, centered on code fixes: five rules that only reported problems now offer fixes, and code fixes keep the document's line endings. SA1202 also gets a configurable accessibility order. Thanks to @bjornhellander for moving the repo itself onto the latest StyleCop.Analyzers.
Highlights
<param>tags) and SA1653 (keep one partial<summary>, converting the others to<content>or removing duplicates). The SA1314 rename now also updates type parameter references increfs. (#4353, #4352, #4354, #4372, #4361)orderingRules.accessibilityOrdersetting, orstylecop.ordering.accessibilityOrderin EditorConfig, customizes the accessibility order. The default is unchanged. (#4359)Behavior changes worth knowing about
<content>. (#4372)All changes
Enhancements
Fixes
Documentation
Infrastructure and build
Full Changelog: DotNetAnalyzers/StyleCopAnalyzers@1.3.133-beta...1.3.149-beta
1.3.133-beta
A follow-up to 1.3.109-beta. It fixes how SA1600 handles the
documentInterfacessetting, fixes several crashes and code-fix bugs found by fuzzing, and adds a code fix for SA1648. Thanks to @sbe-schleupen for the SA1135 fix, their first contribution.Highlights
documentInterfacesadds to the general accessibility settings again, as it originally did, and"exposed"now uses each interface's effective accessibility. (#4346, #4343)<inheritdoc/>, and SA1315's message now names the expected parameter name. (#4337, #4351)Behavior changes worth knowing about
documentInterfaces: falseagain requires documentation on public interfaces and their members whendocumentExposedElementsis on. Earlier 1.3 betas had stopped requiring it, so warnings may come back. (#4346)documentInterfaces: "exposed"no longer reports members of interfaces that aren't actually exposed, such as internal interfaces whendocumentInternalElementsis false, or nested interfaces inside non-public types. (#4343)extern alias. (#4341)All changes
Fixes
Enhancements
Infrastructure and build
New Contributors
Full Changelog: DotNetAnalyzers/StyleCopAnalyzers@1.3.109-beta...1.3.133-beta
1.3.109-beta
A follow-up to 1.3.98-beta. It eases several layout rules that were too strict, including the new SA1143, adds a rule for generic
crefsyntax, and improves code fixes. Thanks to @bgrainger for the SA1143 fix, their first contribution.Highlights
??right after a switch expression's closing brace. (#4336, #4331, #4333, #4334)crefs, for exampleList<T>, and its code fix converts them toList{T}. (#4328)Behavior changes worth knowing about
{T}rather than escaped<T>increfattributes) is enabled as a warning. (#4328)All changes
Enhancements
Fixes
New Contributors
Full Changelog: DotNetAnalyzers/StyleCopAnalyzers@1.3.98-beta...1.3.109-beta
1.3.98-beta
This release adds three new rules and a long-requested code fix, makes member ordering and braceless guard clauses configurable, and tightens several existing rules. The package also has an icon now.
Highlights
?:) expressions are laid out consistently. SA1315 checks that overriding and implementing parameters keep their inherited names. SX1412 is an opt-in alternative to SA1412 that requires UTF-8 without a BOM. All three come with code fixes. (#4318, #4314, #4315)orderingRules.memberKindOrdersetting customizes the SA1201 member-kind order, andlayoutRules.allowBracelessIfStatementslets SA1501 and SA1503 allow compact guard clauses. Both are off by default. (#4324, #4319)Behavior changes worth knowing about
extern aliasdirectives using the same placement setting asusingdirectives. (#4313)[NotNullWhen(true)] out string? foo. (#4321)??mixed with&&or||without parentheses. (#4323)maintainabilityRules.topLevelTypessetting, so the expected file name may change. (#4316)All changes
Enhancements
Fixes
Documentation
Full Changelog: DotNetAnalyzers/StyleCopAnalyzers@1.3.82-beta...1.3.98-beta
1.3.82-beta
A small follow-up to 1.3.79-beta. The SA1504 code fix no longer drops comments or blank lines when it expands accessors onto multiple lines. The documentation's opening pages have also been reorganized. No diagnostics change in this release.
Fixes
Documentation
Full Changelog: DotNetAnalyzers/StyleCopAnalyzers@1.3.79-beta...1.3.82-beta
1.3.79-beta
This release follows 1.3.18-beta with two new rules, a round of fixes for long-standing false positives, and better code fixes. It also adds Simplified Chinese resources and documentation. Thanks to @melomory for contributing SA1317, their first contribution to the project.
Highlights
<summary>documentation on more than one part. (#3942, #4299)catchandfinallyblocks, SA1118 allows multi-line tuple arguments, SA1629 accepts!and?, and SA1515 and SA1005 ignore tool marker comments such as ReSharper, language injection andNOSONAR. SA1305 skipsDllImportparameters, and SA1402 and SA1649 accept supporting types in files with top-level statements. (#4290, #4284, #4298, #4302, #4297, #4306)zh-CN) resources and documentation, and finishes the Czech translations. (#4285, #4286)Behavior changes worth knowing about
<summary>, #4299) are both enabled by default as warnings. Codebases with non-Latin identifiers, or with summaries on several parts of a partial type, will see new diagnostics.&,|,^) and>>>, so mixed-precedence expressions using them get new diagnostics. (#4289)All changes
Enhancements
Fixes
... (truncated)
1.3.18-beta
What's Changed
New Contributors
Full Changelog: DotNetAnalyzers/StyleCopAnalyzers@1.3.1-beta...1.3.18-beta
1.3.1-beta
This is the first StyleCop.Analyzers release since 1.2.0-beta.556, and it's a big one. The project is active again: this release brings the analyzers up to date with every C# version from 10 through the C# 15 previews, clears a long backlog of bugs, and modernizes how the project is built, tested and shipped. Thank you to everyone who contributed code, reviews, translations and bug reports over the long gap. Many of the changes below started as community pull requests.
Highlights
allows ref struct, C# 14 extension blocks and thefieldkeyword, and C# 15 preview unions with theclosedandsafemodifiers. (#4142, #4139, #4137, #4163, #4148, #4191, #4193).editorconfig, and the docs explain how that works alongsidestylecop.json. The documentation and rule status are published on GitHub Pages, and there are more translations of the code-fix documentation text (Czech, Dutch, Russian and others). (#4221, #4218, #3374, #3944, #3900, #4220)Behavior changes worth knowing about
Upgrading may produce new or different diagnostics:
includeInferredTupleElementNamesis off. Names the compiler infers are still checked only when that setting is on. (#4202)_forforeachvariables andusingdeclarations. (#4203)filemodifier as an access modifier. (#4198)protected readonlyfields when SA1307 is enabled. (#4217)documentInterfacessetting values. (#3140).symbols.nupkgis gone, because PDBs are now embedded in the DLLs. (#4173)All changes
Fixes (52)
... (truncated)
1.2.0-beta.556
What's Changed
New Contributors
Full Changelog: DotNetAnalyzers/StyleCopAnalyzers@1.2.0-beta.507...1.2.0-beta.556
1.2.0-beta.507
What's Changed
Description has been truncated