Skip to content

Add the ability to auto-correct #5

Closed

Description

@segiddins
No description provided.

Activity

  1. krzyzanowskim commented on May 22, 2015

    @krzyzanowskim

    👍

  2. skywinder commented on May 28, 2015

    @skywinder

    Will be awesome. +1
    I think this issue should be divided for a several sub-issues such as

    1. detect possible fixups and show them in warnings messages
    2. add special option to fix them (As example -a, --auto-correct Auto-correct offenses. in rubocop (ruby linter)
    3. add ability to enable/disable this corrections from .swiftlint.yml (depends of Support configuration file #3 )
    4. and finally, if it's possible: integrate it with Xcode to provide this autocorrections directly from Xcode
  3. martinlindhe commented on Sep 14, 2015

    @martinlindhe

    +1

  4. lfaoro commented on Sep 16, 2015

    @lfaoro

    👍

  5. mgrebenets commented on Nov 5, 2015

    @mgrebenets
    Contributor

    +1

    We giving SwiftLint a try and one thing people find annoying is number of trailing whitespaces warnings. Why those show up in the code is another question, let's not go into details :)

    But if SwiftLint could have an auto formatting option like Uncrustify for Objective-C, we would definitely turn it on. In that case though, it most likely has to be a plugin with "Format on Save" option.

  6. added
    enhancement
    on Nov 18, 2015
  7. craimasjien commented on Nov 23, 2015

    @craimasjien

    Since my current project is the first I'm really working with Swift seriously I'd love this feature. My and my team members already generated 999+ warnings and 318 errors based on SwiftLint, which means we are not really working via the coding standard.

  8. jpsim commented on Nov 28, 2015

    @jpsim
    Collaborator

    There's a first draft of autocorrect functionality at #241. I'd appreciate your feedback on how I'm planning for this to work. Thanks for your patience!

  9. jpsim commented on Dec 25, 2015

    @jpsim
    Collaborator

    Done in #241.

  10. skywinder commented on Dec 26, 2015

    @skywinder

    🎉

  11. Gerst20051 commented on Apr 29, 2016

    @Gerst20051

    👍

  12. added a commit that references this issue on May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions