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

Create swift-format.yml #53

Closed
wants to merge 4 commits into from
Closed

Create swift-format.yml #53

wants to merge 4 commits into from

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Aug 11, 2024

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

This PR introduces an automated Swift code formatting workflow and applies formatting changes across several key files.

πŸ“Š Key Changes

  • Added GitHub Action for Swift formatting:
    • Created .github/workflows/swift-format.yml file.
    • Configures the workflow to run on new pull requests targeting main or develop branches.
    • The workflow installs swift-format, runs it on the codebase, and commits any changes back to the branch.
  • Applied formatting to existing Swift files:
    • AppDelegate.swift
    • BoundingBoxView.swift
    • ThresholdProvider.swift
    • VideoCapture.swift
    • ViewController.swift

🎯 Purpose & Impact

  • Purpose:
    • Ensure consistent Swift code formatting across the codebase.
    • Reduce manual effort in maintaining code style.
    • Enhance code readability and maintainability.
  • Impact:
    • Developers will see automatically formatted code in their pull requests.
    • Consistent formatting improves code quality and collaboration.
    • Non-expert users benefit indirectly from smoother updates and bug fixes.

✨ This update brings cleaner, more maintainable code and a streamlined development process! πŸš€

@glenn-jocher glenn-jocher added dependencies Dependencies and packages enhancement New feature or request labels Aug 11, 2024
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch August 11, 2024 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Dependencies and packages enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant