Skip to content

Fix false positive for UsingInternalURL - #255

Merged
Yuting Chen (yutingc) merged 1 commit into
BugFixesfrom
internalURL
Jun 26, 2015
Merged

Yuting Chen (yutingc) merged 1 commit into
BugFixesfrom
internalURL

Conversation

@yutingc

Copy link
Copy Markdown
Contributor

Add check if -replace is used and check if invocation expression is
[String] or [System.String]. This is to address issue #198

Add check if -replace is used and check if invocation expression is
[String] or [System.String]
@raghushantha

Copy link
Copy Markdown
Member

Hi Yuting.

Does this change address the issue reported by Dan (using composite formatting strings)?
https://msdn.microsoft.com/en-us/library/txafckwd(v=vs.110).aspx

-Update-
looks like it does. never mind

@raghushantha

Copy link
Copy Markdown
Member

looks good..

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is this gonna raise a NullPointerException if parentAst is null?

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 don't think it will ever be null..At least the root Ast should be a ScriptBlockAst?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Have you tried on a script with only a string as its content?

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.

Yeah..I tried with a single line script and it didn't throw warnings or errors.

Yuting Chen (yutingc) added a commit that referenced this pull request Jun 26, 2015
Fix false positive for UsingInternalURL
@yutingc
Yuting Chen (yutingc) merged commit 96d56c3 into BugFixes Jun 26, 2015
@yutingc
Yuting Chen (yutingc) deleted the internalURL branch June 26, 2015 17:48
@yutingc

Copy link
Copy Markdown
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants