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

[StyleCop] Treat Warnings as Errors #1512

Merged
merged 13 commits into from
Jun 28, 2019

Conversation

ceciliaavila
Copy link
Collaborator

Solves ISSUE #1423

Description

Update the ruleset file to treat StyleCop warnings as errors

image

NOTE: To merge this PR is necessary that the PR #1473 is merged and that all the stylecop issues are solved.

@ParadoxARG ParadoxARG force-pushed the fix/set-stylecop-warnings-as-error branch 2 times, most recently from 40c63c6 to e4fdb6a Compare March 19, 2019 20:32
@gasper-az
Copy link
Contributor

This PR is ready for Review. However, it's important to notice that the Azure Build process will fail, as this PR attempts to treat the StyleCop Warnings as errors, and there are some remaining warnings to solve.

Note: the next PR fix the remaining Stylecop Warnings:

@gasper-az gasper-az marked this pull request as ready for review April 8, 2019 20:14
@gasper-az gasper-az force-pushed the fix/set-stylecop-warnings-as-error branch from e4fdb6a to 3e76b84 Compare April 9, 2019 18:28
@cleemullins
Copy link
Contributor

We're getting close to taking this. Are we ready? :)

@gasper-az
Copy link
Contributor

We're getting close to taking this. Are we ready? :)

Hi @cleemullins, we created one last PR for fixing the remaining Stylecop Warnings, this is the PR #1668. Once PR #1668 is merged, we will be ready for merging this one.

Also, we created PR #1667, which revert the fixes made on the TestBot.WebApi project (with PR #1642) and ignore all the Warnings there. This is not necessary to merge for treating Warnings as Errors.

@gasper-az gasper-az force-pushed the fix/set-stylecop-warnings-as-error branch from 3e76b84 to 18ebb95 Compare April 15, 2019 14:14
@gasper-az
Copy link
Contributor

Hi @cleemullins,

We performed a last build of the whole Solution just for checking if there are some remaining Stylecop Warnings, but there isn't any of them. So, we can Merge this PR.

@JuanAr JuanAr requested a review from cleemullins April 22, 2019 14:55
@cleemullins cleemullins added the 4.5 4.5 release label Apr 24, 2019
@gasper-az gasper-az force-pushed the fix/set-stylecop-warnings-as-error branch from 18ebb95 to 93d3fa3 Compare May 27, 2019 12:05
@coveralls
Copy link
Collaborator

coveralls commented May 27, 2019

Pull Request Test Coverage Report for Build 67994

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 11 unchanged lines in 4 files lost coverage.
  • Overall coverage remained the same at 77.112%

Files with Coverage Reduction New Missed Lines %
/libraries/Microsoft.Bot.Builder.ApplicationInsights/BotTelemetryClient.cs 1 98.85%
/libraries/Microsoft.Bot.Builder.Dialogs/Choices/Find.cs 1 90.57%
/libraries/Microsoft.Bot.Builder.Azure/CosmosDbStorage.cs 3 49.74%
/libraries/Microsoft.Bot.Builder.AI.QnA/QnAMaker.cs 6 94.05%
Totals Coverage Status
Change from base Build 67957: 0.0%
Covered Lines: 4892
Relevant Lines: 6344

💛 - Coveralls

@fuselabs
Copy link
Collaborator

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.AI.Luis.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.AI.QnA.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.ApplicationInsights.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.Azure.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.Dialogs.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.TemplateManager.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Configuration.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Connector.dll

✔️ No Binary Compatibility issues for Microsoft.Bot.Schema.dll

@cleemullins
Copy link
Contributor

@ceciliaavila Are we ready to take this? Could you "touch" the PR so it triggers a new build? If the build passes, let's merge it in.

@ceciliaavila ceciliaavila force-pushed the fix/set-stylecop-warnings-as-error branch from 93d3fa3 to 2300af5 Compare June 12, 2019 21:06
@ceciliaavila
Copy link
Collaborator Author

ceciliaavila commented Jun 12, 2019

@ceciliaavila Are we ready to take this? Could you "touch" the PR so it triggers a new build? If the build passes, let's merge it in.

Hi @cleemullins, we just rebased this PR and found that there are new errors. We will be fixing them. Once they are solved, we will let you know.

@ceciliaavila
Copy link
Collaborator Author

ceciliaavila commented Jun 13, 2019

@ceciliaavila Are we ready to take this? Could you "touch" the PR so it triggers a new build? If the build passes, let's merge it in.

Hi @cleemullins, we just rebased this PR and found that there are new errors. We will be fixing them. Once they are solved, we will let you know.

Hi @cleemullins, we created the PR #2068 with the fix of the new StyleCop issues. After it gets merged, we can rebase this PR to merge it too.
Thanks!

@ceciliaavila ceciliaavila force-pushed the fix/set-stylecop-warnings-as-error branch from 2300af5 to c31dad3 Compare June 21, 2019 13:16
@ceciliaavila ceciliaavila force-pushed the fix/set-stylecop-warnings-as-error branch from c31dad3 to 74975f8 Compare June 24, 2019 17:40
@fuselabs
Copy link
Collaborator

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.AI.Luis.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.AI.QnA.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.ApplicationInsights.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.Azure.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.Dialogs.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.TemplateManager.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Configuration.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Connector.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Schema.dll compared against version 4.3.1

@gabog gabog requested review from gabog and removed request for cleemullins June 27, 2019 22:11
@gabog
Copy link
Contributor

gabog commented Jun 27, 2019

Hi @ceciliaavila, it looks like the branch got outdated, can you resolve the conflicts and ping me when is done and I will review again.

Thanks

Updated Directory.Build.Props to use the lates stable StyleCope (1.1.118)
Removed documentation target from Directory.Build.Props (not used anymore).
Removed  <code>false</code>. tags that were upsetting StyleCop.
Fixed a bunch of StyleCope issues that were generating compile errors.
Fixed authentication namespaces
@fuselabs
Copy link
Collaborator

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.AI.Luis.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.AI.QnA.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.ApplicationInsights.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.Azure.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.Dialogs.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.TemplateManager.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Configuration.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Connector.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Schema.dll compared against version 4.3.1

@fuselabs
Copy link
Collaborator

✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.AI.Luis.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.AI.QnA.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.ApplicationInsights.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.Azure.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.Dialogs.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.TemplateManager.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Configuration.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Connector.dll compared against version 4.3.1
✔️ No Binary Compatibility issues for Microsoft.Bot.Schema.dll compared against version 4.3.1

@cleemullins cleemullins merged commit 764fb15 into master Jun 28, 2019
@cleemullins cleemullins deleted the fix/set-stylecop-warnings-as-error branch June 28, 2019 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.5 4.5 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants