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

Eliminate All Compiler Warnings In Solution #2149

Open
mark-monteiro opened this issue Dec 13, 2019 · 12 comments · Fixed by #6667 · May be fixed by #11473
Open

Eliminate All Compiler Warnings In Solution #2149

mark-monteiro opened this issue Dec 13, 2019 · 12 comments · Fixed by #6667 · May be fixed by #11473
Labels
confirmed This issue has been reviewed and confirmed good first issue Good for newcomers
Projects

Comments

@mark-monteiro
Copy link
Member

mark-monteiro commented Dec 13, 2019

This is a general ticket to track progress on eliminating all warnings in the solution source code, including enabling missing analyzers and converting warnings to errors in release builds. @Bond-009, as I understand, you have already been working on this for a while. I thought I would start helping out with this task and we (and anyone else) can coordinate progress here.

The table below summarizes the progress on this task at the current HEAD commit on master:

Project Warnings FxCop Analyzer StyleCop Analyzer Serilog Analyzer Multithreading Analyzer Warnings As Errors
DvdLib
Emby.Dlna
Emby.Drawing
Emby.Naming
Emby.Notifications
Emby.Photos
Emby.Server.Implementations
  • (644 Warnings)
Jellyfin.Api
Jellyfin.Data
Jellyfin.Drawing.Skia
Jellyfin.Server
Jellyfin.Server.Implementations
MediaBrowser.Common
MediaBrowser.Controller
  • (1053 Warnings)
MediaBrowser.LocalMetadata
MediaBrowser.MediaEncoding
MediaBrowser.Model
  • (2132 Warnings)
MediaBrowser.Providers
  • (538 Warnings)
MediaBrowser.XbmcMetadata
RSSDP
Jellyfin.Api.Tests
Jellyfin.Common.Tests
Jellyfin.Controller.Tests
Jellyfin.MediaEncoding.Tests
Jellyfin.Model.Tests
Jellyfin.Naming.Tests
Jellyfin.Server.Implementations.Tests
MediaBrowser.Api.Tests
Total 4367 Warnings
@Bond-009 Bond-009 added this to To do in Cleanup Apr 5, 2020
@mark-monteiro mark-monteiro added the good first issue Good for newcomers label Apr 19, 2020
@dkanada dkanada pinned this issue Apr 27, 2020
@jvoisin
Copy link
Contributor

jvoisin commented Jun 26, 2020

Would it be possible to add LGTM.com to the list? It found a lot of issues.

This was referenced Aug 4, 2020
Cleanup automation moved this from To do to Done Oct 8, 2021
@Bond-009 Bond-009 reopened this Sep 9, 2022
Cleanup automation moved this from Done to In progress Sep 9, 2022
@Christian-Oleson
Copy link

I'm willing to help out with this if you are looking for help

@jbatt33
Copy link

jbatt33 commented Mar 30, 2023

I just built Jellyfin and I'm not seeing any warnings. Is this bug fixed or am I looking at the wrong repo. Maybe I need to build harder.

@Bond-009
Copy link
Member

@jbatt33 are you building in debug mode?

@jbatt33
Copy link

jbatt33 commented Mar 30, 2023

Yes, I did both debug and release builds of the jellyfin under VS 2022 and did not get any warnings or errors, but get 3 messages:
image

@Bond-009
Copy link
Member

I think it's an issue with dotnet, if you remove <CodeAnalysisTreatWarningsAsErrors>false</CodeAnalysisTreatWarningsAsErrors> from the projects that have it you'll get build errors

@jbatt33
Copy link

jbatt33 commented Mar 31, 2023

Thanks, I deleted that line from the project file and it's working as expected. I'm going to see if I can tackle any of these.

@LoremFooBar
Copy link

I'd like to try to clear some of these warnings. I already started with the simpler ones. Some warnings require refactoring that is easy to do, but hard to determine whether they are breaking changes. I'd like to try to tackle these as well later on.

@gsedubun
Copy link

gsedubun commented May 1, 2024

I'd like to try to clear some of these.

@gsedubun gsedubun linked a pull request May 1, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed This issue has been reviewed and confirmed good first issue Good for newcomers
Projects
Cleanup
  
In progress
Status: In Progress
9 participants