Steve Lee
|
59bce18372
|
Fix Get-FormatData to not cast a type incorrectly (#21157)
|
2024-08-26 13:32:09 -07:00 |
|
xtqqczze
|
0e106faafe
|
Enable CA1868: Unnecessary call to 'Contains' for sets (#21165)
https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1868
|
2024-02-29 22:56:22 +05:00 |
|
Dmitry Volodin
|
a26b09d71e
|
Apply the InlineAsTypeCheck in the engine code - 2nd pass (#19694)
|
2023-07-10 17:17:08 -07:00 |
|
Aditya Patwardhan
|
ebe0b54340
|
Update to .NET 8 Preview 4 (#19696)
|
2023-06-21 15:17:22 -07:00 |
|
Ikko Eltociear Ashimine
|
9d1756efa7
|
Fix typo in typeDataXmlLoader.cs (#19319)
|
2023-03-14 08:56:14 +05:00 |
|
CarloToso
|
0d6b93a23f
|
Fix codefactor if part 2 (#19267)
|
2023-03-04 22:30:14 +05:00 |
|
Dongbo Wang
|
3a17d0230f
|
Update additional interpolated string changes (#19029)
|
2023-01-25 13:39:21 -08:00 |
|
Dongbo Wang
|
b195088c5a
|
Revert some of the interpolated string changes (#19018)
|
2023-01-25 09:46:47 -08:00 |
|
CarloToso
|
4c586a7a86
|
Use interpolated strings 11 (#19002)
|
2023-01-23 22:36:26 +05:00 |
|
CarloToso
|
64d82f812d
|
Use interpolated strings 9 (#18993)
|
2023-01-20 15:26:43 +05:00 |
|
CarloToso
|
f5627538e1
|
Use interpolated strings 7 (#18985)
|
2023-01-20 12:21:19 +05:00 |
|
CarloToso
|
a01fb37243
|
Use interpolated strings 8 (#18988)
|
2023-01-20 09:50:51 +05:00 |
|
Dmitry Volodin
|
8f6b75826e
|
Use compound assignment in /System.Management.Automation (#17724)
|
2022-07-25 22:07:33 +05:00 |
|
Steve Lee
|
08baf27b80
|
Render decimal numbers in a table using current culture (#17650)
|
2022-07-18 14:27:06 -07:00 |
|
Shuangchi He
|
8cc39848bc
|
Fix some typos in source code (#17481)
|
2022-06-06 10:14:53 -07:00 |
|
xtqqczze
|
883ca98dd7
|
Seal private classes (#15725)
* Seal private classes
* Fix CS0509
* Fix CS0628
|
2021-07-19 14:09:12 +05:00 |
|
xtqqczze
|
9d4665f32f
|
Enable SA1003: Symbols should be spaced correctly (#14476)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1003.md
|
2020-12-23 21:21:26 +05:00 |
|
xtqqczze
|
8d4869372e
|
Mark private members as static part 10 (#14235)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822
|
2020-11-27 13:16:31 +05:00 |
|
xtqqczze
|
d5b0264374
|
Use consistent spacing in xml documentation tags (#14231)
|
2020-11-25 22:58:52 +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
|
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
|
9e285298c0
|
Enable IDE0031: Null check can be simplified (#13548)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0031
|
2020-11-20 11:42:51 +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 |
|
Marcos Ramos
|
11d7587f9b
|
Fix nullable usage on displayDescriptionData_Wide (#13805)
|
2020-11-10 12:19:17 -08:00 |
|
Marcos Ramos
|
60a8fa3ec8
|
Fix nullable usage on displayDescriptionData_Table.cs (#13808)
|
2020-11-10 12:18:47 -08:00 |
|
xtqqczze
|
76cef3b299
|
Fix RCS1221: Use pattern matching instead of combination of 'as' operator and null check (#13333)
* Autofix RCS1221: Use pattern matching instead of combination of 'as' operator and null check
https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1221.md
* Restore stripped comments
|
2020-11-05 21:58:48 +05:00 |
|
xtqqczze
|
03a58c4186
|
Use is not syntax part 2 (#13338)
|
2020-11-05 10:23:50 +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
|
4595a22c64
|
Fix IDE0044: MakeFieldReadonly part 16 (#13971)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0044
|
2020-11-05 08:26:39 +05:00 |
|
xtqqczze
|
2c1546cd47
|
Enable CA1836: Prefer IsEmpty over Count when available (#13877)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1836
|
2020-10-30 12:15:29 +05:00 |
|
Dongbo Wang
|
10237bdeb3
|
Update PowerShell to build against dotnet 5.0-RC.1 (#13643)
|
2020-09-23 14:04:01 -07:00 |
|
xtqqczze
|
859890374a
|
Use read-only auto-implemented properties (#13507)
* Autofix RCS1170: Use read-only auto-implemented property
|
2020-09-02 08:11:16 +05:00 |
|
xtqqczze
|
8f37cced70
|
Cleanup: remove duplicate words in comments (#13539)
|
2020-08-31 11:39:00 -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 |
|
xtqqczze
|
bd90f1921f
|
Code performance fixes (#12956)
* RCS1080: Use 'Count/Length' property instead of 'Any' method
* RCS1077: Optimize LINQ method call
* RCS1235: Optimize method call
|
2020-06-25 11:30:40 +05:00 |
|
xtqqczze
|
a15e5090e2
|
Use HashSet instead of Hashtable with null values (#12958)
|
2020-06-19 08:31:18 +05: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
|
05cab7fa5a
|
Formatting: Add empty line between declarations (#12824)
# PR Summary
Automated fixes:
* RCS0013: Add empty line between single-line declarations of different kind
* RCS010: Add empty line between declarations
## 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-29 04:56:33 +00:00 |
|
xtqqczze
|
9212aac0fa
|
Use nameof operator (#12716)
# PR Summary
Using *Roslynator Command Line Tool version 0.1.0.4*
* Fix RCS1015:
* `"argument"` → `nameof(argument)`
* `enum.ToString()` → `nameof(enum)`
[RCS1015.log](https://github.com/PowerShell/PowerShell/files/4646102/RCS1015.log)
## PR Context
<!-- Provide a little reasoning as to why this Pull Request helps and why you have opened it. -->
## 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-19 18:57:52 +00:00 |
|
Steve Lee
|
b7cb335f03
|
Update copyright notice to latest guidance (#12190)
|
2020-03-24 11:08:37 -07:00 |
|
Steve Lee
|
a09855017f
|
Generate guid for FormatViewDefinition InstanceId if not provided (#11896)
|
2020-02-20 19:57:26 +05:00 |
|
Ilya
|
bd6fdae735
|
Cleanup: sort usings (#9490)
|
2019-04-30 10:25:11 +05:00 |
|
Ilya
|
ff3edaa2e3
|
Fix lgtm issues (#8843)
Add some null checks
Remove unused code
|
2019-02-13 16:51:05 +05:00 |
|
Ilya
|
d80154430d
|
Style: Change first char to upper in summary comments (#8597)
|
2019-01-09 13:07:40 -08:00 |
|
Ilya
|
233b54ed65
|
Style: Add a space after "//" in comments and remove unneeded comments after "}" (#8576)
|
2019-01-05 17:51:20 -08:00 |
|
Ilya
|
1be3f4cc0e
|
Style: Add the ending period to the XML document texts (#8577)
|
2019-01-05 15:40:24 -08:00 |
|
Ilya
|
dfd2f69369
|
Style: Change 'String.' to 'string.' (#8568)
|
2018-12-31 20:44:16 +05:00 |
|
Ilya
|
56569b9315
|
Style: Replace String.IsNullOrEmpty with string.IsNullOrEmpty (#8557)
|
2018-12-31 15:10:15 +05:00 |
|
Ilya
|
7207db6360
|
Style: Convert to upper first char in <param> and <exception> doc tags (#8556)
|
2018-12-29 08:25:49 +05:00 |
|