Skip to content

Fix FS3511 warnings in code and set Warnings-as-Errors#55

Merged
ScottArbeit merged 2 commits intomainfrom
fix/fs3511
Jan 11, 2026
Merged

Fix FS3511 warnings in code and set Warnings-as-Errors#55
ScottArbeit merged 2 commits intomainfrom
fix/fs3511

Conversation

@ScottArbeit
Copy link
Owner

There were 18 different instances of the FS3511 warning in the code that had built up. I ran a task to refactor all instances of it to eliminate the warning and add guidance to AGENTS.md to avoid it. I then turned on warnings-as-errors for the entire solution.

The nuisance is that I also turned on Fantomas reformatting, and so that caught most of the files in the solution for reformatting. It's a big PR, but, really, there should be no behavior changes in the code.

@ScottArbeit ScottArbeit merged commit 894d36b into main Jan 11, 2026
3 checks passed
@ScottArbeit ScottArbeit deleted the fix/fs3511 branch January 11, 2026 01:12
Copy link

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

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: d70a47ae4f

ℹ️ 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 on lines +247 to +249
let actorId =
if reminder.ActorId.Length > 8 then
reminder.ActorId.Substring(0, 8)

Choose a reason for hiding this comment

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

P2 Badge Guard null ActorId before truncation

In the list-reminders table rendering, reminder.ActorId.Length/Substring are called without a null check (Admin.CLI.fs). The previous version explicitly handled String.IsNullOrEmpty, so older reminders or deserialized records missing ActorId can now trigger a NullReferenceException, aborting the command for those datasets. Consider normalizing to an empty string or checking String.IsNullOrEmpty before truncating so null/empty actor IDs still render safely.

Useful? React with 👍 / 👎.

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.

1 participant