Skip to content

Commit 39f7e68

Browse files
MantasVaMantas Valuckas
andauthored
Changes to enforce error on SA1624 rule (#1888)
Co-authored-by: Mantas Valuckas <[email protected]>
1 parent 493ccca commit 39f7e68

File tree

10 files changed

+23
-23
lines changed

10 files changed

+23
-23
lines changed

lib/PuppeteerSharp.ruleset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<Rule Id="SA1309" Action="None" />
99
<Rule Id="SX1309" Action="Error" />
1010

11-
<Rule Id="SA1624" Action="None" /> <!-- Error SA1624: Because the property only contains a visible get accessor, the documentation summary text should begin with 'Gets'. (SA1624)-->
11+
<Rule Id="SA1624" Action="Error" /> <!-- Error SA1624: Because the property only contains a visible get accessor, the documentation summary text should begin with 'Gets'. (SA1624)-->
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)-->

lib/PuppeteerSharp/CDPSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ internal CDPSession(Connection connection, TargetType targetType, string session
8282
internal event EventHandler<SessionAttachedEventArgs> SessionAttached;
8383

8484
/// <summary>
85-
/// Gets or sets a value indicating whether this <see cref="CDPSession"/> is closed.
85+
/// Gets a value indicating whether this <see cref="CDPSession"/> is closed.
8686
/// </summary>
8787
/// <value><c>true</c> if is closed; otherwise, <c>false</c>.</value>
8888
public bool IsClosed { get; internal set; }

lib/PuppeteerSharp/Connection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ internal Connection(string url, int delay, bool enqueueAsyncMessages, IConnectio
7777
internal event EventHandler<SessionAttachedEventArgs> SessionAttached;
7878

7979
/// <summary>
80-
/// Gets or sets a value indicating whether this <see cref="Connection"/> is closed.
80+
/// Gets a value indicating whether this <see cref="Connection"/> is closed.
8181
/// </summary>
8282
/// <value><c>true</c> if is closed; otherwise, <c>false</c>.</value>
8383
public bool IsClosed { get; internal set; }

lib/PuppeteerSharp/JSHandle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ internal JSHandle(ExecutionContext context, CDPSession client, RemoteObject remo
2929
/// <value>The execution context.</value>
3030
public ExecutionContext ExecutionContext { get; }
3131
/// <summary>
32-
/// Gets or sets a value indicating whether this <see cref="JSHandle"/> is disposed.
32+
/// Gets a value indicating whether this <see cref="JSHandle"/> is disposed.
3333
/// </summary>
3434
/// <value><c>true</c> if disposed; otherwise, <c>false</c>.</value>
3535
public bool Disposed { get; private set; }

lib/PuppeteerSharp/MessageEventArgs.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ namespace PuppeteerSharp
88
public class MessageEventArgs
99
{
1010
/// <summary>
11-
/// Gets or sets the message identifier.
11+
/// Gets the message identifier.
1212
/// </summary>
1313
/// <value>The message identifier.</value>
1414
public string MessageID { get; internal set; }
1515
/// <summary>
16-
/// Gets or sets the message data.
16+
/// Gets the message data.
1717
/// </summary>
1818
/// <value>The message data.</value>
1919
public JToken MessageData { get; internal set; }

lib/PuppeteerSharp/Request.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,22 +69,22 @@ internal Request(
6969
/// <value>The response.</value>
7070
public Response Response { get; internal set; }
7171
/// <summary>
72-
/// Gets or sets the failure.
72+
/// Gets the failure.
7373
/// </summary>
7474
/// <value>The failure.</value>
7575
public string Failure { get; internal set; }
7676
/// <summary>
77-
/// Gets or sets the request identifier.
77+
/// Gets the request identifier.
7878
/// </summary>
7979
/// <value>The request identifier.</value>
8080
public string RequestId { get; internal set; }
8181
/// <summary>
82-
/// Gets or sets the interception identifier.
82+
/// Gets the interception identifier.
8383
/// </summary>
8484
/// <value>The interception identifier.</value>
8585
public string InterceptionId { get; internal set; }
8686
/// <summary>
87-
/// Gets or sets the type of the resource.
87+
/// Gets the type of the resource.
8888
/// </summary>
8989
/// <value>The type of the resource.</value>
9090
public ResourceType ResourceType { get; internal set; }
@@ -98,22 +98,22 @@ internal Request(
9898
/// </summary>
9999
public bool IsNavigationRequest { get; }
100100
/// <summary>
101-
/// Gets or sets the HTTP method.
101+
/// Gets the HTTP method.
102102
/// </summary>
103103
/// <value>HTTP method.</value>
104104
public HttpMethod Method { get; internal set; }
105105
/// <summary>
106-
/// Gets or sets the post data.
106+
/// Gets the post data.
107107
/// </summary>
108108
/// <value>The post data.</value>
109109
public object PostData { get; internal set; }
110110
/// <summary>
111-
/// Gets or sets the HTTP headers.
111+
/// Gets the HTTP headers.
112112
/// </summary>
113113
/// <value>HTTP headers.</value>
114114
public Dictionary<string, string> Headers { get; internal set; }
115115
/// <summary>
116-
/// Gets or sets the URL.
116+
/// Gets the URL.
117117
/// </summary>
118118
/// <value>The URL.</value>
119119
public string Url { get; internal set; }

lib/PuppeteerSharp/RequestEventArgs.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ namespace PuppeteerSharp
1111
public class RequestEventArgs : EventArgs
1212
{
1313
/// <summary>
14-
/// Gets or sets the request.
14+
/// Gets the request.
1515
/// </summary>
1616
/// <value>The request.</value>
1717
public Request Request { get; internal set; }
1818
}
19-
}
19+
}

lib/PuppeteerSharp/ResponseCreatedEventArgs.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ namespace PuppeteerSharp
88
public class ResponseCreatedEventArgs : EventArgs
99
{
1010
/// <summary>
11-
/// Gets or sets the response.
11+
/// Gets the response.
1212
/// </summary>
1313
/// <value>The response.</value>
1414
public Response Response { get; internal set; }
1515
}
16-
}
16+
}

lib/PuppeteerSharp/TargetChangedArgs.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ namespace PuppeteerSharp
99
public class TargetChangedArgs
1010
{
1111
/// <summary>
12-
/// Gets or sets the target info.
12+
/// Gets the target info.
1313
/// </summary>
1414
/// <value>The target info.</value>
1515
public TargetInfo TargetInfo { get; internal set; }
1616
/// <summary>
17-
/// Gets or sets the target.
17+
/// Gets the target.
1818
/// </summary>
1919
/// <value>The target.</value>
2020
public Target Target { get; internal set; }
2121
}
22-
}
22+
}

lib/PuppeteerSharp/TargetInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ internal TargetInfo()
3030
[JsonProperty]
3131
public string TargetId { get; internal set; }
3232
/// <summary>
33-
/// Gets or sets the target browser contextId
33+
/// Gets the target browser contextId
3434
/// </summary>
3535
[JsonProperty]
3636
public string BrowserContextId { get; internal set; }
@@ -40,4 +40,4 @@ internal TargetInfo()
4040
[JsonProperty]
4141
public string OpenerId { get; internal set; }
4242
}
43-
}
43+
}

0 commit comments

Comments
 (0)