Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-07-24Fix typos (#72709)Adeel Mujahid
2022-07-01Enable CA1727: Use PascalCase for named placeholders (#71444)Eric Erhardt
* Enable CA1727: Use PascalCase for named placeholders Also CA2253: Named placeholders should not be numeric values * Fix MonoProxy logging placeholder names
2022-06-28Enable IDE0170 (Simplify property pattern) and IDE0200 (remove unnecessary ↵Stephen Toub
lambda expression) (#71011) As part of updating the config file with recently added rules, also turn on a few of them.
2022-06-20Enable IDE0031 (Use null propagation) (#70965)Stephen Toub
2022-06-19Enable IDE0030 (Use coalesce expression) (#70948)Stephen Toub
2022-06-19Update C# compiler (#70947)Stephen Toub
Brings in support for required members
2022-06-19Enable IDE0065 (Misplaced using directive) (#70919)Stephen Toub
2022-06-19Enable IDE0100 (Remove redundant equality) (#70896)Stephen Toub
2022-06-19Enable IDE0071 (Simplify interpolation) (#70918)Stephen Toub
2022-06-17Enable IDE0020 (Use pattern matching) (#70523)Stephen Toub
* Enable IDE0020 (Use pattern matching) * Update src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationWriter.cs Co-authored-by: Buyaa Namnan <buyankhishig.namnan@microsoft.com> * Update variable naming Co-authored-by: Buyaa Namnan <buyankhishig.namnan@microsoft.com>
2022-06-17Enable IDE0054 (Use compound assignment) (#70564)Stephen Toub
* Enable IDE0054 (Use compound assignment) * Update src/libraries/System.Data.Common/src/System/Data/Common/StringStorage.cs Co-authored-by: Tanner Gooding <tagoo@outlook.com> Co-authored-by: Tanner Gooding <tagoo@outlook.com>
2022-06-16Enable IDE1005 (Delegate invocation can be simplified) (#70522)Stephen Toub
2022-06-10Enable IDE0029 (Use coalesce expression) (#70506)Stephen Toub
* Enable IDE0029 (Use coalesce expression) * Address PR feedback and a few missed cases
2022-06-10Enable IDE0036 (Modifers are not ordered) (#70502)Stephen Toub
2022-06-10Update analyzer version and fix new findings (#70157)Buyaa Namnan
2022-06-09Enable IDE0110 (Remove unnecessary discard) (#70500)Stephen Toub
2022-06-09Enable IDE0074 (Use compound assignment) (#70402)Stephen Toub
2022-05-01Update Microsoft.CodeAnalysis.NetAnalyzers version (#68724)Stephen Toub
- Delete some now unnecessary pragmas - Enable the new Dictionary.ContainsKey guard rule - Address on violation of the new rule
2022-04-21Enable new CA1311 (ToLower/Upper culture) and CA1852 (seal internal/private ↵Stephen Toub
types) rules (#68268) * Enable new CA1311 (ToLower/Upper culture) and CA1852 (seal internal/private types) CA1311 flagged a few issues, all addressed by using ToLowerInvariant/ToUpperInvariant. CA1852 flagged a bunch that previous cleanups around sealing types missed or that are new since. Sealing types then highlighted places where protected or virtual members were being exposed unnecessarily, so those were fixed, too. Adding sealed to things also highlighted some discrepancies in the order of "unsafe sealed" keywords, where the vast majority in the repo were "sealed unsafe", so I fixed the few that weren't. * Address PR feedback and fix more CI failures * Fix unit test build error
2022-04-21Remove usage of !! from dotnet/runtime (#68178)Stephen Toub
* Remove usage of !! from dotnet/runtime - Use ArgumentNullException.ThrowIfNull instead where possible. It's only usable for projects that only target .NET 6+, and it can't be used in places like this(...) or base(...). - In other cases, if the project already has a ThrowHelper, augment it for null as needed and use that. - For most of the extensions projects, add a ThrowHelper.ThrowIfNull that replicates ArgumentNullException.ThrowIfNull. - For everything else, just use "throw new". * Address PR feedback * Address PR feedback * Remove false positives from searches * Address PR feedback
2022-04-08Updating generic math to support user-defined checked operators (#67714)Tanner Gooding
* Uncomment the user-defined checked operators for generic math * Change SA1000 to be a suggestion until https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3478 can be resolved * Regenerating the System.Runtime ref assembly * Adding tests covering user-defined checked operators in generic math * Remove the checked() context from integer division, since there is no behavioral difference on .NET * Ensure the doc comments around user-defined checked operators are uncommented * Fix some doc comments that shouldn't have been uncommented yet
2022-03-30Enable recently added analyzers (and fix some violations) (#67292)Stephen Toub
2022-03-25Enable CA1822 (Mark members as static) analyzer (#66333)Marek Safar
2022-02-12Remove unused private parameters in SPC (#63015)Marek Safar
2022-02-09Initial roll out of !! (#64720)Stephen Toub
* Bump version of C# compiler This should be reverted when arcade brings in a new enough compiler. * Fix a few new warnings from updating compiler * Enable IDE0190 to employ parameter null checking * Initial roll out of !! * Fix more compiler warnings from upgrade, plus some test fixes / reverts * Fix a few more tests * Disable profiling test
2022-01-24Implement IEquatable<T> on value types overriding Equals (and enable ↵Stephen Toub
CA1066/1077) (#63690)
2022-01-12Enable IDE0059 analyzer: Unnecessary assignment of a value (#63340)Marek Safar
2021-11-14Enable new analyzers in global configs (#60914)Stephen Toub
* Enable new analyzers in global configs * Address PR feedback
2021-10-03Update Microsoft.CodeAnalysis.CSharp.CodeStyle version (#59783)Stephen Toub
2021-09-30Add new analyzers to CodeAnalysis.globalconfig files (#59763)Stephen Toub
2021-09-15Runtime changes for DetectPreviewFeaturesAnalyzer (#59062)Prashanth Govindarajan
* Turn on DetectPreviewFeaturesAnalyzer and runtime changes * Missed decimal * Add comments and update S.Runtime.csproj * sq * sq
2021-08-10Switch to using globalconfig instead of ruleset for analyzer configuration ↵Stephen Toub
(#57144)