Lean icon indicating copy to clipboard operation
Lean copied to clipboard

Build Warnings Overload

Open C-SELLERS opened this issue 4 years ago • 4 comments

Expected Behavior

We ignore the warnings that are acceptable in our codebase to reduce build logs and improve visibility into new warnings and errors.

Actual Behavior

2000+ warnings in VS build

Potential Solution

Decide and then suppress acceptable warnings

Also maybe handle the warnings that are unacceptable.

Reproducing the Problem

Build Lean

Checklist

  • [x] I have completely filled out this template
  • [x] I have confirmed that this issue exists on the current master branch
  • [x] I have confirmed that this is not a duplicate issue by searching issues
  • [x] I have provided detailed steps to reproduce the issue

C-SELLERS avatar Jan 12 '21 21:01 C-SELLERS

Closing this issue because of the merges that wiped a lot of the warnings. There will still be some ongoing but they are more difficult and involve some breaking changes.

C-SELLERS avatar Apr 15 '21 21:04 C-SELLERS

With the recent upgrade to dotnet 5 framework a lot of new warnings have been generated. It would be great to clear these up so I am going to re-open this issue.

C-SELLERS avatar May 13 '21 19:05 C-SELLERS

In master we are currently at image

  • We can tackle this in ~100 fixes per PR
  • For cases like "AAPL" to Symbol warning in user/example algorithms, maybe we can skip this warning in the project level C# QuantConnect.Algorithm.CSharp. For test project, we could fix or add pragma ignore if we need it cause we are actually testing it

  • let's ignore this one, don't think it looks better but more confusing -> we can add it to project wise warning ignore image

  • let's ignore this one, requesting to add null checks on arguments passed in -> we can add it to project wise warning ignore image

  • let's avoid risky ones like missing dispose, unless in tests code where we can fix

  • let's add a project wise ignore for this one image

  • skip these, not worth it image

  • Create TestException exception for our test project, replace exception, add argument expected vs current

Martin-Molinero avatar Jun 07 '24 16:06 Martin-Molinero

Still in progress

Martin-Molinero avatar Jun 25 '24 21:06 Martin-Molinero