Skip to content
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

Style checking azure identity #7583

Merged

Conversation

chidozieononiwu
Copy link
Member

Enable StyleCop and fix errors
Fix code style to adhere to editorconfig rules

@pakrym
Copy link
Contributor

pakrym commented Sep 12, 2019

You did core changes here too

@chidozieononiwu chidozieononiwu force-pushed the StyleCheckingAzureIdentity branch 2 times, most recently from 27372c5 to 46affad Compare September 12, 2019 18:05
@chidozieononiwu
Copy link
Member Author

You did core changes here too

I have removed all core related changes.


/// <summary>
/// Creates an instance with the specified <see cref="TokenCredential"/> sources.
/// </summary>
/// <param name="sources">The ordered chain of <see cref="TokenCredential"/> implementations to tried when calling <see cref="GetToken"/> or <see cref="GetTokenAsync"/></param>
public ChainedTokenCredential(params TokenCredential[] sources)
{
if (sources == null) throw new ArgumentNullException(nameof(sources));
if (sources == null)
throw new ArgumentNullException(nameof(sources));
Copy link
Member

Choose a reason for hiding this comment

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

Can we bracket these? I'm not a huge fan of having them on a new line without brackets.

Copy link
Member Author

Choose a reason for hiding this comment

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

This rule csharp_preserve_single_line_statements = false is responsible for that. I have fixed up the current instances but it will likely happen again when new single line statements are introduced.

@chidozieononiwu chidozieononiwu force-pushed the StyleCheckingAzureIdentity branch from 46affad to 396257f Compare September 12, 2019 21:02
@chidozieononiwu chidozieononiwu merged commit a2f2ef3 into Azure:master Sep 12, 2019
@chidozieononiwu chidozieononiwu deleted the StyleCheckingAzureIdentity branch September 12, 2019 21:10
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.

3 participants