Releases: DotNetAnalyzers/StyleCopAnalyzers
Releases · DotNetAnalyzers/StyleCopAnalyzers
1.2.0-beta.556
What's Changed
- Update SA1011 to forbid trailing space before the end of a switch case by @bjornhellander in #3674
- Rewrite IOperationWrapper as a wrapper structure around IOperation by @sharwell in #3611
- Update SA1202 to support interfaces (C# 8) and records (C# 9, 10) by @sharwell in #3694
- Update documentation for SA1308 to also mention prefix "t_" by @bjornhellander in #3697
- Update SA1642 and its code fix to handle record structs correctly by @bjornhellander in #3696
- Update dependencies by @sharwell in #3700
- Mark several test classes as partial by @sharwell in #3702
- Add missing test files and fix inheritance by @sharwell in #3703
- Generate and validate derived test classes by @sharwell in #3704
- Update SA1011 to not require space before a range operator by @bjornhellander in #3709
- Update SA1131 to treat methods as constants by @bjornhellander in #3710
- Avoid allocations in CanWrap... methods by @martin-strecker-sonarsource in #3711
- Update SA1648 to accept inheritdoc on members implemented from static abstract/virtual interface members by @bjornhellander in #3715
- Update SA1600 to also handle records by @bjornhellander in #3725
- Update SA1119 to allow parenthesis around a ref ternary conditional expression when it is the left-hand side of an assigment by @bjornhellander in #3737
- Update SA1119 to allow parenthesized switch expressions followed by an invocation by @bjornhellander in #3733
- Add c# 12 test project by @bjornhellander in #3734
- Run tests in parallel jobs by @sharwell in #3740
- Update SA1010 to accept whitespace before collection initializers by @bjornhellander in #3745
- Update SA1513 to not require a blank line if the closing brace is at the end of a collection expression by @bjornhellander in #3746
- Update SA1118 to allow multi-line collection expressions by @bjornhellander in #3749
- Update SA1009 to require a space after the closing parenthesis if it is followed by ++ or -- from a prefix unary expression by @bjornhellander in #3750
- Update SA1008 to allow space before the opening parenthesis of a using alias definition of a tuple type by @bjornhellander in #3748
- Update documentation for SA1102 to contain compilable code examples by @arphox in #3755
- Update SA1008 to not crash if there is no previous token by @bjornhellander in #3741
- Change default value of test property CodeActionValidationMode to SemanticStructure instead of None and update so that tests still pass by @bjornhellander in #3753
- Allow inheritdoc for class constructors with base types by @MartyIX in #3719
- Fix that SA1134 Fix All maybe non-deterministic by @pdelvo in #2853
- Coverage improvements by @bjornhellander in #3675
- Fix SA1131 to not treat "complex" expressions as a literal by @bjornhellander in #3760
New Contributors
- @martin-strecker-sonarsource made their first contribution in #3711
- @arphox made their first contribution in #3755
- @MartyIX made their first contribution in #3719
Full Changelog: 1.2.0-beta.507...1.2.0-beta.556
1.2.0-beta.507
What's Changed
- Update to StyleCop.Analyzers 1.2.0-beta.435 by @sharwell in #3499
- Add c# 11 test project to opencover-report.ps1 by @bjornhellander in #3506
- Use GetText instead of ToFullString by @sharwell in #3514
- Keep tracked nodes in a list by @sharwell in #3525
- Remove unnecessary nullable directives by @sharwell in #3530
- Remove hard-coded language versions in test projects for c# 8, 9 and 10 by @bjornhellander in #3528
- Update SA1515 to not let one range of trivia affect another by @bjornhellander in #3529
- Mentioned VS 2022 by @twojnarowski in #3549
- Remove byte order mark from schema file by @martincostello in #3562
- Update SA1012 to expect no space between a property pattern's opening brace and an enclosing list pattern's opening bracket by @bjornhellander in #3511
- Update Microsoft.CodeAnalysis.CSharp.Workspaces to version 4.4.0 for the c# 11 test project by @bjornhellander in #3580
- Update SA1008 to handle positional patterns inside property patterns by @bjornhellander in #3579
- Update SA1000 to trigger after keywords is, or, and, not by @bjornhellander in #3585
- Update SA1000.md by @Youssef1313 in #3563
- Update SA1313 to also allow incorrect names in explicitly implemented methods from interfaces by @bjornhellander in #3569
- Update SA1023 to not trigger first in line, inside a foreach without braces by @bjornhellander in #3543
- Update SA1400 to recognize access modifier "file" by @bjornhellander in #3590
- Update SA1206 to recognize modifier "file" by @bjornhellander in #3591
- Update SA1000 to handle checked operator declarations correctly by @bjornhellander in #3505
- Update SA1402 to handle records and record structs by @bjornhellander in #3570
- Bump Newtonsoft.Json from 12.0.3 to 13.0.2 in /StyleCop.Analyzers/StyleCop.Analyzers.Status.Generator by @dependabot in #3584
- Update to the latest version of the testing library by @sharwell in #3601
- Update so that SA1600 tests will be run with the expected language version in test projects for c# 8 and above by @bjornhellander in #3614
- Update reading of file_header_template and stylecop.documentation.copyrightText to allow multiple lines by @bjornhellander in #3617
- Update SA1015 to require trailing space after an explicit generic return type in a lambda expression by @bjornhellander in #3625
- Update to Microsoft.CodeAnalysis.Analyzers 3.3.5-beta1.23205.2 by @sharwell in #3628
- Update SA1206 to handle c# 11 modifier "required" by @bjornhellander in #3535
- Preparations for SettingsHelper optimizations by @bjornhellander in #3635
- Correct SA1515 to not fire on the second line of a file header by @bjornhellander in #3633
- Update AnalyzersExtensions and SettingsHelper to use cached JsonValue objects where possible by @bjornhellander in #3642
- Update SA1010 to not trigger on list patterns by @bjornhellander in #3507
- Update NamingSettings and DocumentationSettings to keep one Regex instance instead of calling Regex.IsMatch by @bjornhellander in #3639
- Use ResxSourceGenerator for resource generation by @sharwell in #3343
- Make XmlCommentHelper faster by @ninedan in #3651
- Update RenameToUpperCaseCodeFixProvider to not offer a code fix if the identifier only consists of underscores by @bjornhellander in #3637
- Don't emit SA1414 for interface implementations by @CollinAlpert in #3644
- Support file-scoped namespaces in SA1516 by @JakubLinhart in #3513
- Update SA1137 to also consider init accessors by @bjornhellander in #3669
- Update SA1500 to also consider init accessors by @bjornhellander in #3670
- Update SA1513 to not trigger before an init accessor by @bjornhellander in #3666
- Update SA1212 to also trigger for an init accessor before a getter by @bjornhellander in #3661
- Update SA1513 codefix to use the existing newline character sequence by @bjornhellander in #3607
- Correct code fix for SA1130 when delegate expression is part of a cast expression by @bjornhellander in #3516
- Update so that c# 7 tests will be run with the expected language version in test projects for c# 8 and above by @bjornhellander in #3616
- SA1629 should allow full-sentence links instead of forcing the period to glow white by @jnm2 in #3371
New Contributors
- @twojnarowski made their first contribution in #3549
- @ninedan made their first contribution in #3651
- @CollinAlpert made their first contribution in #3644
- @JakubLinhart made their first contribution in #3513
Full Changelog: 1.2.0-beta.435...1.2.0-beta.507
1.2.0-beta.435
What's Changed
- Update to Microsoft.CodeAnalysis.Testing 1.1.1-beta1.22081.4 by @sharwell in #3450
- Update SA1600 to show inheritance example. by @codajo in #3385
- Enable nullable reference types by default by @sharwell in #3455
- Disable SA0002 (Invalid settings file) for empty projects by @sharwell in #3456
- Support awaiting a parenthesized 'switch' or 'with' expression by @sharwell in #3462
- Fix support for object initializers in interpolations by @sharwell in #3463
- Fix typo in SA1307.md by @marcospgp in #3466
- Map dotnet_separate_import_directive_groups=false to OptionSetting.Allow by @sharwell in #3484
- Support extended property patterns in SA1101 by @sharwell in #3483
- Fix false positive in SA1516 between global statements by @maxkoshevoi in #3482
- Fix handling of generic delegates in file type name by @sharwell in #3485
- Collect incremental state without passing compilation to output stage by @sharwell in #3452
- Updated code fix name for SA1027 to be ok regardless of the 'useTabs' setting by @bjornhellander in #3490
- Corrected documentation for SA1516 by @bjornhellander in #3488
- Updated SA1009 to forbid space after a closing parenthesis in a method reference contained in single quotes by @bjornhellander in #3497
- Added a new test project for c# 11 by @bjornhellander in #3491
- Remove same values at SA1201ElementsMustAppearInTheCorrectOrder.MemberNames by @eliseevev in #3496
- Updated SA1015 analyzer to handle generic attributes (c# 11 preview) by @bjornhellander in #3494
- Updated SA1008 to handle tuples in logical patterns by @bjornhellander in #3495
New Contributors
- @codajo made their first contribution in #3385
- @marcospgp made their first contribution in #3466
- @maxkoshevoi made their first contribution in #3482
- @eliseevev made their first contribution in #3496
Full Changelog: 1.2.0-beta.406...1.2.0-beta.435
1.2.0-beta.406
What's Changed
- Increase test coverage for records in SA1500, SA1502, and SA1508 by @sharwell in #3421
- Add 'allowDoWhileOnClosingBrace' configuration to the JSON schema by @sharwell in #3423
- Use CultureInfo.InvariantCulture for en-US by @sharwell in #3426
- Allow direct use of explicit parameterless constructors by @sharwell in #3432
- Support file-scoped namespaces in SA1649 and SA1402 by @sharwell in #3436
- Add file-scoped namespace support to SA1208 in #3438
- Expand support for file scoped namespaces by @sharwell in #3446
- Insert blank line before using directives in file-scoped namespace by @sharwell in #3447
Full Changelog: 1.2.0-beta.376...1.2.0-beta.406
1.2.0-beta.376
What's Changed
- Update System.Collections.Immutable in the status generator by @sharwell in #3362
- Update to Microsoft.CodeAnalysis.Testing 1.1.0-beta1.21329.1 by @sharwell in #3361
- SA1130: Handle optional named arguments correctly by @wdolek in #3289
- Add C# 10 test project by @sharwell in #3398
- Support C# 10 'record struct' by @sharwell in #3401
- Update SA1116 and SA1117 to handle target-typed new (C# 9) by @bjornhellander in #3408
- Use reference assemblies for index and range by @sharwell in #3417
- Update SA1119 to support C# Ranges by @pantosha in #3372
- Allow object initializers and switch expressions in throw statements by @sharwell in #3418
- Update to Roslyn 4, .NET SDK 6.0.100 by @sharwell in #3416
- Update SA1135 to support file-scoped namespaces by @sharwell in #3419
- Fix ignored Namespace attribute in OperationLightupGenerator by @pavel-mikula-sonarsource in #3378
- Update SA1003 and SA1008 to not require space before a cast inside a range expression by @bjornhellander in #3409
New Contributors
- @wdolek made their first contribution in #3289
- @pavel-mikula-sonarsource made their first contribution in #3378
Full Changelog: 1.2.0-beta.354...1.2.0-beta.376
1.2.0-beta.354
What's Changed
- Update SA1305 doc to mention allowedHungarianPrefixes in stylecop.json by @Youssef1313 in #3321
- Implement custom fix all providers by @sharwell in #3322
- Handle new() syntax on SA1118 by @BlythMeister in #3340
- Support defining options in .editorconfig by @sharwell in #3285
- Set TLS defaults for testing by @sharwell in #3342
- Update to Microsoft.CodeAnalysis.Testing 1.0.1-beta1.21202.2 by @sharwell in #3341
- Issue #2801: SA1500 fires for the while clause of do/while statement by @Kevin-Andrew in #3196
New Contributors
- @BlythMeister made their first contribution in #3340
- @Kevin-Andrew made their first contribution in #3196
Full Changelog: 1.2.0-beta.333...1.2.0-beta.354
1.2.0-beta.333
What's Changed
- Update SA1130.md by @SaidFayache in #3298
- Added GlobalSuppressions.cs example for SA1649 by @whoward3 in #3303
- Avoid reporting SA1141 (Use tuple syntax) in expression trees by @sharwell in #3306
- Fix handling of pointers to generic types by @sharwell in #3309
- Fix SA1015 handling of '>' followed by ']' by @sharwell in #3313
- SA1648 throws an exception on delegates that use the tag by @angelobreuer in #3292
- Consolidate tests by @sharwell in #3316
- Update SA1118 to allow 'with' expressions by @sharwell in #3317
- Fix handling of on fields by @sharwell in #3315
New Contributors
- @SaidFayache made their first contribution in #3298
- @whoward3 made their first contribution in #3303
Full Changelog: 1.2.0-beta.321...1.2.0-beta.333
1.2.0-beta.321
What's Changed
- Support records without braces by @sharwell in #3274
- Support implicit object creation expressions in SA1129 code fix by @sharwell in #3278
- Update Microsoft.CodeAnalysis.Testing to 1.0.1-beta1.20623.3 by @sharwell in #3287
- Update Configuration.md by @mayermart in #3251
New Contributors
- @mayermart made their first contribution in #3251
Full Changelog: 1.2.0-beta.312...1.2.0-beta.321
1.2.0-beta.312
1.2.0-beta.304
What's Changed
- Use IOperation APIs for SA1142 when supported by @sharwell in #3229
- Use code generation for IOperation in the light-up layer by @sharwell in #3231
- Update SA1413 to support with initializer by @pantosha in #3245
- Remove unnecessary usings by @nxtn in #3253
- Fix SA1011 for function pointer unmanaged calling convention list by @nxtn in #3254
- Specify exact language versions by @nxtn in #3255
- Fix SA1023 for C# 9 function pointer parameters by @nxtn in #3252
- Update SA1119 for stackalloc expressions by @nxtn in #3256
- Generate syntax wrappers in the lightup layer by @sharwell in #3246
- Fix SA1009 handling of record inheritance by @sharwell in #3260
- Fix SA1200 handling of top-level statements by @sharwell in #3261
- Fix SA1516 reporting location for top-level programs by @sharwell in #3262
- Fix SA1119 handling of 'with' expressions by @sharwell in #3263
- Support records in several additional rules by @sharwell in #3264
- Fix SA1008 handling of parenthesized patterns by @sharwell in #3265
Full Changelog: 1.2.0-beta.261...1.2.0-beta.304