Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2596 commits
Select commit Hold shift + click to select a range
4176b82
run /t:updatexlf
jmarolf Oct 4, 2021
d740351
Merge pull request #5590 from dotnet/merges/release/6.0.1xx-to-main
dotnet-bot Oct 4, 2021
0d1a5de
Merge pull request #5588 from dotnet/merges/release/5.0.3xx-to-releas…
dotnet-bot Oct 4, 2021
b15cb0f
Merge pull request #5593 from dotnet/merges/release/6.0.1xx-to-main
dotnet-bot Oct 4, 2021
25c748e
Avoid applying Community PR label to dotnet-bot and dotnet-maestro
sharwell Oct 4, 2021
0507d88
Localized file check-in by OneLocBuild Task: Build definition ID 830:…
dotnet-bot Oct 4, 2021
20c4998
Merge pull request #5595 from sharwell/community-pr
sharwell Oct 4, 2021
49a5837
Merge pull request #5592 from jmarolf/port-latest-localization-string
jmarolf Oct 4, 2021
ff3bd5b
Review automatic pull requests
sharwell Oct 4, 2021
f754fd3
run msbuild /t:pack
jmarolf Oct 5, 2021
cd7a634
ensure globalconfig files are lowercase
jmarolf Oct 5, 2021
f263e44
Merge pull request #5599 from sharwell/auto-review
sharwell Oct 5, 2021
9f29b7c
Merge pull request #5598 from dotnet/merges/release/6.0.1xx-to-main
sharwell Oct 5, 2021
78c8167
Add title rule tests
NewellClark Oct 6, 2021
f368a7c
Merge pull request #5601 from jmarolf/bugfix/emit-all-globalconfig-fi…
jmarolf Oct 6, 2021
f1d626b
Merge pull request #5600 from jmarolf/bugfix/emit-all-globalconfig-fi…
jmarolf Oct 6, 2021
675d11d
Merge pull request #5602 from dotnet/merges/release/6.0.1xx-to-main
dotnet-bot Oct 6, 2021
1d14766
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 6, 2021
c331c75
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 6, 2021
b3c04a8
Add message rule tests
NewellClark Oct 6, 2021
46c7dcd
Add description rule tests
NewellClark Oct 6, 2021
b5c7887
Fix analyzer
NewellClark Oct 6, 2021
7121210
Remove unused usings
NewellClark Oct 6, 2021
6adf814
Run msbuild
NewellClark Oct 6, 2021
46e83a3
Merge branch 'main' into 5442-fix-DiagnosticDescriptorCreationAnalyze…
NewellClark Oct 6, 2021
405edb5
Merge pull request #5603 from dotnet/darc-release/5.0.3xx-9a13940c-79…
jmarolf Oct 6, 2021
fc07521
Merge branch 'release/6.0.1xx' into merges/release/5.0.3xx-to-release…
jmarolf Oct 6, 2021
95e8e44
Merge pull request #5604 from dotnet/darc-release/6.0.1xx-5a611a06-bc…
jmarolf Oct 6, 2021
cd0b4c3
Merge pull request #5606 from dotnet/merges/release/5.0.3xx-to-releas…
dotnet-bot Oct 6, 2021
aa86fd2
Merge branch 'main' into merges/release/6.0.1xx-to-main
jmarolf Oct 7, 2021
d8f1390
Merge pull request #5608 from dotnet/merges/release/6.0.1xx-to-main
dotnet-bot Oct 7, 2021
fc4b8cd
Handle an error case where GetOverriddenMembers() returns null for an…
tannergooding Oct 7, 2021
ccd85bc
Merge pull request #5609 from dotnet/merges/release/6.0.1xx-to-main
dotnet-bot Oct 7, 2021
abe9ba1
Support Url and Message parameters in RequiresPreviewFeaturesAttribut…
Oct 7, 2021
13bc188
[release/6.0.1xx] Update dependencies from dotnet/arcade (#5610)
dotnet-maestro[bot] Oct 7, 2021
81bd0e7
add perf test
jmarolf Oct 8, 2021
3eaede4
update perf baseline
jmarolf Oct 8, 2021
dea41a2
skip analysis if no CancellationToken in parameters list
jmarolf Oct 8, 2021
ec0d09e
do not capture variables
jmarolf Oct 8, 2021
eaa2663
use foreach
jmarolf Oct 8, 2021
b5073b2
Merge pull request #5614 from jmarolf/bugfix/CA1068-convert-to-iopera…
jmarolf Oct 8, 2021
024e231
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 9, 2021
b339bd6
[main] Update dependencies from dotnet/arcade (#5612)
dotnet-maestro[bot] Oct 9, 2021
2eeb0a7
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 10, 2021
7abbbaa
Merge branch 'main' into merges/release/6.0.1xx-to-main
jmarolf Oct 11, 2021
d35bd79
Merge pull request #5611 from dotnet/merges/release/6.0.1xx-to-main
dotnet-bot Oct 11, 2021
1f29cad
Exclude projects from source-build
dseefeld Oct 11, 2021
387bccd
Update newtonsoft.json version
dseefeld Oct 11, 2021
9e594c4
Revert "Update newtonsoft.json version"
dseefeld Oct 11, 2021
e4c2762
Update NetCore_GettingStarted.md
steveberdy Oct 11, 2021
e0f2f96
Merge pull request #5620 from steveberdy/patch-1
mavasani Oct 12, 2021
424a56d
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 12, 2021
ddc4895
Merge pull request #5617 from dotnet/darc-release/5.0.3xx-72163745-8d…
jmarolf Oct 12, 2021
36ec25e
Merge pull request #5615 from dotnet/darc-release/6.0.1xx-d2960d6e-92…
jmarolf Oct 12, 2021
eb1c665
use newever version of Microsoft.CodeAnalysis in tests
jmarolf Oct 12, 2021
ffb6144
Merge pull request #5618 from dseefeld/source-buildUpdates
jmarolf Oct 12, 2021
b2165af
Merge pull request #5623 from jmarolf/infra/fix-flakey-test-TestCodeF…
jmarolf Oct 12, 2021
ad0eabb
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 13, 2021
6b7de24
[main] Update dependencies from dotnet/arcade (#5621)
dotnet-maestro[bot] Oct 13, 2021
7d0e499
Merge pull request #5627 from dotnet/darc-release/6.0.1xx-27e168a2-4c…
jmarolf Oct 13, 2021
60913ac
Merge branch 'release/6.0.1xx' into merges/release/5.0.3xx-to-release…
jmarolf Oct 13, 2021
a5bf60f
Merge branch 'main' into merges/release/6.0.1xx-to-main
jmarolf Oct 13, 2021
b0120bd
Merge pull request #5624 from dotnet/merges/release/5.0.3xx-to-releas…
dotnet-bot Oct 13, 2021
b972ead
Merge pull request #5625 from dotnet/merges/release/6.0.1xx-to-main
dotnet-bot Oct 13, 2021
70d0036
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 13, 2021
f496a99
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 13, 2021
88f5eda
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 14, 2021
890917f
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 14, 2021
911e140
Merge pull request #5635 from dotnet/darc-release/5.0.3xx-4ae46a0d-4b…
jmarolf Oct 14, 2021
49576a0
Merge pull request #5631 from dotnet/darc-release/6.0.1xx-86c07787-b9…
jmarolf Oct 14, 2021
d9306cd
Merge branch 'release/6.0.1xx' into merges/release/5.0.3xx-to-release…
jmarolf Oct 14, 2021
5cac3a6
Merge branch 'main' into merges/release/6.0.1xx-to-main
jmarolf Oct 14, 2021
7a34a2e
Merge pull request #5630 from dotnet/merges/release/6.0.1xx-to-main
dotnet-bot Oct 14, 2021
0a03ab2
Merge pull request #5634 from dotnet/darc-main-b85dfd11-fb3d-4787-968…
jmarolf Oct 14, 2021
de169e1
Merge pull request #5632 from dotnet/merges/release/5.0.3xx-to-releas…
dotnet-bot Oct 14, 2021
de45465
Merge branch 'main' into merges/release/6.0.1xx-to-main
jmarolf Oct 14, 2021
8bd891c
Merge pull request #5638 from dotnet/merges/release/6.0.1xx-to-main
dotnet-bot Oct 14, 2021
c87d92f
Merge pull request #5642 from dotnet/merges/release/6.0.1xx-to-main
dotnet-bot Oct 14, 2021
c0572ac
Merge branch 'release/6.0.1xx' into merges/release/5.0.3xx-to-release…
jmarolf Oct 15, 2021
01fd4bf
Add end-to-end testing to the definition of done for .NET Analyzers (…
jeffhandley Oct 15, 2021
6f17ca1
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 15, 2021
adea797
Split throw and yield parts of a function to avoid laziness issue
Evangelink Jul 22, 2021
b674221
Add test
Evangelink Sep 15, 2021
37c2063
Remove unused generic types
Evangelink Jul 26, 2021
161663a
Remove sub-classes
Evangelink Oct 15, 2021
3e2a50b
Update CA1010 to consider IReadOnlyXXX as valid counterpart
Evangelink Jul 22, 2021
5c50f6c
Remove unwanted change
Evangelink Jul 22, 2021
61ce36b
Use StringBuilder instead of string concat in loops
Evangelink Jul 21, 2021
7d28d02
Address review comments
Evangelink Jul 26, 2021
450d1ae
Merge pull request #5644 from dotnet/darc-release/6.0.1xx-39522458-73…
jmarolf Oct 15, 2021
2b93320
Merge pull request #5641 from dotnet/merges/release/5.0.3xx-to-releas…
dotnet-bot Oct 15, 2021
10b42a5
Mark CA2252 as Error severity (#5637)
jeffhandley Oct 15, 2021
4b48f35
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 16, 2021
23fab74
Merge pull request #5648 from dotnet/darc-release/6.0.1xx-a9c9252b-d7…
jmarolf Oct 16, 2021
1f177a2
Merge branch 'main' into merges/release/6.0.1xx-to-main
jmarolf Oct 16, 2021
6ae5052
Merge pull request #5647 from dotnet/merges/release/6.0.1xx-to-main
dotnet-bot Oct 16, 2021
82a8f3d
[main] Update dependencies from dotnet/arcade (#5643)
dotnet-maestro[bot] Oct 16, 2021
9f667e4
Merge branch 'main' into merges/release/6.0.1xx-to-main
jmarolf Oct 17, 2021
01f57af
Merge pull request #5649 from dotnet/merges/release/6.0.1xx-to-main
dotnet-bot Oct 17, 2021
ab87232
VB support for the virtual methods in DetectPreviewFeatureAnalyzer (#…
pgovind Oct 18, 2021
547cafd
Switch to stable RTM branding (#5651)
mmitche Oct 19, 2021
bae5ca7
Merge pull request #5654 from dotnet/merges/release/6.0.1xx-to-main
dotnet-bot Oct 19, 2021
548fdb3
[main] Update dependencies from dotnet/arcade (#5650)
dotnet-maestro[bot] Oct 19, 2021
35483b7
Merge pull request #5655 from dotnet/merges/release/6.0.1xx-to-main
dotnet-bot Oct 19, 2021
7eb0fdd
Merge remote-tracking branch 'origin/main' into merge-multiple-public…
twsouthwick Oct 19, 2021
7b6b840
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 19, 2021
c750b5a
Merge pull request #5656 from dotnet/darc-release/6.0.1xx-4bdc7958-ed…
jmarolf Oct 20, 2021
92d7d36
Do not mark .NET 7 packages as stable
jmarolf Oct 20, 2021
b0e4d59
Merge branch 'main' into merges/release/6.0.1xx-to-main
jmarolf Oct 20, 2021
b5681ba
Merge pull request #5657 from dotnet/merges/release/6.0.1xx-to-main
dotnet-bot Oct 20, 2021
ed984cd
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Oct 20, 2021
d581cc4
Merge pull request #5659 from dotnet/darc-main-e367c9d0-895d-4034-b7f…
jmarolf Oct 20, 2021
428861b
Merge pull request #5319 from buyaa-n/add_regression_test
jmarolf Oct 20, 2021
4b392b6
[Code Metrics] Upgrade MSBuild locator version
mavasani Oct 21, 2021
2771ee3
Merge pull request #5662 from mavasani/UpdateMSBuildLocator
mavasani Oct 21, 2021
414e488
Bump version to 3.3.4
JoeRobich Oct 21, 2021
9cd12bf
[New Analyzer/Fixer] Prefer static HashData method over ComputeHash (…
wzchua Oct 22, 2021
c38bd19
Merge pull request #5605 from NewellClark/5442-fix-DiagnosticDescript…
mavasani Oct 22, 2021
fcf02cb
Update sairf files
JoeRobich Oct 22, 2021
54be96b
Post release activities after release 3.3.3
JoeRobich Oct 22, 2021
1c69c03
A final newline to markdown files
JoeRobich Oct 22, 2021
7b518a9
[main] Update dependencies from dotnet/arcade (#5667)
dotnet-maestro[bot] Oct 23, 2021
6b660b3
fix warnings about using IsKind
jmarolf Oct 23, 2021
a46689a
Merge pull request #5670 from dotnet/dev/jorobich/bump-version
jmarolf Oct 23, 2021
c43f748
Localized file check-in by OneLocBuild Task: Build definition ID 830:…
dotnet-bot Oct 23, 2021
44b5783
Merge pull request #5676 from dotnet/locfiles/e1107a0e-1cc2-49b1-bc2d…
github-actions[bot] Oct 23, 2021
b67dc4e
Merge pull request #5351 from Youssef1313/patch-14
mavasani Oct 25, 2021
e2fb1d9
Merge pull request #5295 from Evangelink/generic
mavasani Oct 25, 2021
7692f14
Merge pull request #5271 from Evangelink/stringbuilder
mavasani Oct 25, 2021
f70b162
Merge pull request #5275 from Evangelink/yield-throw
mavasani Oct 25, 2021
1155f09
Merge pull request #5277 from Evangelink/simplify-linq
mavasani Oct 25, 2021
be5c172
Raise code fix for each applicable doc
twsouthwick Oct 25, 2021
5cdee2f
convert to extension methods
twsouthwick Oct 25, 2021
736c867
[main] Update dependencies from dotnet/arcade (#5677)
dotnet-maestro[bot] Oct 26, 2021
bcf816d
Fix globalConfig generator tool
mavasani Oct 27, 2021
d5f910b
Merge pull request #5681 from mavasani/Issue5679
mavasani Oct 27, 2021
3541eb2
[main] Update dependencies from dotnet/arcade (#5680)
dotnet-maestro[bot] Oct 28, 2021
0141deb
[main] Update dependencies from dotnet/arcade (#5686)
dotnet-maestro[bot] Oct 30, 2021
7a0a1d1
Update dependencies from https://github.com/dotnet/arcade build 20211…
dotnet-maestro[bot] Nov 2, 2021
6b51a0d
Add using
twsouthwick Nov 2, 2021
3bf2b00
Merge pull request #5422 from twsouthwick/merge-multiple-public-apis
jmarolf Nov 2, 2021
43b395b
Update CI build links
jmarolf Nov 2, 2021
dcbacc7
Merge pull request #5691 from dotnet/darc-main-d461f64f-4f2f-4f23-b85…
jmarolf Nov 2, 2021
f3bdbd1
Merge pull request #5692 from dotnet/dav/jmarolf/updating-ci-links
jmarolf Nov 3, 2021
d69cfb4
Update Versions.props
jmarolf Nov 3, 2021
fb8bffa
update sarif file
jmarolf Nov 3, 2021
4194a56
Fix CS2014 handling of stackalloc in a foreach expression (#5700)
stephentoub Nov 4, 2021
62a5cb1
Localized file check-in by OneLocBuild Task: Build definition ID 830:…
dotnet-bot Nov 4, 2021
380759d
Merge pull request #5702 from dotnet/locfiles/280c7433-4c14-4a30-957b…
github-actions[bot] Nov 4, 2021
6f17918
Merge pull request #5699 from dotnet/dev/jmarolf/bump-version-number-…
jmarolf Nov 4, 2021
8cc85d9
[main] Update dependencies from dotnet/arcade (#5701)
dotnet-maestro[bot] Nov 5, 2021
3d6ccca
Merge branch 'main' into merges/release/6.0.2xx-to-main
jmarolf Nov 5, 2021
9d1ccf2
Fix #4147 - no more noisy pragmas needed for 'new System.IO.MemoryStr…
TimLovellSmith Nov 11, 2021
8ee7700
Declare MemoryStreamNamedType.get in the public API.
TimLovellSmith Nov 11, 2021
d232b7d
Merge pull request #5716 from TimLovellSmith/noMorePragmaWarningDisab…
mavasani Nov 15, 2021
50fab46
Fix CA1805 missing trivia (#5531)
wzchua Nov 15, 2021
e2d60ad
Fix CA1850 codefix not taking the original fully-qualified name into …
wzchua Nov 15, 2021
6d3dee3
Fix CA1850 codefix to keep trivia if it's interesting (#5703)
wzchua Nov 16, 2021
5d4c350
[main] Update dependencies from dotnet/arcade (#5708)
dotnet-maestro[bot] Nov 17, 2021
09f855d
Merge pull request #5705 from dotnet/merges/release/6.0.2xx-to-main
dotnet-bot Nov 17, 2021
904615b
Replace rtf files by txt files
Evangelink Nov 18, 2021
0127d4b
Update vsixmanifests
Evangelink Nov 18, 2021
af425ef
Update replaceme nuspec
Evangelink Nov 18, 2021
1704643
Fix a bunch of RS1024 on Equals
Evangelink Jul 22, 2021
60544bb
Address review comments
Evangelink Jul 23, 2021
867fbf7
Fix file header
Evangelink Nov 18, 2021
1692f6c
Merge branch 'main' into cleanup
Youssef1313 Nov 19, 2021
e407040
Revert potentially problematic changes
Youssef1313 Nov 19, 2021
af259f7
Use an initializer for SupportedDiagnostics to guarantee one-time arr…
Youssef1313 Nov 19, 2021
634523f
Few more fixes
Youssef1313 Nov 19, 2021
fdd505b
Fix extension
Evangelink Nov 19, 2021
a15fc51
Use ArrayBuilder instead of ImmutableArray.Builder
Evangelink Nov 19, 2021
9974368
Update src/Utilities/Compiler/Extensions/ISymbolExtensions.cs
Youssef1313 Nov 19, 2021
7dce6b7
Remove unused method
Evangelink Nov 20, 2021
75fd39d
Remove un-needed pragma
Evangelink Nov 20, 2021
90089d9
[main] Update dependencies from dotnet/arcade (#5736)
dotnet-maestro[bot] Nov 20, 2021
57ab68e
Make DiagnosticDescriptors readonly
Youssef1313 Nov 19, 2021
8d27b16
Merge pull request #5729 from Evangelink/rtf-to-txt
jmarolf Nov 20, 2021
a4ffd4f
Merge pull request #5252 from Youssef1313/cleanup
mavasani Nov 22, 2021
5e16834
Remove unused project
Evangelink Nov 20, 2021
4e856fe
Address review comments
Evangelink Nov 22, 2021
fb5101a
CA1841: do not report on expression tree contexts
Evangelink Nov 22, 2021
de1aa7d
Revert whitespace changes
Evangelink Nov 22, 2021
7959180
More whitespace revert
Evangelink Nov 22, 2021
226aaa7
CA1827 CA1829 CA1836: Do not report within expression tree
Evangelink Nov 22, 2021
054f79c
Remove the full tools folder
Evangelink Nov 22, 2021
9b92dfc
Merge pull request #5741 from Evangelink/remove-unused-project
mavasani Nov 23, 2021
6afbdd9
Merge pull request #5743 from Evangelink/cleanup
mavasani Nov 23, 2021
136ee86
Merge pull request #5734 from Youssef1313/supported-diagnostics-initi…
mavasani Nov 23, 2021
577deb8
Merge pull request #5735 from Youssef1313/readonly
mavasani Nov 23, 2021
b6a3800
Merge pull request #5745 from Evangelink/CA1841-expression-tree
mavasani Nov 23, 2021
aeb0792
Merge pull request #5298 from Evangelink/duplicate-methods
mavasani Nov 23, 2021
d1c0f4a
Update src/Utilities/Compiler/SymbolEqualityComparer.cs
mavasani Nov 23, 2021
ffd024e
Merge pull request #5281 from Evangelink/RS1024-equals
mavasani Nov 23, 2021
79746ec
Add tests and fix broken case for CA1836
Evangelink Dec 4, 2021
f5c71f6
Merge pull request #5279 from Evangelink/CA1010-readonly
mavasani Dec 9, 2021
dd100d6
Update to .NET SDK 6.0.100
sharwell Dec 10, 2021
e56f34e
Fix incorrect targeting of net6.0 on unsupported platform
sharwell Dec 13, 2021
cc36e17
Allow GenerateAnalyzerNuspec to roll forward at execution time
sharwell Dec 13, 2021
e101c37
Merge pull request #5765 from sharwell/update-sdk
sharwell Dec 13, 2021
f309e56
Handle 'CodeAnalysisTreatWarningsAsErrors' correctly in props/targets
mavasani Dec 24, 2021
ee2deb6
Avoid Path.GetFileName allocations in AdditionalFiles check
sharwell Jan 7, 2022
c604732
Merge pull request #5786 from sharwell/path-allocs
sharwell Jan 10, 2022
351f1f3
Localized file check-in by OneLocBuild Task: Build definition ID 830:…
dotnet-bot Jan 10, 2022
a6e8e98
Support all Debug.Assert(...) overloads in flow analysis (#5764)
buyaa-n Jan 14, 2022
62d2921
Localized file check-in by OneLocBuild Task: Build definition ID 830:…
dotnet-bot Jan 14, 2022
107d82a
Merge pull request #5788 from dotnet/locfiles/55e62586-040e-4268-9803…
github-actions[bot] Jan 14, 2022
da95eba
Update RulesMissingDocumentation.md
Youssef1313 Jan 15, 2022
c1736d0
Merge pull request #5792 from Youssef1313/patch-14
mavasani Jan 15, 2022
452bf69
Merge pull request #5746 from Evangelink/CA1827-CA1829-CA1836-express…
mavasani Jan 17, 2022
310d15c
Merge pull request #4644 from Evangelink/CS8618
mavasani Jan 17, 2022
94ca589
Add README.md
mavasani Jan 17, 2022
3c9fa75
Fix markdown to lint errors
mavasani Jan 17, 2022
88d5d26
Add newline
mavasani Jan 17, 2022
c314521
Merge pull request #5776 from mavasani/CodeAnalysisTreatWarningsAsErrors
mavasani Jan 17, 2022
0d024d1
Use WellKnownTypeNames
Youssef1313 Jan 17, 2022
41ab312
Test codefix
Youssef1313 Jan 17, 2022
c446a84
Don't split codefix and analyzer tests
Youssef1313 Jan 17, 2022
5d376e2
Don't remove null suppression
Youssef1313 Jan 17, 2022
954780b
Update DoNotUseEnumerableMethodsOnIndexableCollectionsInsteadUseTheCo…
Youssef1313 Jan 17, 2022
218d961
Fix PR template
Youssef1313 Jan 17, 2022
ebc9fc3
Refactor tests
Youssef1313 Jan 17, 2022
f14cf77
Fix CA1050 (declare types in namespaces) false positive with top-leve…
Youssef1313 Jan 17, 2022
bbc1c39
Rename `AnalyzeSymbol` to `AnalyzeNamedType`
Youssef1313 Jan 17, 2022
3ae8025
Update UseNameofInPlaceOfString.cs
Youssef1313 Jan 17, 2022
429c2ee
Update PULL_REQUEST_TEMPLATE.md
Youssef1313 Jan 17, 2022
6c43d21
Merge pull request #5800 from Youssef1313/ca1050-top-level
mavasani Jan 18, 2022
3312d4d
Don't throw exception: "Passing '.editorconfig' files as additional f…
Youssef1313 Jan 18, 2022
1818a53
Merge pull request #5803 from Youssef1313/patch-17
mavasani Jan 18, 2022
f471d33
Update PostReleaseActivities.md (#5757)
Youssef1313 Jan 18, 2022
c6b79d5
Rename
Youssef1313 Jan 19, 2022
becced7
Update README.md
Youssef1313 Jan 22, 2022
3df18d2
Update README.md
Youssef1313 Jan 22, 2022
1284917
Don't report compare symbols correctly for custom comparers
Youssef1313 Jan 23, 2022
66fb852
One more fix
Youssef1313 Jan 23, 2022
cdc44b2
Update src/Microsoft.CodeAnalysis.Analyzers/Core/MetaAnalyzers/Compar…
Youssef1313 Jan 23, 2022
19efd30
Update CompareSymbolsCorrectlyAnalyzer.cs
Youssef1313 Jan 25, 2022
51fbca9
Apply suggestions from code review
Youssef1313 Jan 25, 2022
a70ef8e
Address review comments
Youssef1313 Jan 27, 2022
824df07
Fix crash and record diagnostic location in preview feature analyzer …
Youssef1313 Jan 27, 2022
700bc93
Merge pull request #5798 from Youssef1313/patch-14
mavasani Jan 28, 2022
f1c0532
Merge pull request #5796 from Youssef1313/ca1826-nullforgiving-fix
mavasani Jan 28, 2022
9f2324c
Apply suggestions from code review
Youssef1313 Jan 28, 2022
50d35c8
Merge pull request #5806 from Youssef1313/patch-11
mavasani Jan 28, 2022
3405da8
Merge pull request #5807 from Youssef1313/compare-symbols-correctly-fp
mavasani Jan 31, 2022
07d99dc
Merge pull request #5063 from Youssef1313/patch-16
mavasani Jan 31, 2022
5169862
use dotnet test instead of xunit.runner
jmarolf Jan 31, 2022
95a8381
use --blame on windows run
jmarolf Jan 31, 2022
5c68488
add blame arguments to props file
jmarolf Jan 31, 2022
f3cd078
publish test results
jmarolf Jan 31, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"postCreateCommand": "devinit init"
}
7 changes: 7 additions & 0 deletions .devcontainer/devinit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"run": [
{
"tool": "require-dotnetcoresdk"
}
]
}
62 changes: 49 additions & 13 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ indent_style = space
# https://github.com/dotnet/roslyn-analyzers/issues/3389
dotnet_diagnostic.RS1024.severity = none

# IDE0078: Use pattern matching
# https://github.com/dotnet/roslyn/issues/51691
# https://github.com/dotnet/roslyn/issues/51693
dotnet_diagnostic.IDE0078.severity = silent

# Code files
[*.{cs,csx,vb,vbx}]
indent_size = 4
Expand Down Expand Up @@ -75,11 +80,6 @@ dotnet_style_prefer_inferred_tuple_names = true:suggestion
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
dotnet_style_prefer_simplified_interpolation = true:suggestion

# Dispose rules (CA2000 and CA2213) ported to IDE analyzers. We already execute the CA rules on the repo, so disable the IDE ones.
dotnet_diagnostic.IDE0067.severity = none
dotnet_diagnostic.IDE0068.severity = none
dotnet_diagnostic.IDE0069.severity = none

### CSharp code style settings ###
[*.cs]

Expand All @@ -97,10 +97,6 @@ csharp_style_expression_bodied_operators = false:none
csharp_style_expression_bodied_local_functions = false:none
csharp_style_expression_bodied_lambdas = true:none

# Prefer property-like constructs to have an expression-body
csharp_style_expression_bodied_properties = true:none
csharp_style_expression_bodied_indexers = true:none
csharp_style_expression_bodied_accessors = true:none

# Pattern matching preferences
csharp_style_pattern_matching_over_as_with_null_check = true:warning
Expand Down Expand Up @@ -185,13 +181,17 @@ visual_basic_style_unused_value_assignment_preference = unused_local_variable:wa
### Configuration for IDE code style by diagnostic IDs ###
[*.{cs,vb}]

# Default severity for all IDE code style rules with category 'Style'
dotnet_analyzer_diagnostic.category-Style.severity = warning

# Default severity for all IDE code quality rules with category 'CodeQuality'
dotnet_analyzer_diagnostic.category-CodeQuality.severity = warning

# IDE0066: Convert switch statement to expression
dotnet_diagnostic.IDE0066.severity = suggestion

# IDE0073: File header
file_header_template = Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
file_header_template = Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.

# IDE0001: Name can be simplified
dotnet_diagnostic.IDE0001.severity = silent
Expand All @@ -202,9 +202,6 @@ dotnet_diagnostic.IDE0002.severity = silent
# IDE0003: Name can be simplified
dotnet_diagnostic.IDE0003.severity = silent

# IDE005_gen: Remove unnecessary usings in generated code
dotnet_diagnostic.IDE0005_gen.severity = silent

# IDE0007: Use 'var' instead of explicit type
dotnet_diagnostic.IDE0007.severity = silent

Expand Down Expand Up @@ -233,6 +230,18 @@ dotnet_diagnostic.IDE0065.severity = silent
# IDE0072: Populate switch
dotnet_diagnostic.IDE0072.severity = silent

# IDE0083: Use pattern matching
dotnet_diagnostic.IDE0083.severity = silent

# IDE0120: Simplify linq expression
dotnet_diagnostic.IDE0120.severity = silent

# IDE0130: Namespace does not match folder structure
dotnet_diagnostic.IDE0130.severity = silent

# IDE0150: Null check can be clarified
dotnet_diagnostic.IDE0150.severity = silent

### Configuration for FxCop analyzers executed on this repo ###
[*.{cs,vb}]

Expand All @@ -251,8 +260,35 @@ dotnet_code_quality.CA1720.api_surface = public
# CA1715: Identifiers should have correct prefix
dotnet_code_quality.CA1715.exclude_single_letter_type_parameters = true

# CA1002: Do not expose generic lists
dotnet_diagnostic.CA1002.severity = suggestion

# CA1024: Use properties where appropriate
dotnet_diagnostic.CA1024.severity = suggestion

# CA1033: Interface methods should be callable by child types
dotnet_diagnostic.CA1033.severity = suggestion

# CA1307: Specify StringComparison for clarity
dotnet_diagnostic.CA1307.severity = suggestion

# CA1711: Identifiers should not have incorrect suffix
dotnet_diagnostic.CA1711.severity = suggestion

# CA1309: Use ordinal string comparison
dotnet_diagnostic.CA1309.severity = suggestion

### Configuration for PublicAPI analyzers executed on this repo ###
[*.{cs,vb}]

# Analyzers bail-out if the PublicAPI.*.txt file is not found
dotnet_public_api_analyzer.require_api_files = true

### Configuration for vs-threading analyzers executed on this repo ###
[*.{cs,vb}]

# VSTHRD002: Avoid problematic synchronous waits
dotnet_diagnostic.VSTHRD002.severity = none

# VSTHRD011: Use AsyncLazy<T>
dotnet_diagnostic.VSTHRD011.severity = none
20 changes: 15 additions & 5 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: Bug report
about: Report a bug, false-positive or false-negative
about: Report a bug, false-positive or false-negative for a CAxxxx rule. For IDExxxx, please open an issue in dotnet/roslyn repository.
title: ''
labels: ''
assignees: ''
Expand All @@ -9,19 +9,29 @@ assignees: ''

### Analyzer

**Diagnostic ID**: [CA2013](https://docs.microsoft.com/visualstudio/code-quality/ca2013): `Do not use ReferenceEquals with value types`
**Diagnostic ID**: [CA2013](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2013): `Do not use ReferenceEquals with value types`

### Analyzer source

**SDK**: [Built-in CA analyzers in .NET 5 SDK or later](https://docs.microsoft.com/dotnet/fundamentals/productivity/code-analysis)

**Version**: [SDK 5.0.100-preview.8](https://dotnet.microsoft.com/download/dotnet/5.0)
**Version**: [SDK 5.0.100](https://dotnet.microsoft.com/download/dotnet/5.0)

<!--
Note: Updates to NuGet package are more frequent than SDK, which means the NuGet package has fixes that haven't yet made it into the SDK.
Please check whether you can reproduce the bug you encountered in the latest NuGet package.
-->

_OR_

**NuGet Package**: [Microsoft.CodeAnalysis.FxCopAnalyzers](https://www.nuget.org/packages/Microsoft.CodeAnalysis.FxCopAnalyzers)
**NuGet Package**: [Microsoft.CodeAnalysis.NetAnalyzers](https://www.nuget.org/packages/Microsoft.CodeAnalysis.NetAnalyzers)

**Version**: v3.3.0 (Latest)
**Version**: 5.0.3 (Latest)

<!--
NOTE: `Microsoft.CodeAnalysis.FxCopAnalyzers` package has been deprecated in favor of 'Microsoft.CodeAnalysis.NetAnalyzers', that ships with the .NET SDK.
Please refer to https://docs.microsoft.com/visualstudio/code-quality/migrate-from-fxcop-analyzers-to-net-analyzers to migrate to .NET analyzers.
-->

### Describe the bug

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/rule-improvement.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ assignees: ''

### Analyzer

**Diagnostic ID**: [CA1716](https://docs.microsoft.com/visualstudio/code-quality/ca1716)
**Diagnostic ID**: [CA1716](https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1716)

### Describe the improvement

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/suggest-a-new-rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ assignees: ''

---

<!-- Please refer to https://github.com/dotnet/roslyn-analyzers/blob/master/GuidelinesForNewRules.md -->
<!-- Please refer to https://github.com/dotnet/roslyn-analyzers/blob/main/GuidelinesForNewRules.md -->

### Describe the problem you are trying to solve

Expand Down
20 changes: 20 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!--

Make sure you have read the contribution guidelines:
- https://docs.microsoft.com/contribute/dotnet/dotnet-contribute-code-analysis#contribute-docs-for-caxxxx-rules
- https://github.com/dotnet/roslyn-analyzers/blob/main/GuidelinesForNewRules.md

If your Pull Request is doing one of the following:

- Adding a new diagnostic analyzer or a code fix
- Adding or updating resource strings used by analyzers and code fixes
- Updating analyzer package versions in [Versions.props](../eng/Versions.props)

Then, make sure to run `msbuild /t:pack /v:m` in the repository root; otherwise, the CI build will fail.

- This command must be run from a Visual Studio Developer Command Prompt
- Alternatively, `dotnet msbuild RoslynAnalyzers.sln -t:pack -v:m` can be used from a standard terminal window

Note: Consider merging the PR base branch (`2.9.x`, `main`, or `release/*`) into your branch before you run the pack command to reduce merge conflicts.

-->
48 changes: 48 additions & 0 deletions .github/workflows/community-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Label community PRs
on:
pull_request_target:
types: [opened]
permissions:
issues: write
pull-requests: write
jobs:
add_community_label:
runs-on: ubuntu-latest
if: ${{ github.repository == 'dotnet/roslyn-analyzers' && github.event.pull_request.user.login != 'dotnet-bot' && github.event.pull_request.user.login != 'dotnet-maestro[bot]' }}
steps:
- name: Get data
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORGANIZATION: dotnet
REPOSITORY: roslyn-analyzers
LABEL_NAME: Community
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
run: |
gh api graphql -f query='
query($org: String!, $repo: String!, $pull: Int!, $label: String!) {
repository(name: $repo, owner: $org) {
label(name: $label) {
id
}
pullRequest(number: $pull) {
authorAssociation
}
}
}' -f org=$ORGANIZATION -f repo=$REPOSITORY -F pull=$PULL_REQUEST_NUMBER -f label="$LABEL_NAME" > data.json

cat data.json
echo 'LABEL_ID='$(jq -r '.data.repository.label.id' data.json) >> $GITHUB_ENV
echo 'AUTHOR_ASSOCIATION='$(jq -r '.data.repository.pullRequest.authorAssociation' data.json) >> $GITHUB_ENV

- name: Assign label
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_ID: ${{ github.event.pull_request.node_id }}
if: ${{ env.LABEL_ID != '' && env.LABEL_ID != 'null' && env.AUTHOR_ASSOCIATION != 'MEMBER' }}
run: |
gh api graphql -f query='
mutation($pull: ID!, $label: ID!) {
addLabelsToLabelable(input: {labelableId: $pull, labelIds: [$label]}) {
clientMutationId
}
}' -f pull=$PULL_REQUEST_ID -f label=$LABEL_ID
28 changes: 28 additions & 0 deletions .github/workflows/enable-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Enable auto merge
on:
pull_request_target:
types: [opened, ready_for_review]
permissions:
contents: write
jobs:
add_milestone:
runs-on: ubuntu-latest
if: ${{ github.repository == 'dotnet/roslyn-analyzers' && github.event.pull_request.user.login == 'dotnet-bot' && startsWith(github.event.pull_request.title, 'Localized file check-in') }}
steps:
- name: Enable pull request auto-merge
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_ID: ${{ github.event.pull_request.node_id }}
run: |
gh api graphql -f query='
mutation($pull: ID!) {
enablePullRequestAutoMerge(input: {pullRequestId: $pull}) {
pullRequest {
id
number
autoMergeRequest {
mergeMethod
}
}
}
}' -f pull=$PULL_REQUEST_ID
53 changes: 53 additions & 0 deletions .github/workflows/milestone-tracking.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Milestone tracking
on:
pull_request_target:
types: [closed]
permissions:
issues: write
pull-requests: write
jobs:
add_milestone:
runs-on: ubuntu-latest
if: ${{ github.repository == 'dotnet/roslyn-analyzers' && github.event.pull_request.merged_at != null && github.event.pull_request.milestone == null && github.event.pull_request.base.ref == 'main' }}
steps:
- name: Get milestone data
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORGANIZATION: dotnet
REPOSITORY: roslyn-analyzers
MILESTONE_NAME: vNext
run: |
gh api graphql -f query='
query($org: String!, $repo: String!, $milestone: String!) {
repository(name: $repo, owner: $org) {
milestones(query: $milestone, first: 2) {
nodes {
id
title
}
}
}
}' -f org=$ORGANIZATION -f repo=$REPOSITORY -f milestone="$MILESTONE_NAME" > milestone_data.json

echo 'MILESTONE_ID='$(jq -r 'if (((.data.repository.milestones.nodes | length) == 1) and .data.repository.milestones.nodes[0].title == $MILESTONE_NAME) then .data.repository.milestones.nodes[0].id else "" end' --arg MILESTONE_NAME "$MILESTONE_NAME" milestone_data.json) >> $GITHUB_ENV

- name: Assign milestone
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_ID: ${{ github.event.pull_request.node_id }}
if: ${{ env.MILESTONE_ID != '' }}
run: |
gh api graphql -f query='
mutation($pull: ID!, $milestone: ID!) {
updatePullRequest(input: {pullRequestId: $pull, milestoneId: $milestone}) {
pullRequest {
id
number
milestone {
id
number
title
}
}
}
}' -f pull=$PULL_REQUEST_ID -f milestone=$MILESTONE_ID
52 changes: 52 additions & 0 deletions .github/workflows/review-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Review automatic pull requests
on:
pull_request_target:
types: [opened, ready_for_review]
permissions:
issues: write
pull-requests: write
jobs:
auto_review:
runs-on: ubuntu-latest
if: ${{ github.repository == 'dotnet/roslyn-analyzers' && (github.event.pull_request.user.login == 'dotnet-bot' || github.event.pull_request.user.login == 'dotnet-maestro[bot]') }}
steps:
- name: Create review
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PULL_REQUEST_ID: ${{ github.event.pull_request.node_id }}
run: |
gh api graphql -f query='
mutation($pull: ID!) {
addPullRequestReview(input: {pullRequestId: $pull}) {
pullRequestReview {
id
}
}
}' -f pull=$PULL_REQUEST_ID > data.json

cat data.json
echo 'REVIEW_ID='$(jq -r '.data.addPullRequestReview.pullRequestReview.id' data.json) >> $GITHUB_ENV

- name: Submit approval
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ env.REVIEW_ID != '' && env.REVIEW_ID != 'null' && !contains(github.event.pull_request.body, 'Updates sdk.version') }}
run: |
gh api graphql -f query='
mutation($review: ID!) {
submitPullRequestReview(input: {pullRequestReviewId: $review, event: APPROVE, body: "Auto-approve"}) {
clientMutationId
}
}' -f review=$REVIEW_ID

- name: Submit change request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ env.REVIEW_ID != '' && env.REVIEW_ID != 'null' && contains(github.event.pull_request.body, 'Updates sdk.version') }}
run: |
gh api graphql -f query='
mutation($review: ID!) {
submitPullRequestReview(input: {pullRequestReviewId: $review, event: REQUEST_CHANGES, body: "This PR changes the .NET SDK version. Review required from @dotnet/roslyn-infrastructure before merging."}) {
clientMutationId
}
}' -f review=$REVIEW_ID
Loading