-
Notifications
You must be signed in to change notification settings - Fork 96
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
Use 'is [not] null' instead of ==/!= #302
Conversation
Thanks for opening this pull request! If you have implemented new functions, write about them in the readme file. |
WalkthroughThe updates across several files involve transitioning from traditional Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
We would appreciate it if you could provide us with more info about this issue/pr! |
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (11)
- demo/OrderService/SwaggerDefaultValues.cs (4 hunks)
- demo/ProjectService/Controllers/ProjectsService.cs (1 hunks)
- src/MMLib.SwaggerForOcelot/Aggregates/AggregateRouteDocumentationGenerator.cs (2 hunks)
- src/MMLib.SwaggerForOcelot/Aggregates/RouteDocs.cs (2 hunks)
- src/MMLib.SwaggerForOcelot/Aggregates/RoutesDocumentationProvider.cs (2 hunks)
- src/MMLib.SwaggerForOcelot/Configuration/SwaggerEndPointOptions.cs (2 hunks)
- src/MMLib.SwaggerForOcelot/Middleware/SwaggerForOcelotMiddleware.cs (3 hunks)
- src/MMLib.SwaggerForOcelot/RouteOptionsExtensions.cs (1 hunks)
- src/MMLib.SwaggerForOcelot/ServiceDiscovery/SwaggerServiceDiscoveryProvider.cs (3 hunks)
- src/MMLib.SwaggerForOcelot/Transformation/SwaggerJsonTransformer.cs (5 hunks)
- tests/MMLib.SwaggerForOcelot.Tests/Aggregates/AggregateRouteDocumentationGeneratorShould.cs (2 hunks)
Files skipped from review due to trivial changes (4)
- src/MMLib.SwaggerForOcelot/Aggregates/AggregateRouteDocumentationGenerator.cs
- src/MMLib.SwaggerForOcelot/Aggregates/RoutesDocumentationProvider.cs
- src/MMLib.SwaggerForOcelot/ServiceDiscovery/SwaggerServiceDiscoveryProvider.cs
- tests/MMLib.SwaggerForOcelot.Tests/Aggregates/AggregateRouteDocumentationGeneratorShould.cs
Additional comments not posted (19)
demo/OrderService/SwaggerDefaultValues.cs (3)
26-28
: Good practice! Modern null check syntax.The null check for
operation.Parameters
usingis null
improves readability and aligns with modern C# practices.
37-39
: Good practice! Modern null check syntax.The null check for
parameter.Description
usingis null
improves readability and aligns with modern C# practices.
42-44
: Good practice! Modern null check syntax.The null check for
parameter.Default
usingis null
improves readability and aligns with modern C# practices.src/MMLib.SwaggerForOcelot/Configuration/SwaggerEndPointOptions.cs (1)
62-62
: Good practice! Modern null check syntax.The null check for
Config
usingis not null
improves readability and aligns with modern C# practices.demo/ProjectService/Controllers/ProjectsService.cs (1)
54-56
: Good practice! Modern null check syntax.The null check for
project
usingis not null
improves readability and aligns with modern C# practices.src/MMLib.SwaggerForOcelot/RouteOptionsExtensions.cs (1)
28-28
: Good practice! Modern null check syntax.The null check for
UpstreamHttpMethod
usingis not null
improves readability and aligns with modern C# practices.src/MMLib.SwaggerForOcelot/Aggregates/RouteDocs.cs (3)
60-60
: LGTM! Modern null check.The null check update to
is not null
is consistent with modern C# practices.
68-68
: LGTM! Nested null check update.The nested null check update to
is not null
is consistent with modern C# practices.
144-144
: LGTM! Modern null check.The null check update to
is not null
is consistent with modern C# practices.src/MMLib.SwaggerForOcelot/Middleware/SwaggerForOcelotMiddleware.cs (4)
74-74
: LGTM! Modern null check.The null check update to
is not null
is consistent with modern C# practices.
140-140
: LGTM! Modern null check.The null check update to
is not null
is consistent with modern C# practices.
146-146
: LGTM! Modern null check.The null check update to
is not null
is consistent with modern C# practices.
151-151
: LGTM! Modern null check.The null check update to
is not null
is consistent with modern C# practices.src/MMLib.SwaggerForOcelot/Transformation/SwaggerJsonTransformer.cs (6)
89-89
: LGTM! Modern null check.The null check update to
is not null
is consistent with modern C# practices.
103-103
: LGTM! Modern null check.The null check update to
is not null
is consistent with modern C# practices.
139-139
: LGTM! Modern null check.The null check update to
is not null
is consistent with modern C# practices.
144-144
: LGTM! Modern null check.The null check update to
is not null
is consistent with modern C# practices.
157-157
: LGTM! Modern null check.The null check update to
is not null
is consistent with modern C# practices.
351-351
: LGTM! Modern null check.The null check update to
is not null
is consistent with modern C# practices.
Summary by CodeRabbit
Refactor
is not null
syntax for improved readability and consistency.Chores