Commit graph

152 commits

Author SHA1 Message Date
Aditya Patwardhan 52b6d89407
Update to latest .NET 6 GA build 6.0.100-rtm.21527.11 (#16309) 2021-10-28 11:40:52 -07:00
Travis Plunk 14ea042cec
Revert "Update to use .NET 6 GA build (#16296)" (#16308)
This reverts commit 6302f4815a.
2021-10-26 15:57:59 -07:00
Aditya Patwardhan 6302f4815a
Update to use .NET 6 GA build (#16296) 2021-10-22 23:12:00 +00:00
Aditya Patwardhan 45b80a555a
Update .NET 6 to version 6.0.100-rc.2.21505.57 (#16249) 2021-10-15 13:51:26 -07:00
Aditya Patwardhan 55ccbb6803
Update .NET to 6.0.100-rc.1.21458.32 (#16066) 2021-09-13 16:45:10 -07:00
Aditya Patwardhan 7fc60d1d5f
Bump .NET to 6.0.100-rc.1.21430.44 (#16028) 2021-09-01 10:35:27 -07:00
github-actions[bot] d33b223674
Update .NET SDK version from 6.0.100-preview.6.21355.2 to 6.0.100-rc.1.21426.1 (#15648) 2021-08-26 13:07:43 -07:00
xtqqczze 0f2f23f67a
Enable IDE0049 PreferBuiltInOrFrameworkType (#14491) 2021-07-28 12:39:14 -07:00
Aditya Patwardhan 31a4528302
Update to .NET 6 Preview 6 and use crossgen2 (#15763) 2021-07-19 16:06:39 -07:00
Aditya Patwardhan 7ead137407
Update to .NET Preview 6 SDK (#15452) 2021-05-25 19:24:28 -07:00
Aditya Patwardhan 4a7bea0082
Update .NET to 6.0.0-preview.3 (#15221) 2021-04-13 15:45:15 -07:00
Aditya Patwardhan 5c4a80e2e2
Update .NET to version 6.0.100-preview.2.21155.3 (#15007) 2021-03-15 11:22:40 -07:00
Aditya Patwardhan b836de8223
Bump .NET framework to 6.0.0-preview.1 (#14719) 2021-02-08 17:13:33 -08:00
xtqqczze b7a431a442
Fix SA1504: All accessors should be single-line or multi-lin (#14241)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1504.md
2021-01-09 12:44:38 +05:00
xtqqczze 5f3dd938b7
Use string.Contains(char) overload (#14368) 2020-12-19 20:00:51 +05:00
xtqqczze dc9ecd9a85
Use AsSpan/AsMemory slice constructor (#14265)
* Use AsSpan slice constructor

* Use AsMemory slice constructor
2020-11-27 13:05:41 +05:00
xtqqczze c7bdb24ff3
Mark local variable as const (#13217)
RCS1118: Mark local variable as const https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1118.md
2020-11-24 20:06:16 +05:00
xtqqczze 4f3d0a650f
Fix CA1822: Mark members as static part 7 (#14230)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822
2020-11-23 22:48:54 +05:00
xtqqczze fa8b94e6e9
Fix SA1122: Use string.Empty for empty strings (#14218)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1122.md
2020-11-23 14:09:20 +05:00
xtqqczze 7dee446324
Enable SA1006: Preprocessor keywords should not be preceded by space (#14052)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1006.md
2020-11-21 20:00:23 +05:00
xtqqczze 83688be8a4
Enable SA1002: Semicolons should be spaced correctly (#14197)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1002.md
2020-11-21 19:30:59 +05:00
xtqqczze cba73e724f
Enable SA1106: Code should not contain empty statements (#13964)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1106.md
2020-11-21 19:26:44 +05:00
xtqqczze 4d2965af29
Autofix SA1518: The code must not contain extra blank lines at the end of the file (#13574) 2020-11-11 12:15:20 +05:00
xtqqczze 76be8f3ce5
Fix RCS1033: Remove redundant boolean literal part 1 (#13454)
* Remove redundant boolean literal

Autofix RCS1033: Remove redundant boolean literal

* revert changes in System.Management.Automation
2020-11-05 22:23:27 +05:00
xtqqczze eaad6c2235
Fix accessor order (#13538)
* Fix Microsoft.PowerShell.Commands.Utility

* Fix System.Management.Automation

* Fix Microsoft.Management.Infrastructure.CimCmdlets

* Fix Microsoft.PowerShell.Commands.Management

* Fix Microsoft.WSMan.Management
2020-11-05 10:05:50 +05:00
xtqqczze 3ba61069b8
Enable IDE0054: Use compound assignment (#13546)
* Autofix IDE0054
https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0054-ide0074
2020-11-05 09:48:13 +05:00
Aditya Patwardhan e99f055c69
Bump .NET to version 5.0.100-rtm.20526.5 (#13920) 2020-11-02 16:51:35 -08:00
xtqqczze af8558b065
Enable CA1834: Consider using 'StringBuilder.Append(char)' when applicable (#13878)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1834
2020-10-30 12:07:18 +05:00
xtqqczze c4f6bfe771
Fix IDE0044: MakeFieldReadonly part 9 (#13892)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0044
2020-10-29 20:56:03 +05:00
xtqqczze 69ded7777a
Use span-based string.Concat inatead of string.Substring (#13500)
Before:

```csharp
str1 + str2.Substring(...) + str3
```

After:
```csharp
string.Concat(str1, str2.AsSpan(...), str3)
```
2020-10-28 13:01:05 +05:00
Aditya Patwardhan 49b7faa817
Move PowerShell build to .NET 5 RC.2 (#13780) 2020-10-14 11:04:39 -07:00
Dongbo Wang 10237bdeb3
Update PowerShell to build against dotnet 5.0-RC.1 (#13643) 2020-09-23 14:04:01 -07:00
Dongbo Wang 47f3beafcd
Merge branch 'master' into preview.7 2020-09-08 16:27:29 -07:00
xtqqczze 88e706f3d7
Autofix RCS1068: Simplify logical negation (#13555) 2020-09-04 08:40:05 +05:00
Robert Holt 368c8ff3c3 Merged PR 12555: Update .NET version to 5.0.0-preview.8.20407.11
Update .NET version to 5.0.0-preview.8.20407.11
2020-09-03 18:58:21 +00:00
xtqqczze 8f37cced70
Cleanup: remove duplicate words in comments (#13539) 2020-08-31 11:39:00 -07:00
Robert Holt 6a37eb9313
Update to .NET 5 preview 8 (#13530) 2020-08-31 10:38:05 -07:00
xtqqczze 16f0b74187
Cleanup: Remove redundant empty lines (#13404) 2020-08-25 11:29:26 -07:00
Dongbo Wang 4b9b0788ed
Revert "Use is null syntax (#13277)" (#13322)
This reverts commit 6c03776d74.
2020-07-30 16:06:38 -07:00
xtqqczze 6c03776d74
Use is null syntax (#13277)
Replace `== null` with `is null`
2020-07-30 18:04:03 +05:00
github-actions[bot] 9c396aa0ea
Update .NET SDK version from 5.0.100-preview.7.20366.2 to 5.0.100-preview.7.20366.15 (#13200)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-07-22 18:53:33 +05:00
github-actions[bot] 1ed554dde4
Update .NET SDK version from 5.0.100-preview.7.20364.3 to 5.0.100-preview.7.20366.2 (#13192) 2020-07-16 12:12:40 -07:00
github-actions[bot] 7da0742cb6
Update .NET SDK version from 5.0.100-preview.6.20318.15 to 5.0.100-preview.7.20356.2 (#13125) 2020-07-07 12:10:11 -07:00
Aditya Patwardhan 8030889b7b
Update .NET SDK version from 5.0.100-preview.5.20279.10 to 5.0.100-preview.6.20318.15 (#13018) 2020-06-23 17:30:31 -07:00
Aditya Patwardhan 0d75cfdc2d
Revert "Update .NET SDK version from 5.0.100-preview.5.20279.10 to 5.0.100-preview.6.20319.2 (#12992)" (#13017)
This reverts commit ce8dc1e30c.
2020-06-23 11:52:20 -07:00
github-actions[bot] ce8dc1e30c
Update .NET SDK version from 5.0.100-preview.5.20279.10 to 5.0.100-preview.6.20319.2 (#12992) 2020-06-19 11:28:09 -07:00
xtqqczze 0d5d017f0f
Code redundancy fixes (#12916)
* Autofix `RCS1036: Remove redundant empty line`

* Autofix `RCS1037: Remove trailing white-space`

* Autofix `RCS1033: Remove redundant boolean literal`

* Autofix: `RCS1038: Remove empty statement`

* Autofix `RCS1041: Remove empty initializer`

* Autofix `RCS1097: Remove redundant 'ToString' call

* Autofix: `RCS1420: Operator is unnecessary`
2020-06-11 11:25:35 +05:00
xtqqczze e93381e73e
Add readonly modifier to internal static members (#11777)
# PR Summary

* Add readonly modifier to internal static members.

## PR Context

## PR Checklist

- [x] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
    - Use the present tense and imperative mood when describing your changes
- [x] [Summarized changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
- [x] [Make sure all `.h`, `.cpp`, `.cs`, `.ps1` and `.psm1` files have the correct copyright header](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
- [x] This PR is ready to merge and is not [Work in Progress](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress).
    - If the PR is work in progress, please add the prefix `WIP:` or `[ WIP ]` to the beginning of the title (the `WIP` bot will keep its status check at `Pending` while the prefix is present) and remove the prefix when the PR is ready.
- **[Breaking changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes)**
    - [x] None
    - **OR**
    - [ ] [Experimental feature(s) needed](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/reference/6/Microsoft.PowerShell.Core/About/about_Experimental_Features.md)
        - [ ] Experimental feature name(s): <!-- Experimental feature name(s) here -->
- **User-facing changes**
    - [x] Not Applicable
    - **OR**
    - [ ] [Documentation needed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
        - [ ] Issue filed: <!-- Number/link of that issue here -->
- **Testing - New and feature**
    - [x] N/A or can only be tested interactively
    - **OR**
    - [ ] [Make sure you've added a new test if existing tests do not effectively test the code changed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting)
- **Tooling**
    - [x] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
    - **OR**
    - [ ] I have considered the user experience from a tooling perspective and enumerated concerns in the summary. This may include:
        - Impact on [PowerShell Editor Services](https://github.com/PowerShell/PowerShellEditorServices) which is used in the [PowerShell extension](https://github.com/PowerShell/vscode-powershell) for VSCode (which runs in a different PS Host).
        - Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.
        - Impact on [PSScriptAnalyzer](https://github.com/PowerShell/PSScriptAnalyzer) (which provides linting & formatting in the editor extensions).
        - Impact on [EditorSyntax](https://github.com/PowerShell/EditorSyntax) (which provides syntax highlighting with in VSCode, GitHub, and many other editors).
2020-05-31 05:10:22 +00:00
xtqqczze 4e98011833
cleanup: Use coalesce expression (#12829) 2020-05-31 10:01:08 +05:00
xtqqczze 0d5b7f5e6f
Add missing assessibility modifiers (#12820)
# PR Summary

Automated fix of [RCS1018](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1018.md)

## PR Context

## PR Checklist

- [x] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
    - Use the present tense and imperative mood when describing your changes
- [x] [Summarized changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
- [x] [Make sure all `.h`, `.cpp`, `.cs`, `.ps1` and `.psm1` files have the correct copyright header](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
- [x] This PR is ready to merge and is not [Work in Progress](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress).
    - If the PR is work in progress, please add the prefix `WIP:` or `[ WIP ]` to the beginning of the title (the `WIP` bot will keep its status check at `Pending` while the prefix is present) and remove the prefix when the PR is ready.
- **[Breaking changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes)**
    - [x] None
    - **OR**
    - [ ] [Experimental feature(s) needed](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/reference/6/Microsoft.PowerShell.Core/About/about_Experimental_Features.md)
        - [ ] Experimental feature name(s): <!-- Experimental feature name(s) here -->
- **User-facing changes**
    - [x] Not Applicable
    - **OR**
    - [ ] [Documentation needed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)
        - [ ] Issue filed: <!-- Number/link of that issue here -->
- **Testing - New and feature**
    - [x] N/A or can only be tested interactively
    - **OR**
    - [ ] [Make sure you've added a new test if existing tests do not effectively test the code changed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting)
- **Tooling**
    - [x] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
    - **OR**
    - [ ] I have considered the user experience from a tooling perspective and enumerated concerns in the summary. This may include:
        - Impact on [PowerShell Editor Services](https://github.com/PowerShell/PowerShellEditorServices) which is used in the [PowerShell extension](https://github.com/PowerShell/vscode-powershell) for VSCode (which runs in a different PS Host).
        - Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.
        - Impact on [PSScriptAnalyzer](https://github.com/PowerShell/PSScriptAnalyzer) (which provides linting & formatting in the editor extensions).
        - Impact on [EditorSyntax](https://github.com/PowerShell/EditorSyntax) (which provides syntax highlighting with in VSCode, GitHub, and many other editors).
2020-05-31 04:46:24 +00:00