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

Duplicate comments for partial classes #2

Open
drmrvr12 opened this issue Jan 27, 2022 · 0 comments
Open

Duplicate comments for partial classes #2

drmrvr12 opened this issue Jan 27, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@drmrvr12
Copy link

The extension proposes to add a comment to a partial class that is already docummented elsewhere.

Example:

File1.cs

namespace Example {

 /// <summary>
 /// A class that exists for many important reasons
 /// </summary>
 public partial class MyClass {
 
  /// <summary>
  /// No documentation.
  /// </summary>
  public void Method() {
   System.Console.WriteLine(MyString);
  }
  
 }
}

File2.cs

namespace Example { 

 // Issue here
 public partial class MyClass { // CD1600: The class must have a documentation header.
 
  /// <summary>
  /// Hi!
  /// </summary>
  public string MyString => "Hello!";
  
 }
}
@d1820 d1820 added the enhancement New feature or request label Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants