Skip to content

Misc cleanup#1236

Merged
rgoldberg merged 11 commits into
mas-cli:mainfrom
rgoldberg:7.0.0/1235-cleanup
Apr 28, 2026
Merged

Misc cleanup#1236
rgoldberg merged 11 commits into
mas-cli:mainfrom
rgoldberg:7.0.0/1235-cleanup

Conversation

@rgoldberg

Copy link
Copy Markdown
Member

Misc cleanup.

Resolve #1235

@rgoldberg rgoldberg added this to the 7.0.0 milestone Apr 28, 2026
@rgoldberg rgoldberg self-assigned this Apr 28, 2026
@rgoldberg rgoldberg added dependencies Update dependencies cleanup Optimization of (not bug fix for) an existing feature labels Apr 28, 2026

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request updates SwiftFormat to version 0.61.1 and refactors the versioning utility logic by splitting the monolithic Version+SemVer.swift into modular files and protocols. It also standardizes command file headers, updates script function naming, and refines linting configurations. Feedback is provided regarding multiple instances of force unwrapping in Sources/mas/, which violates the project's engineering standards; specifically, static URLs and regex matches should be handled more safely using failable initializers or guards.

Comment thread Sources/mas/Models/CatalogApp.swift Outdated
Comment thread Sources/mas/Utilities/Versions/UniversalSemVer.swift Outdated
Comment thread Sources/mas/Utilities/Versions/UniversalSemVerInt.swift Outdated
@rgoldberg rgoldberg force-pushed the 7.0.0/1235-cleanup branch from bf642e8 to 09523ef Compare April 28, 2026 08:04
@rgoldberg

Copy link
Copy Markdown
Member Author

/gemini review

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request updates the project to SwiftFormat 0.61.1 and refactors the versioning utilities by splitting the monolithic Version+SemVer.swift into several modular files. It introduces a @required property wrapper for dependency management and refactors CatalogApp to use explicit URLs for API requests. Review feedback identifies a logic error in semantic version comparison where release versions were incorrectly ranked lower than pre-releases and recommends returning nil instead of using preconditionFailure within a failable initializer.

Comment thread Sources/mas/Utilities/Versions/UniversalSemVer.swift
Comment thread Sources/mas/Utilities/Versions/UniversalSemVerInt.swift
@rgoldberg rgoldberg force-pushed the 7.0.0/1235-cleanup branch from 09523ef to 75445a5 Compare April 28, 2026 18:20
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
…ter.

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
…essibleByStringLiteral`.

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
@rgoldberg rgoldberg force-pushed the 7.0.0/1235-cleanup branch from 75445a5 to 3413fa3 Compare April 28, 2026 18:30
@sonarqubecloud

sonarqubecloud Bot commented Apr 28, 2026

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
Image 0 New issues
Image 0 Accepted issues

Measures
Image 0 Security Hotspots
Image No data about Coverage
Image 0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@rgoldberg

Copy link
Copy Markdown
Member Author

/gemini review

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request updates project dependencies, including SwiftFormat and the GitHub CLI, and refactors the versioning utility logic by splitting the monolithic Version+SemVer.swift into several modular files. It introduces a new @required property wrapper for dependency management and updates CatalogApp to utilize configurable URLs. Additionally, file header comments have been standardized across the codebase, and various SwiftFormat/SwiftLint directives were adjusted. I have no feedback to provide as no review comments were present.

@mas-cli mas-cli deleted a comment from gemini-code-assist Bot Apr 28, 2026
@rgoldberg rgoldberg merged commit e9530e0 into mas-cli:main Apr 28, 2026
9 checks passed
@rgoldberg rgoldberg deleted the 7.0.0/1235-cleanup branch April 28, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Optimization of (not bug fix for) an existing feature dependencies Update dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Misc cleanup

1 participant