-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add rules, fix issues and cleanup #96
base: master
Are you sure you want to change the base?
Conversation
foreach (var element in servicesList) | ||
{ | ||
var service = Create(element); | ||
|
||
if (service is not null) | ||
{ | ||
deviceServices.Add(service); | ||
} | ||
} |
Check notice
Code scanning / CodeQL
Missed opportunity to use Select Note
maps its iteration variable to another variable
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.
This looks like apply linting rules -> fix lints, in addition to nullability stuff and documentation (presumably linter-demanded).
I don't know the implications of Array.Empty<Type>()
-> []
, if any.
This is a rubber-stamp from my part, I've looked at all the changes, and nothing obvious popped out at me.
Visual inspection only, no testing done – but I did note that JPRM compiled it fine in CI.
Shouldn't we use the new .editorconfig of the main repo instead of the ruleset file? |
Sure, I created this PR before migrating it. |
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.
Mostly comments that can be improved
/// <param name="notificationType">The notification type.</param> | ||
/// <param name="requestedTimeoutString">The requested timeout string.</param> | ||
/// <param name="callbackUrl">The callback URL.</param> | ||
/// <returns>EventSubscriptionResponse.</returns> |
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.
Missed this one
/// <param name="notificationType">The notification type.</param> | ||
/// <param name="requestedTimeoutString">The requested timeout string.</param> | ||
/// <param name="callbackUrl">The callback URL.</param> | ||
/// <returns>EventSubscriptionResponse.</returns> |
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.
And this one
No description provided.