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

Add FxCop with only ConfigureAwait rule enabled for now #932

Merged
merged 3 commits into from
Aug 24, 2020

Conversation

danielmarbach
Copy link
Collaborator

Proposed Changes

Fixes #917

Types of Changes

What types of changes does your code introduce to this project?
Put an x in the boxes that apply

  • Bug fix (non-breaking change which fixes issue #NNNN)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause an observable behavior change in existing systems)
  • Documentation improvements (corrections, new content, etc)
  • Cosmetic change (whitespace, formatting, etc)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating
the PR. If you're unsure about any of them, don't hesitate to ask on the
mailing list. We're here to help! This is simply a reminder of what we are
going to look for before merging your code.

  • I have read the CONTRIBUTING.md document
  • I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
  • All tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in related repositories

Further Comments

@danielmarbach
Copy link
Collaborator Author

Travis CI is failing due to not being able to fetch some erlang stuff

Copy link
Contributor

@stebet stebet left a comment

Choose a reason for hiding this comment

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

Like it!

@michaelklishin michaelklishin merged commit ababdc7 into rabbitmq:master Aug 24, 2020
@@ -4,6 +4,7 @@
<TargetFrameworks>net461;netcoreapp3.1</TargetFrameworks>
<AssemblyOriginatorKeyFile>../rabbit.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
Copy link
Contributor

Choose a reason for hiding this comment

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

@danielmarbach why is this required? I see that no analyzers are installed in this project, nor in the parent Directory.Build.targets. Or is there a transitive dependency somewhere?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Without the flag in VS

image

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is related to PrivateAssets="None". If switched to All we can remove the exclusion from analysis

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Raised #941

Copy link
Contributor

Choose a reason for hiding this comment

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

PrivateAssets="None"

👍 yes, that explains it.

@danielmarbach danielmarbach deleted the fxcop branch September 15, 2020 17:12
@danielmarbach
Copy link
Collaborator Author

I have no idea anymore. Without this I got warning in test project automatically because Fxcop seemed to be loaded fully and analysing all assemblies. At least this is how it was locally at that time in Rider. I can try to remove it again when I have time at some point if anybody cares

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.

Consider adding FxCop
4 participants