Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

CodeFormatter doesn't handle several transforms #177

@CIPop

Description

@CIPop

Please see dotnet/corefx#3113 for issues encountered when running CodeFormatter on System.Net.Security.sln:

  1. If statements should always use {}
if (!_stream.CanRead) throw __Error.GetReadNotSupported();

// should be 

if (!_stream.CanRead) 
{
    throw __Error.GetReadNotSupported();
}
  1. Incorrect camel casing transform for private members:
 public abstract class AuthenticatedStream : Stream
 {
       private Stream _InnerStream;
       private bool _LeaveStreamOpen;
       // should be _innerStream, _leaveStreamOpen
  1. Order of modifiers:
override protected bool ReleaseHandle()
// Instead of:
protected override bool ReleaseHandle()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions