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

CA1044 Implementation and Unit Test #827

Closed
wants to merge 1 commit into from

Conversation

Anniepoh
Copy link
Contributor

Implemented code and unit tests for CA1044 based on FXCop code.
Code has tests commented out that had issues. I am not quite certain why. If someone can shed some light, that would be great.

Mentor = Felix Cho.
Code Partner = maggiemsft
Lead = Sri.

cc @maggiemsft
cc @srivatsn

Fixes #390

@dnfclas
Copy link

dnfclas commented Jan 31, 2016

Hi @Anniepoh, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla2.dotnetfoundation.org.

TTYL, DNFBOT;

@dnfclas
Copy link

dnfclas commented Jan 31, 2016

Hi @Anniepoh, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla2.dotnetfoundation.org.

TTYL, DNFBOT;

@Anniepoh
Copy link
Contributor Author

Oops...accidental close it.

@dnfclas
Copy link

dnfclas commented Feb 1, 2016

@Anniepoh, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.

Thanks, DNFBOT;

@dnfclas
Copy link

dnfclas commented Feb 1, 2016

@Anniepoh, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.

Thanks, DNFBOT;

@dnfclas
Copy link

dnfclas commented Feb 1, 2016

@Anniepoh, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.

Thanks, DNFBOT;

@@ -6,20 +6,19 @@
using Analyzer.Utilities;

namespace Microsoft.ApiDesignGuidelines.Analyzers
{
{
/// <summary>
/// CA1044: Properties should not be write only
/// </summary>
public abstract class PropertiesShouldNotBeWriteOnlyAnalyzer : DiagnosticAnalyzer
Copy link
Contributor

Choose a reason for hiding this comment

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

You can make this class sealed and delete the CSharp and VB derived classes since this analyzer is language-agnostic.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi Sri,

For this one I tried to add sealed last night but then ran into syntax problems in the UnitTest code which I didn't quite understand. Let me look around and get back.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Code is coming...

@dnfclas
Copy link

dnfclas commented Feb 2, 2016

@Anniepoh, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.

Thanks, DNFBOT;

@srivatsn
Copy link
Contributor

Closing this in favor of #882

@srivatsn srivatsn closed this Mar 11, 2016
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