Skip to content

Check both csc.exe and vbc.exe as filename to exclude#69221

Merged
jaredpar merged 2 commits intodotnet:mainfrom
gero3:patch-3
Jul 31, 2023
Merged

Check both csc.exe and vbc.exe as filename to exclude#69221
jaredpar merged 2 commits intodotnet:mainfrom
gero3:patch-3

Conversation

@gero3
Copy link
Copy Markdown
Contributor

@gero3 gero3 commented Jul 25, 2023

I used my identical subexpression analyzer to see if I missed certain exceptions.
This was one diagnostic found that wasn't wrong.

PathComparer.Equals(relativeFileName, "csc.exe") 

was checked twice.

@gero3 gero3 requested a review from a team as a code owner July 25, 2023 22:38
@ghost ghost added Area-Infrastructure untriaged Issues and PRs which have not yet been triaged by a lead Community The pull request was submitted by a contributor who is not a Microsoft employee. labels Jul 25, 2023
PathComparer.Equals(relativeFileName, "Icon.png") ||
PathComparer.Equals(relativeFileName, "Init.cmd") ||
PathComparer.Equals(relativeFileName, "VS.Tools.Roslyn.nuspec") ||
PathComparer.Equals(relativeFileName, "csc.exe") ||
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jaredpar should this actually have been vbc?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure looks like it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated the PR to exclude vbc.exe also instead of getting csc.exe excluded twice

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll wait for @jaredpar to take a look before merging, but otherwise LGTM

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's definitely a typo: whether the intent was csi or vbc I cannot decide though.

@gero3 gero3 changed the title Check only once if csc.exe as filename Check both csc.exe and vbc.exe as filename to exclude Jul 26, 2023
PathComparer.Equals(relativeFileName, "Icon.png") ||
PathComparer.Equals(relativeFileName, "Init.cmd") ||
PathComparer.Equals(relativeFileName, "VS.Tools.Roslyn.nuspec") ||
PathComparer.Equals(relativeFileName, "csc.exe") ||
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll wait for @jaredpar to take a look before merging, but otherwise LGTM

@jaredpar jaredpar merged commit 2984025 into dotnet:main Jul 31, 2023
@ghost ghost added this to the Next milestone Jul 31, 2023
@dibarbet dibarbet modified the milestones: Next, 17.8 P2 Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Infrastructure Community The pull request was submitted by a contributor who is not a Microsoft employee. untriaged Issues and PRs which have not yet been triaged by a lead

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants