Skip to content

Commit d8cd207

Browse files
akshay-zzAkshay Kumar
andauthored
Enable rule SA1629 (#2053)
* Enable rule SA1629 * Fix build errors Co-authored-by: Akshay Kumar <[email protected]>
1 parent dd1deb0 commit d8cd207

File tree

99 files changed

+916
-916
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+916
-916
lines changed

lib/PuppeteerSharp.ruleset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<Rule Id="SA1028" Action="Error" /> <!-- Error SA1028: Code should not contain trailing whitespace (SA1028)-->
1313
<Rule Id="SA1600" Action="None" /> <!-- Error SA1600: Elements should be documented (SA1600)-->
1414
<Rule Id="SA1516" Action="Error" /> <!-- Error SA1516: Elements should be separated by blank line (SA1516)-->
15-
<Rule Id="SA1629" Action="None" /> <!-- Error SA1629: Documentation text should end with a period (SA1629)-->
15+
<Rule Id="SA1629" Action="Error" /> <!-- Error SA1629: Documentation text should end with a period (SA1629)-->
1616
<Rule Id="SA1514" Action="Error" /> <!-- Error SA1514: Element documentation header should be preceded by blank line (SA1514)-->
1717
<Rule Id="SA1201" Action="Error" /> <!-- Error SA1201: Elements must appear in the correct order (SA1201)-->
1818
<Rule Id="SA1202" Action="Error" /> <!-- Error SA1202: 'public' members should come before 'internal' members (SA1202)-->

lib/PuppeteerSharp/BoxModel.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,32 @@ internal BoxModel()
1010
}
1111

1212
/// <summary>
13-
/// Gets the Content box
13+
/// Gets the Content box.
1414
/// </summary>
1515
public BoxModelPoint[] Content { get; internal set; }
1616

1717
/// <summary>
18-
/// Gets the Padding box
18+
/// Gets the Padding box.
1919
/// </summary>
2020
public BoxModelPoint[] Padding { get; internal set; }
2121

2222
/// <summary>
23-
/// Gets the Border box
23+
/// Gets the Border box.
2424
/// </summary>
2525
public BoxModelPoint[] Border { get; internal set; }
2626

2727
/// <summary>
28-
/// Gets the Margin box
28+
/// Gets the Margin box.
2929
/// </summary>
3030
public BoxModelPoint[] Margin { get; internal set; }
3131

3232
/// <summary>
33-
/// Gets the element's width
33+
/// Gets the element's width.
3434
/// </summary>
3535
public int Width { get; internal set; }
3636

3737
/// <summary>
38-
/// Gets the element's height
38+
/// Gets the element's height.
3939
/// </summary>
4040
public int Height { get; internal set; }
4141
}

lib/PuppeteerSharp/BoxModelPoint.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
namespace PuppeteerSharp
22
{
33
/// <summary>
4-
/// Represents a point
4+
/// Represents a point.
55
/// </summary>
66
public struct BoxModelPoint
77
{
88
/// <summary>
9-
/// The X coordinate
9+
/// The X coordinate.
1010
/// </summary>
1111
public decimal X { get; set; }
1212

1313
/// <summary>
14-
/// The y coordinate
14+
/// The y coordinate.
1515
/// </summary>
1616
public decimal Y { get; set; }
1717
}

lib/PuppeteerSharp/Browser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public void Dispose()
217217
/// Closes <see cref="Connection"/> and any Chromium <see cref="Process"/> that was
218218
/// created by Puppeteer.
219219
/// </summary>
220-
/// <returns>ValueTask</returns>
220+
/// <returns>ValueTask.</returns>
221221
public ValueTask DisposeAsync() => new ValueTask(CloseAsync());
222222

223223
internal static async Task<Browser> CreateAsync(

lib/PuppeteerSharp/BrowserFetcherOptions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
namespace PuppeteerSharp
55
{
66
/// <summary>
7-
/// Browser fetcher options used to construct a <see cref="BrowserFetcher"/>
7+
/// Browser fetcher options used to construct a <see cref="BrowserFetcher"/>.
88
/// </summary>
99
public class BrowserFetcherOptions
1010
{
1111
/// <summary>
12-
/// A custom download delegate
12+
/// A custom download delegate.
1313
/// </summary>
14-
/// <param name="address">address</param>
15-
/// <param name="fileName">fileName</param>
14+
/// <param name="address">address.</param>
15+
/// <param name="fileName">fileName.</param>
1616
/// <returns>A Task that resolves when the download finishes.</returns>
1717
public delegate Task CustomFileDownloadAction(string address, string fileName);
1818

@@ -37,7 +37,7 @@ public class BrowserFetcherOptions
3737
public string Host { get; set; }
3838

3939
/// <summary>
40-
/// Gets the default or a custom download delegate
40+
/// Gets the default or a custom download delegate.
4141
/// </summary>
4242
public CustomFileDownloadAction CustomFileDownload { get; set; }
4343
}

lib/PuppeteerSharp/Connection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace PuppeteerSharp
1515
{
1616
/// <summary>
17-
/// A connection handles the communication with a Chromium browser
17+
/// A connection handles the communication with a Chromium browser.
1818
/// </summary>
1919
public class Connection : IDisposable
2020
{

lib/PuppeteerSharp/ConsoleMessage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class ConsoleMessage
1313
/// <param name="type">Type.</param>
1414
/// <param name="text">Text.</param>
1515
/// <param name="args">Arguments.</param>
16-
/// <param name="location">Message location</param>
16+
/// <param name="location">Message location.</param>
1717
public ConsoleMessage(ConsoleType type, string text, IList<IJSHandle> args, ConsoleMessageLocation location = null)
1818
{
1919
Type = type;

lib/PuppeteerSharp/Credentials.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
namespace PuppeteerSharp
22
{
33
/// <summary>
4-
/// Options to be used in <see cref="IPage.AuthenticateAsync(Credentials)"/>
4+
/// Options to be used in <see cref="IPage.AuthenticateAsync(Credentials)"/>.
55
/// </summary>
66
public class Credentials
77
{
88
/// <summary>
9-
/// Gets or sets the username to be used for authentication
9+
/// Gets or sets the username to be used for authentication.
1010
/// </summary>
1111
public string Username { get; set; }
1212

1313
/// <summary>
14-
/// Gets or sets the password to be used for authentication
14+
/// Gets or sets the password to be used for authentication.
1515
/// </summary>
1616
public string Password { get; set; }
1717
}

lib/PuppeteerSharp/DOMWorldType.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ namespace PuppeteerSharp
88
internal enum DOMWorldType
99
{
1010
/// <summary>
11-
/// Other type
11+
/// Other type.
1212
/// </summary>
1313
Other,
1414

1515
/// <summary>
16-
/// Isolated type
16+
/// Isolated type.
1717
/// </summary>
1818
[EnumMember(Value = "isolated")]
1919
Isolated,
2020

2121
/// <summary>
22-
/// Default type
22+
/// Default type.
2323
/// </summary>
2424
[EnumMember(Value = "default")]
2525
Default,

lib/PuppeteerSharp/DragData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
public partial class DragData
77
{
88
/// <summary>
9-
/// Drag items
9+
/// Drag items.
1010
/// </summary>
1111
public DragDataItem[] Items { get; set; }
1212

0 commit comments

Comments
 (0)