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

Warning cleanup, part 2 #13696

Merged
merged 1 commit into from
Nov 23, 2023
Merged

Conversation

MrJul
Copy link
Member

@MrJul MrJul commented Nov 22, 2023

Another batch of warning fixes. This time focused on mobile, samples, and tests projects.

Notable changes:

  • In Android, some Build.VERSION.SdkInt >= X checks have been replaced with OperatingSystem.IsAndroidVersionAtLeast.
  • In Tizen, accessing some un-initialized platform properties now throws InvalidOperationException instead of NullReferenceException.

@maxkatz6
Copy link
Member

I believe these PRs are good candidates for .git-blame-ignore-revs file.

@MrJul
Copy link
Member Author

MrJul commented Nov 23, 2023

I believe these PRs are good candidates for .git-blame-ignore-revs file.

I don't know. There are many edits, but very localized, so you won't stumble upon a single block of 1000 lines of code all changed in the same PR - which is where the pain of losing years of history is.

In this PR, most edits are adding a ? or !, but there are bigger changes like complete #nullable enable in some files, or a couple of real test fixes (which should probably have been a different PR, but in the sea of fixing warnings, splitting changes wasn't that easy).

I've been very careful to not break anything, but since there some minor logic changes, I think you'd want them to appear immediately when searching for a potential bug in the future.

My opinion is that we should use git-blame-ignore-revs for big PRs that affect a lot of surrounding code at once without changing meaning, i.e. formatting, or moving code around in a way that git doesn't detect.

@MrJul MrJul added this pull request to the merge queue Nov 23, 2023
Merged via the queue into AvaloniaUI:master with commit 3fa13d3 Nov 23, 2023
6 checks passed
@MrJul MrJul deleted the fix/warning-cleanup-2 branch November 23, 2023 11:28
@robloo
Copy link
Contributor

robloo commented Nov 23, 2023

My opinion is that we should use git-blame-ignore-revs for big PRs that affect a lot of surrounding code at once without changing meaning, i.e. formatting, or moving code around in a way that git doesn't detect.

This is what I've seen in the vast majority of examples. The intended use is for massive refactoring and code formatting for the most part.

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.

3 participants