Skip to content

Conversation

matt-livefront
Copy link
Collaborator

@matt-livefront matt-livefront commented Sep 30, 2025

🎟️ Tracking

PM-26387

📔 Objective

Fixes the remaining lint warnings.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@matt-livefront matt-livefront requested a review from a team as a code owner September 30, 2025 22:16
Copy link
Contributor

github-actions bot commented Sep 30, 2025

Logo
Checkmarx One – Scan Summary & Details4a0892d7-ee53-4130-9e65-ccd75af52160

Great job! No new security vulnerabilities introduced in this pull request

Copy link

codecov bot commented Sep 30, 2025

Codecov Report

❌ Patch coverage is 35.77586% with 447 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.78%. Comparing base (277efe6) to head (a544811).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...ared/UI/Vault/ItemList/ItemList/ItemListView.swift 0.00% 100 Missing ⚠️
...tAuthenticatorItem/EditAuthenticatorItemView.swift 0.00% 39 Missing ⚠️
...t/ItemList/ItemList/ItemListSection+Fixtures.swift 0.00% 25 Missing ⚠️
...ared/Core/Platform/Services/ServiceContainer.swift 0.00% 23 Missing ⚠️
...Item/AuthenticatorKeyCapture/ManualEntryView.swift 36.66% 19 Missing ⚠️
...llExtension/CredentialProviderViewController.swift 0.00% 18 Missing ⚠️
...orShared/UI/Auth/VaultUnlock/VaultUnlockView.swift 0.00% 16 Missing ⚠️
...lt/PreviewContent/BitwardenSdk+VaultFixtures.swift 21.05% 15 Missing ⚠️
...d/UI/Platform/Tutorial/Tutorial/TutorialView.swift 0.00% 14 Missing ⚠️
...lt/Views/ItemListItemRow/ItemListItemRowView.swift 0.00% 13 Missing ⚠️
... and 72 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2007      +/-   ##
==========================================
- Coverage   81.32%   75.78%   -5.55%     
==========================================
  Files         832     1018     +186     
  Lines       52457    62052    +9595     
==========================================
+ Hits        42663    47028    +4365     
- Misses       9794    15024    +5230     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

),
],
name: "example.com",
name: "example.com"
Copy link
Contributor

Choose a reason for hiding this comment

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

🤔 For some reason, I thought we had final commas turned on? Did that change? And if this is just for parameter lists, I kind of think we should be consistent about it, especially now that Xcode 26 allows it. Thoughts?

Copy link
Member

@fedemkr fedemkr Oct 1, 2025

Choose a reason for hiding this comment

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

I personally don't like trailing commas when there are no further items after that (nor see the benefit of it). I can live with the ones in the array lists as there are a lot of them and it'd be tedious to change them all, but IMO we shouldn't use that for function parameters (as in this case).

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, I prefer trailing commas because it makes diffs easier to read and makes it easier to rearrange the orders of things (or insert/delete items), because you never have to futz with the commas as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For some reason, I thought we had final commas turned on?

I think SwiftFormat didn't previously complain about whether you included the trailing comma or not for parameter lists. It is configurable though, so we could enable either option.

I do like trailing commas for the reasons @KatherineInCode noted. Parameter lists would take some getting used to, but it might be nice for consistency. That would be a large change though, so maybe we can consider it and enable it separately if we want to do that.

Copy link
Contributor

Choose a reason for hiding this comment

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

It might be reasonable to just turn the rule off entirely right now, and address the inconsistency later after some discussion?

Copy link
Member

Choose a reason for hiding this comment

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

Oh that's a nice thought, I don't mind dealing with the commas but if it's easier for review and code rearrangement then let's configure and use it for sure 👍

fedemkr
fedemkr previously approved these changes Oct 1, 2025
@matt-livefront matt-livefront merged commit cb17d21 into main Oct 6, 2025
12 checks passed
@matt-livefront matt-livefront deleted the matt/PM-26387-fix-lint-warnings branch October 6, 2025 20:18
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