8000 Turn on `/features:strict` for all projects by xtqqczze · Pull Request #13383 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@xtqqczze
Copy link
Contributor
@xtqqczze xtqqczze commented Aug 8, 2020

PR Summary

Follow-up: #13285

For example, with strict mode enabled, the following is an error:

IntPtr ptr = IntPtr.Zero;
if (ptr == null) // Warning CS8073 The result of the expression is always 'false' since a value of type 'IntPtr' is never equal to 'null' of type 'IntPtr?'

PR Context

PR Checklist

@ghost ghost assigned TravisEz13 Aug 8, 2020
@xtqqczze xtqqczze force-pushed the features-strict branch 2 times, most recently from 07df421 to 86ff7da Compare August 8, 2020 23:52
@xtqqczze xtqqczze changed the title WIP: Use C# strict mode Use C# strict mode Aug 9, 2020
@xtqqczze xtqqczze marked this pull request as ready for review August 9, 2020 22:57
@xtqqczze xtqqczze marked this pull request as draft August 9, 2020 22:57
@xtqqczze xtqqczze marked this pull request as ready for review August 10, 2020 23:11
@ghost ghost added the Review - Needed The PR is being reviewed label Aug 19, 2020
@ghost
Copy link
ghost commented Aug 19, 2020

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

@TravisEz13 TravisEz13 added Review - Maintainer The PR/issue needs a review from the PowerShell repo Maintainers and removed Review - Needed The PR is being reviewed labels Aug 19, 2020
@TravisEz13
Copy link
Member

I recommend that the maintainers review if we want this setting.

@ghost ghost added the Review - Needed The PR is being reviewed label Aug 27, 2020
@ghost
Copy link
ghost commented Aug 27, 2020

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

@daxian-dbw
Copy link
Member

@PowerShell/powershell-maintainers reviewed this PR and agreed to accept it, but the changes should be made in powershell.common.props instead.

@ghost ghost removed the Review - Needed The PR is being reviewed label Sep 1, 2020
@daxian-dbw daxian-dbw removed the Review - Maintainer The PR/issue needs a review from the PowerShell repo Maintainers label Sep 1, 2020
@xtqqczze
Copy link
Contributor Author
xtqqczze commented Sep 5, 2020

@daxian-dbw powershell.common.props is not included in all projects, e.g. xUnit.test Using Directory.Build.props propgates the property to any existing or new projects in repository.

@TravisEz13
Copy link
Member

add it to xUnit separately if you want it there.

@ghost ghost added the Review - Needed The PR is being reviewed label Sep 17, 2020
@ghost
Copy link
ghost commented Sep 17, 2020

This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days.
Maintainer, please provide feedback and/or mark it as Waiting on Author

@TravisEz13 TravisEz13 added Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept and removed Review - Needed The PR is being reviewed labels Oct 2, 2020
@ghost ghost added the Stale label Oct 17, 2020
@ghost
Copy link
ghost commented Oct 17, 2020

This pull request has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 15 days. It will be closed if no further activity occurs within 10 days of this comment.

@xtqqczze xtqqczze changed the title Use C# strict mode Turn on /features:strict for all projects Oct 22, 2020
@ghost ghost removed Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept Stale labels Oct 22, 2020
@TravisEz13 TravisEz13 changed the title Turn on /features:strict for all projects Turn on /features:strict for all projects Oct 23, 2020
@TravisEz13 TravisEz13 merged commit ebff402 into PowerShell:master Oct 23, 2020
@TravisEz13 TravisEz13 added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label Oct 23, 2020
@TravisEz13 TravisEz13 added this to the 7.2.0-preview.1 milestone Oct 23, 2020
@xtqqczze xtqqczze deleted the features-strict branch October 23, 2020 19:35
@ghost
Copy link
ghost commented Nov 17, 2020

🎉v7.2.0-preview.1 has been released which incorporates this pull request.:tada:

Handy links:

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

Labels

CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0