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 EventHubs #7635

Merged

Conversation

chidozieononiwu
Copy link
Member

No description provided.

@chidozieononiwu
Copy link
Member Author

/azp run net - eventhub - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@jsquire jsquire left a comment

Choose a reason for hiding this comment

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

LGTM. There were too many files to go through each line-by-line, but the random sampling that I did looked ok.

There's one part that didn't match my expectations, with respect to our treatment of readonly and static readonly members, which are intended to be "constants that you have to assign at initialization". I would expect those to follow the const rules rather than the class/static member ones. I'm hoping that @AlexGhiondea can weigh in there.

I want to scream at the sky to give me back my vars, but I realize that I've already lost that debate and instead will look across the verbose landscape of code left smoldering in the wake of reformatting and lament my fate.

@@ -21,13 +21,13 @@ namespace Azure.Messaging.EventHubs.CheckpointStore.Blob
public sealed class BlobPartitionManager : PartitionManager
{
/// <summary>A regular expression used to capture strings enclosed in double quotes.</summary>
private static readonly Regex DoubleQuotesExpression = new Regex("\"(.*)\"", RegexOptions.Compiled);
private static readonly Regex s_doubleQuotesExpression = new Regex("\"(.*)\"", RegexOptions.Compiled);
Copy link
Member

Choose a reason for hiding this comment

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

I could have sworn that our guidance was to treat static readonly in the same manner as const and only use the s_ prefix for things that were variable. No?

@AlexGhiondea - Any chance that you can weigh in with your thoughts here?

@chidozieononiwu chidozieononiwu merged commit b4371c8 into Azure:master Sep 18, 2019
@chidozieononiwu chidozieononiwu deleted the StyleCheckingEventHubs branch September 18, 2019 22:03
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