Skip to content
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

Remove *Permission and *Assert.'s from code #40

Closed
zsd4yr opened this issue Nov 13, 2018 · 7 comments · Fixed by #841
Closed

Remove *Permission and *Assert.'s from code #40

zsd4yr opened this issue Nov 13, 2018 · 7 comments · Fixed by #841
Labels
enhancement Product code improvement that does NOT require public API changes/additions good first issue Issue should be easy to implement, good for first-time contributors help wanted Good issue for external contributors
Milestone

Comments

@zsd4yr
Copy link
Member

zsd4yr commented Nov 13, 2018

No description provided.

@zsd4yr zsd4yr added the good first issue Issue should be easy to implement, good for first-time contributors label Nov 13, 2018
@zsd4yr zsd4yr changed the title Remove *Permission and *Assert.'s Remove *Permission and *Assert.'s form S.W.F. code Nov 13, 2018
@danmoseley
Copy link
Member

I would literally grep for *Assert and *Permission and remove those, then experimentally remove all using statements for System.Security, System.SEcurity.Permissions, and System.Security.Policy and see what if any compile errors you get. Those may be more hits.

@clairernovotny
Copy link
Member

clairernovotny commented Nov 26, 2018

A "remove unused" would clean those unused usings up too in one gesture.

@karelz karelz changed the title Remove *Permission and *Assert.'s form S.W.F. code Remove *Permission and *Assert.'s from code Nov 29, 2018
@karelz karelz added enhancement Product code improvement that does NOT require public API changes/additions help wanted Good issue for external contributors labels Dec 4, 2018
@merriemcgaw merriemcgaw added this to the Future milestone Dec 6, 2018
@kevingosse
Copy link
Contributor

Before I go too far on this (there's a lot of them), are we absolutely we want to remove all the SecurityPermission/UIPermission/Assert stuff? I understand they're no-op on .net core, but coreclr/corefx keep a few of them for the parts of code that are shared with .net framework. Are we positive we don't need to do the same thing for winforms?

@sharwell
Copy link
Member

sharwell commented Dec 7, 2018

💭 I'm not sure why we would be removing Debug.Assert calls. I sometimes use those to document assumptions made at different points in code and I wouldn't be surprised to see similar things in some places here.

@kevingosse
Copy link
Contributor

@karelz
Copy link
Member

karelz commented Dec 7, 2018

Thanks for picking up the issue @kevingosse! I added you to collaborators list. Once you accept, ping me here and I will be able to assign it to you. (assigning to myself temporarily)

@dotnet/dotnet-winforms FYI about collaborator trick (with Read permissions) - see https://github.com/dotnet/winforms/settings/collaboration

@karelz karelz self-assigned this Dec 7, 2018
@kevingosse
Copy link
Contributor

@karelz accepted

@karelz karelz assigned kevingosse and unassigned karelz Dec 7, 2018
@ghost ghost locked as resolved and limited conversation to collaborators Feb 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Product code improvement that does NOT require public API changes/additions good first issue Issue should be easy to implement, good for first-time contributors help wanted Good issue for external contributors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants