Skip to content

style: Fix StyleCop SA1143 and SA1315 warnings - #624

Merged
lahirumaramba merged 1 commit into
mainfrom
lm-fix-stylecop-warnings
Dec 3, 2026
Merged

lahirumaramba merged 1 commit into
mainfrom
lm-fix-stylecop-warnings

Conversation

@lahirumaramba

Copy link
Copy Markdown
Member

StyleCop.Analyzers 1.3.180 enables two new rules by default (SA1143 for consistent multiline ternary formatting and SA1315 for matching inherited parameter names), which fail the build under TreatWarningsAsErrors=true and block Dependabot PR #616.

Wrap the three multiline conditional expressions consistently and rename the internal Initialize(client) parameter in RetryHttpClientInitializer to httpClient to match IConfigurableHttpClientInitializer. Verified Release builds pass with zero errors under both StyleCop.Analyzers 1.2.0-beta.556 and 1.3.180 across all four projects.

StyleCop.Analyzers 1.3.180 enables two new rules by default (SA1143 for consistent multiline ternary formatting and SA1315 for matching inherited parameter names), which fail the build under TreatWarningsAsErrors=true and block Dependabot PR #616.

Wrap the three multiline conditional expressions consistently and rename the internal Initialize(client) parameter in RetryHttpClientInitializer to httpClient to match IConfigurableHttpClientInitializer. Verified Release builds pass with zero errors under both StyleCop.Analyzers 1.2.0-beta.556 and 1.3.180 across all four projects.
@lahirumaramba
lahirumaramba requested a review from a team December 3, 2026 13:55

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request primarily introduces formatting updates to ternary operators across multiple files and renames a parameter from client to httpClient in RetryHttpClientInitializer.cs. Feedback on these changes highlights a potential NullReferenceException in TenantManager.cs if the response object is null, suggesting a defensive null-conditional check when retrieving the next page token.

@lahirumaramba
lahirumaramba merged commit bf68c6c into main Dec 3, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants