Skip to content

Unable to specify what rules to validate against #1

Closed

Description

@aarondaub

We should be able to specify what to use - or perhaps specify what rules NOT to use. We should also probably be able to get a list of current rules.

Activity

  1. aarondaub commented on May 18, 2015

    @aarondaub
    Author

    I'll open a PR for this when I'm back at my laptop this evening.

  2. jpsim commented on May 18, 2015

    @jpsim
    Collaborator

    That would be great! The design I'm considering is to have a .swiftlint.yml file or similar (I've opened up #2 to track that).

    I'd also like a syntax like

    // swiftlint:disable_rule:line_length
    ... some long line
    // swiftlint:enable_rule:line_length

    I've opened up #4 to track that. PRs are definitely welcome, or even discussion around the design.

  3. aarondaub commented on May 19, 2015

    @aarondaub
    Author

    I'm having an issue constraining objects to Rule because it has a type alias. Trying to think of a good solution.

  4. eneko commented on Aug 20, 2015

    @eneko

    I support the idea of a .swiftlint.yml configuration file to disable or configure some rules, like line_length. Any work completed on that yet?

    In addition, I'd like to suggest for the same configuration file to include options to specify which project folders to include or exclude. This will allow for easy excluding of Pods or third party libraries that developers shouldn't be concerned about (unless working on those projects).

  5. added 4 commits that reference this issue on Aug 24, 2015
    551a57f
    f2f1136
    e31daf0
    19cc87a
  6. added a commit that references this issue on Apr 11, 2017
  7. 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions