Commit Graph
254 Commits
Author SHA1 Message Date
Frode Flaten 0d52375adc Add type accelerator ordered for OrderedDictionary (#17804) 2022-08-01 09:15:14 -07:00
Frode Flaten 4b4f1d144f Use null propagation operator in /engine (#17789) 2022-07-29 09:06:07 +05:00
MartinGC94 3d4e294262 Improve type inference for $_ (#17716) 2022-07-25 11:27:23 -07:00
MartinGC94 5ccbb97ae3 Fix type inference for ICollection (#17752) 2022-07-25 11:15:19 -07:00
Dmitry Volodin 223c6b8905 Use compound assignment in /parser and /debugger (#17726) 2022-07-25 21:54:36 +05:00
MartinGC94 84241c3c59 Fix parser exception in using statements with empty aliases (#16745) 2022-07-19 10:42:31 -07:00
MartinGC94 edac193cf0 Use discards for unused variables (#17620) 2022-07-05 14:26:51 -07:00
MartinGC94 4f6e574820 Improve type inference and completions (#16963) 2022-06-13 10:04:35 -07:00
Shuangchi He 8cc39848bc Fix some typos in source code (#17481) 2022-06-06 10:14:53 -07:00
MartinGC94 e7f705adef Add type inference support for generic methods with type parameters (#16951) 2022-05-27 11:17:53 -07:00
Mathias R. Jessen afe99fcaea SemanticChecks: Avoid repeated type resolution of [ordered] (#17328) 2022-05-17 09:54:26 -07:00
Ikko Ashimine 18846935c7 Correct spelling of pseudo in Compiler.cs (#17285)
psuedo -> pseudo
psuedo-code -> pseudo-code
2022-05-10 10:34:52 -07:00
Patrick Meinecke 99f3bb7a6a Fix line breakpoints for return statements without a value (#17179) 2022-05-04 10:56:55 -07:00
Dongbo Wang a3c4a163ff Allow the PSGetMemberBinder to get value of ByRef property (#16956) 2022-03-04 15:01:18 -08:00
Dongbo Wang 102782fbb0 Fix the parsing code for method generic arguments (#16937) 2022-03-03 09:21:21 -08:00
Dongbo Wang 35ad64e11b Add a couple fixes to generic method invocation (#16822) 2022-02-03 11:58:02 -08:00
Joel Sallow (/u/ta11ow) 8c53252969 Add support to allow invoking method with generic type arguments (#12412) 2022-01-27 09:55:54 -08:00
Paul Higinbotham 0834c65877 Add AMSI method invocation logging as experimental feature (#16496)
* Add AMSI method invocation logging as experimental feature

* Add fix for value type errors in logging expression

* Fix recursion error
2022-01-04 08:30:14 -08:00
Dongbo Wang 6662e21cb6 Fix the DSC overview URL in a markdown file and some small cleanup changes (#16629) 2021-12-15 16:38:37 -08:00
Dongbo Wang 979f105a99 Fix parser to generate error when array has more than 32 dimensions (#16276)
An array cannot have more than 32 dimensions. See the doc of MarkArrayType(int rank)) https://docs.microsoft.com/en-us/dotnet/api/system.type.makearraytype?view=net-5.0#System_Type_MakeArrayType_System_Int32_ for details.

The fix is to not create the ArrayTypeName instance when the number of dimensions exceeds 32, but instead, generate a parsing error.
2021-10-29 08:16:26 +05:00
Dongbo Wang a32700a1c1 Add clean block to script block as a peer to begin, process, and end to allow easy resource cleanup (#15177) 2021-10-11 14:49:09 -07:00
dwtaber 53ac646cc0 Invoke-Command: improve handling of variables with $using: expression (#16113) 2021-10-06 10:43:56 -07:00
Dongbo Wang 66b5d50170 Set $? correctly for command expression with redirections (#16046) 2021-09-03 15:36:31 -07:00
xtqqczze 883ca98dd7 Seal private classes (#15725)
* Seal private classes

* Fix CS0509

* Fix CS0628
2021-07-19 14:09:12 +05:00
xtqqczze 4c2d6dcfca Make classes sealed (#15675)
Fix [RCS1225](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1225.md)
2021-07-04 16:49:52 +05:00
Dongbo Wang e2ee8e7e1f Clean up code regarding AppDomain.CreateDomain and AppDomain.Unload (#15554) 2021-06-10 09:16:05 -07:00
Andrew 8d017d8a75 Move cross platform DSC code to a subsystem (#15127) 2021-05-20 17:06:59 -07:00
Staffan Gustafsson 91b2904ca7 Enable nullable: System.Management.Automation.Language.ICustomAstVisitor (#14191) 2021-05-19 08:48:49 +05:00
Staffan Gustafsson e2364b78b5 Enable nullable: System.Management.Automation.Language.IScriptPosition (#14161) 2021-05-18 20:55:29 +05:00
Staffan Gustafsson f38c97e4f4 Enable nullable for System.Management.Automation.Language.IAssignableValue (#14163) 2021-05-05 11:28:32 -07:00
Staffan Gustafsson b5e41e2587 Enable nullable for System.Management.Automation.Language.ITypeName (#14181) 2021-04-20 09:42:03 -04:00
Ilya 91e7298fd8 Use static lambda keyword (#15154) 2021-04-12 12:44:05 -07:00
ZhiZe-ZG a8a7e045d8 Unified comment format (#15114) 2021-04-05 14:11:25 -07:00
xtqqczze e92201779d Enable SA1001: Commas should be spaced correctly (#14171) 2021-03-30 15:17:17 -07:00
Andrew 8e3c3e04f8 Cross-platform updates to DSC code in PowerShell (#13399) 2021-02-02 14:47:53 -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 4480ee521e Enable nullable: System.Management.Automation.Language.ISupportsTypeCaching (#14088) 2021-01-09 12:35:42 +05:00
xtqqczze 50fd950920 Enable CA1052: Static holder types should be Static or NotInheritable (#14483)
* Enable CA1052: Static holder types should be Static or NotInheritable

https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/CA1052

* Fix SA1505

https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1505.md
2021-01-08 22:53:11 +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
Staffan Gustafsson 76e471c0dd Enable nullable: System.Management.Automation.Language.IScriptExtent (#14179) 2020-12-11 11:35:00 +05:00
Staffan Gustafsson 29131d573c Enable nullable: System.Management.Automation.Language.ICustomAstVisitor2 (#14192) 2020-12-11 11:22:52 +05:00
Staffan Gustafsson 25cfd2be98 Enable nullable: System.Management.Automation.Language.ISupportsAssignment (#14180) 2020-12-11 11:04:57 +05:00
Staffan Gustafsson 9724293fef Enable nullable: System.Management.Automation.Language.IAstPostVisitHandler (#14164) 2020-12-09 12:33:29 -08:00
Steve Lee 95ce0643c8 Add -SkipLimitCheck switch to Import-PowerShellDataFile (#13672) 2020-12-09 11:07:07 -08:00
xtqqczze 18717c529b Enable IDE0075: SimplifyConditionalExpression (#14078)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0075
2020-12-02 08:25:56 +05:00
xtqqczze c909541b77 Mark private members as static part 9 (#14234)
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822
2020-11-27 13:10:43 +05:00
xtqqczze d5b0264374 Use consistent spacing in xml documentation tags (#14231) 2020-11-25 22:58:52 +05:00
xtqqczze 0d1ea73e59 Enable IDE0074: Use coalesce compound assignment (#13396)
* Autofix IDE0074: Use compound assignment
2020-11-25 17:37:01 +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 fa6caf957e Use see keyword in documentation (#14220)
Fix [DOC104](https://github.com/DotNetAnalyzers/DocumentationAnalyzers/blob/master/docs/DOC104.md)
2020-11-24 09:35:46 +05:00