-
Notifications
You must be signed in to change notification settings - Fork 4k
Convert StaticAnalysis to .NET Core #6979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert StaticAnalysis to .NET Core #6979
Conversation
updating template to include all modules and debugpreference can be copied directly into a ps session
@@ -226,10 +229,6 @@ private void LogBreakingChangesInModule(BreakingChangeAttributesInModule moduleD | |||
foreach (BreakingChangeAttributesInCmdlet cmdletData in moduleData.CmdletList) | |||
{ | |||
textForBreakingChangesInModule += string.Format(BREAKING_CHANGE_CMDLET_HEADER_FORMAT_STRING, cmdletData.CmdletName); | |||
foreach (GenericBreakingChangeAttribute attribute in cmdletData.BreakingChangeAttributes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert this change
@@ -58,14 +56,10 @@ public BreakingChangeAttributesInModule GetModuleBreakingChangeAttributes(string | |||
foreach (var type in assembly.GetCmdletTypes()) | |||
{ | |||
var cmdlet = type.GetAttribute<CmdletAttribute>(); | |||
var attributes = type.GetAttributes<GenericBreakingChangeAttribute>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert this change
…ic-analysis-netcore
…l into static-analysis-netcore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Only a couple questions there.
@@ -44,7 +44,7 @@ $PSVersionTable | |||
|
|||
### Debug Output | |||
|
|||
<!-- Please run the above script with $DebugPreference = "Continue" and paste the resulting debug stream in the below code block --> | |||
<!-- Please run the above script with $DebugPreference='Continue' and paste the resulting debug stream in the below code block --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 👍
@@ -22,7 +22,6 @@ | |||
</PropertyGroup> | |||
|
|||
<ItemGroup> | |||
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="7.1.0-preview" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Common projects aren't used... why the change(s)?
@@ -26,7 +26,6 @@ | |||
</PropertyGroup> | |||
|
|||
<ItemGroup> | |||
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="7.1.0-preview" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Common projects aren't used... why the change(s)?
@@ -30,7 +30,7 @@ | |||
<ItemGroup> | |||
<PackageReference Include="Azure.Batch" Version="8.1.1" /> | |||
<PackageReference Include="Microsoft.Azure.Management.Batch" Version="4.2.0" /> | |||
<PackageReference Include="Microsoft.Extensions.Primitives" Version="2.1.1" /> | |||
<PackageReference Include="Microsoft.Extensions.Primitives" Version="1.1.0" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the downgrade?
Description
Fix for #5900
Convert StaticAnalysis project to .NET Core and ensure that the DependencyAnalyzer is run as a part of the .NET Core build.
Checklist
CONTRIBUTING.md
platyPS
module