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

refactor: treat StyleCop violations as warnings in Release builds #397

Merged
merged 1 commit into from Nov 27, 2014
Merged

Conversation

adamralph
Copy link
Contributor

fixes #262

@@ -60,7 +60,7 @@
<DocumentationFile>Bin\Release\FakeItEasy.xml</DocumentationFile>
<CodeAnalysisRuleSet>..\FakeItEasy.ruleset</CodeAnalysisRuleSet>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
<StyleCopTreatErrorsAsWarnings>true</StyleCopTreatErrorsAsWarnings>
Copy link
Member

Choose a reason for hiding this comment

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

All this looks great. I can't reconcile StyleCop violations being warnings and TreatingWarningsAsErrors being true not equating to violations are still errors, but it works as intended. I'm getting warnings only for the extra violations I injected here. PASS!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

TreatWarningsAsErrors is for the compiler.

Hmmmm... I think we should probably also relax that to false for Release builds too.

Copy link
Member

Choose a reason for hiding this comment

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

What? Seriously? We want to treat all warnings as warnings for release builds? No!
Really?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm leaning very much towards being on the lenient side on things like this when it comes to OSS contributions. Perhaps this is a step too far though.

blairconrad added a commit that referenced this pull request Nov 27, 2014
refactor: treat StyleCop violations as warnings in Release builds
@blairconrad blairconrad merged commit 3b9644b into FakeItEasy:master Nov 27, 2014
@adamralph adamralph deleted the 262 branch November 27, 2014 06:54
@blairconrad
Copy link
Member

I'm coming around to the "lenient" view, but perhaps one step at a time? Compiler warnings seem to be a slightly different beast.

Also, I've already been bitten by the lenient StyleCop warnings. We need a set of warning severities for owners. Or at least me!

@adamralph
Copy link
Contributor Author

We can't have been bitten yet, we've only just merged this PR

@blairconrad
Copy link
Member

I bit myself.

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.

Switch StyleCop violations to warnings for release builds
2 participants