Skip to content

Code Quality: Address all nullable and XAML compiler warnings - #18783

Open
hez2010 wants to merge 13 commits into
files-community:mainfrom
hez2010:fix-warnings
Open

Code Quality: Address all nullable and XAML compiler warnings#18783
hez2010 wants to merge 13 commits into
files-community:mainfrom
hez2010:fix-warnings

Conversation

@hez2010

@hez2010 hez2010 commented Jul 30, 2026

Copy link
Copy Markdown
Member

Addressed all nullable-related warnings and reworked the sidebar bindings a bit to address the AOT warnings from the XAML compiler as well.

Now thousands of warnings during build should gone. The remaining ones are usage to obsoleted APIs, which can be done separately.

@CLAassistant

CLAassistant commented Jul 30, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 73b4c36bcc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/Files.App/Utils/Storage/Collection/BlockingListEnumerator.cs Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review


P2 Badge Preserve Current's invalid-state exception

When a caller reads Current before the first successful MoveNext(), after MoveNext() returns false, or after Reset(), this now returns default(T) or the stale last item instead of throwing InvalidOperationException as an IEnumerator<T> implementation must. This can silently expose invalid data to consumers that manually drive the enumerator; track whether the captured value is valid and retain the exception without re-indexing the mutable list.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@yair100 yair100 changed the title Address all nullable and XAML compiler warnings Code Quality: Address all nullable and XAML compiler warnings Jul 30, 2026
Comment thread src/Files.App/Views/Layouts/ColumnLayoutPage.xaml
Comment thread src/Files.App/Views/Layouts/DetailsLayoutPage.xaml
Comment thread src/Files.App/Views/Properties/CustomizationPage.xaml
yair100
yair100 previously approved these changes Jul 30, 2026
@hez2010

hez2010 commented Jul 31, 2026

Copy link
Copy Markdown
Member Author

Tested locally and didn't find any regression.

@0x5bfa 0x5bfa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, code wise! Amazing work.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ce9c7b109e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/Files.App/Data/Items/SidebarLibraryItem.cs Outdated
Comment thread src/Files.App/Data/Items/SidebarLibraryItem.cs
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.

4 participants