Skip to content

Clean up S.S.AccessControl#129623

Open
vcsjones wants to merge 3 commits into
dotnet:mainfrom
vcsjones:fix-15934
Open

Clean up S.S.AccessControl#129623
vcsjones wants to merge 3 commits into
dotnet:mainfrom
vcsjones:fix-15934

Conversation

@vcsjones

Copy link
Copy Markdown
Member

When S.S.AccessControl was ported much of it had a lot of code style that does not fit with the current coding standards.

  • Removed old #region / #endregion blocks.
  • Removed decorative banner comments and empty // separator lines.
  • Tightened comment spacing so comments sit directly above the code they describe.
  • Removed redundant this. qualifiers.
  • Renamed a few private fields in Privilege.cs to match current field naming conventions.
  • Collapsed excessive blank lines left by the cleanup.

A lot of the cleanup mentioned in #15934 (comment) has already happened organically due to various analyzers and code fixers.

There should be no functional changes.

Fixes #15934

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR modernizes and de-noises System.Security.AccessControl implementation sources by removing legacy styling artifacts (regions, banner comments, excess separators/blank lines) and aligning parts of the code with current conventions, without intended behavioral changes.

Changes:

  • Removed legacy #region blocks and decorative/banner comment noise across the AccessControl implementation files.
  • Simplified code formatting (blank lines/comment spacing) and removed redundant this. qualifiers.
  • Renamed some internal/private fields in Privilege.cs to better match current naming conventions.
Show a summary per file
File Description
src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Win32.cs Comment/whitespace cleanup around Win32 helper wrappers.
src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/SecurityDescriptor.cs Removed legacy banners/regions and tightened comment spacing; minor this. cleanup.
src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Rules.cs Removed regions/blank lines; small cleanup inside AuthorizationRuleCollection.
src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Privilege.cs Renamed a few fields and removed redundant this. qualifiers; tightened comment spacing.
src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/ObjectSecurityT.cs Removed legacy banners/regions and tightened spacing.
src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/ObjectSecurity.cs Removed legacy banners/regions and tightened spacing; minor this. cleanup.
src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/NativeObjectSecurity.cs Removed legacy banners/regions and tightened spacing; minor this. cleanup.
src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/Enums.cs Minor whitespace cleanup.
src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/CommonObjectSecurity.cs Comment cleanup and minor type-name simplification (Type vs System.Type).
src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/ACL.cs Large-scale comment/region/blank-line cleanup within ACL implementation.
src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/ACE.cs Large-scale comment/region/blank-line cleanup within ACE implementation.

Copilot's findings

  • Files reviewed: 11/11 changed files
  • Comments generated: 4

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Respond to PR code review comments for ported library System.Security.AccessControl

2 participants