-
Notifications
You must be signed in to change notification settings - Fork 226
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
Fix S3254 FN: primary constructors #8222
Changes from all commits
1605731
e24f785
cb6959d
3b1fa58
8725bd5
702ec77
2e953f4
c93c67a
bdf65c6
957544e
d01a843
4d30125
7393c0a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -2,6 +2,58 @@ | |||||||
"issues": [ | ||||||||
{ | ||||||||
"id": "S3254", | ||||||||
"message": "Remove this default value assigned to parameter 'lifetime'.", | ||||||||
"location": { | ||||||||
"uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/sources/Nancy/src/Nancy/Bootstrapper/NancyBootstrapperWithRequestContainerBase.cs#L125", | ||||||||
"region": { | ||||||||
"startLine": 125, | ||||||||
"startColumn": 104, | ||||||||
"endLine": 125, | ||||||||
"endColumn": 122 | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
{ | ||||||||
"id": "S3254", | ||||||||
"message": "Remove this default value assigned to parameter 'lifetime'.", | ||||||||
"location": { | ||||||||
"uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/sources/Nancy/src/Nancy/Bootstrapper/NancyBootstrapperWithRequestContainerBase.cs#L134", | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TP: Constructor Line 134 in 21bb286
|
||||||||
"region": { | ||||||||
"startLine": 134, | ||||||||
"startColumn": 145, | ||||||||
"endLine": 134, | ||||||||
"endColumn": 163 | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
{ | ||||||||
"id": "S3254", | ||||||||
"message": "Remove this default value assigned to parameter 'disableMethodNotAllowedResponses'.", | ||||||||
"location": { | ||||||||
"uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/sources/Nancy/src/Nancy/RouteConfiguration.cs#L12", | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TP: Constructor:
|
||||||||
"region": { | ||||||||
"startLine": 12, | ||||||||
"startColumn": 13, | ||||||||
"endLine": 12, | ||||||||
"endColumn": 52 | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
{ | ||||||||
"id": "S3254", | ||||||||
"message": "Remove this default value assigned to parameter 'explicitHeadRouting'.", | ||||||||
"location": { | ||||||||
"uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/sources/Nancy/src/Nancy/RouteConfiguration.cs#L13", | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TP: Constructor
|
||||||||
"region": { | ||||||||
"startLine": 13, | ||||||||
"startColumn": 13, | ||||||||
"endLine": 13, | ||||||||
"endColumn": 39 | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
{ | ||||||||
"id": "S3254", | ||||||||
"message": "Remove this default value assigned to parameter 'httpsPort'.", | ||||||||
"location": { | ||||||||
"uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/sources/Nancy/src/Nancy/Security/ModuleSecurity.cs#L84", | ||||||||
|
@@ -12,6 +64,32 @@ | |||||||
"endColumn": 92 | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
{ | ||||||||
"id": "S3254", | ||||||||
"message": "Remove this default value assigned to parameter 'runtimeViewDiscovery'.", | ||||||||
"location": { | ||||||||
"uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/sources/Nancy/src/Nancy/ViewConfiguration.cs#L12", | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TP: Constructor
|
||||||||
"region": { | ||||||||
"startLine": 12, | ||||||||
"startColumn": 13, | ||||||||
"endLine": 12, | ||||||||
"endColumn": 40 | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
{ | ||||||||
"id": "S3254", | ||||||||
"message": "Remove this default value assigned to parameter 'runtimeViewUpdates'.", | ||||||||
"location": { | ||||||||
"uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/sources/Nancy/src/Nancy/ViewConfiguration.cs#L13", | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See above |
||||||||
"region": { | ||||||||
"startLine": 13, | ||||||||
"startColumn": 13, | ||||||||
"endLine": 13, | ||||||||
"endColumn": 38 | ||||||||
} | ||||||||
} | ||||||||
} | ||||||||
] | ||||||||
} |
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -2,6 +2,58 @@ | |||||||
"issues": [ | ||||||||
{ | ||||||||
"id": "S3254", | ||||||||
"message": "Remove this default value assigned to parameter 'lifetime'.", | ||||||||
"location": { | ||||||||
"uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/sources/Nancy/src/Nancy/Bootstrapper/NancyBootstrapperWithRequestContainerBase.cs#L125", | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line 125 in 21bb286
|
||||||||
"region": { | ||||||||
"startLine": 125, | ||||||||
"startColumn": 104, | ||||||||
"endLine": 125, | ||||||||
"endColumn": 122 | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
{ | ||||||||
"id": "S3254", | ||||||||
"message": "Remove this default value assigned to parameter 'lifetime'.", | ||||||||
"location": { | ||||||||
"uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/sources/Nancy/src/Nancy/Bootstrapper/NancyBootstrapperWithRequestContainerBase.cs#L134", | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above |
||||||||
"region": { | ||||||||
"startLine": 134, | ||||||||
"startColumn": 145, | ||||||||
"endLine": 134, | ||||||||
"endColumn": 163 | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
{ | ||||||||
"id": "S3254", | ||||||||
"message": "Remove this default value assigned to parameter 'disableMethodNotAllowedResponses'.", | ||||||||
"location": { | ||||||||
"uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/sources/Nancy/src/Nancy/RouteConfiguration.cs#L12", | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||||||||
"region": { | ||||||||
"startLine": 12, | ||||||||
"startColumn": 13, | ||||||||
"endLine": 12, | ||||||||
"endColumn": 52 | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
{ | ||||||||
"id": "S3254", | ||||||||
"message": "Remove this default value assigned to parameter 'explicitHeadRouting'.", | ||||||||
"location": { | ||||||||
"uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/sources/Nancy/src/Nancy/RouteConfiguration.cs#L13", | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above |
||||||||
"region": { | ||||||||
"startLine": 13, | ||||||||
"startColumn": 13, | ||||||||
"endLine": 13, | ||||||||
"endColumn": 39 | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
{ | ||||||||
"id": "S3254", | ||||||||
"message": "Remove this default value assigned to parameter 'httpsPort'.", | ||||||||
"location": { | ||||||||
"uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/sources/Nancy/src/Nancy/Security/ModuleSecurity.cs#L84", | ||||||||
|
@@ -12,6 +64,32 @@ | |||||||
"endColumn": 92 | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
{ | ||||||||
"id": "S3254", | ||||||||
"message": "Remove this default value assigned to parameter 'runtimeViewDiscovery'.", | ||||||||
"location": { | ||||||||
"uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/sources/Nancy/src/Nancy/ViewConfiguration.cs#L12", | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above |
||||||||
"region": { | ||||||||
"startLine": 12, | ||||||||
"startColumn": 13, | ||||||||
"endLine": 12, | ||||||||
"endColumn": 40 | ||||||||
} | ||||||||
} | ||||||||
}, | ||||||||
{ | ||||||||
"id": "S3254", | ||||||||
"message": "Remove this default value assigned to parameter 'runtimeViewUpdates'.", | ||||||||
"location": { | ||||||||
"uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/sources/Nancy/src/Nancy/ViewConfiguration.cs#L13", | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above |
||||||||
"region": { | ||||||||
"startLine": 13, | ||||||||
"startColumn": 13, | ||||||||
"endLine": 13, | ||||||||
"endColumn": 38 | ||||||||
} | ||||||||
} | ||||||||
} | ||||||||
] | ||||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TP: Constructor:
sonar-dotnet/analyzers/its/sources/Nancy/src/Nancy/Bootstrapper/NancyBootstrapperWithRequestContainerBase.cs
Line 125 in 21bb286