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

[Rule Request] Prohibited Interface Builder #2365

Closed
2 tasks done
marcelofabri opened this issue Aug 26, 2018 · 0 comments
Closed
2 tasks done

[Rule Request] Prohibited Interface Builder #2365

marcelofabri opened this issue Aug 26, 2018 · 0 comments
Labels
rule-request Requests for a new rules.

Comments

@marcelofabri
Copy link
Collaborator

marcelofabri commented Aug 26, 2018

New Issue Checklist

Rule Request

  1. Why should this rule be added? Share links to existing discussion about what
    the community thinks about this.

Using Interface Builder (storyboards or nibs) is a constant subject of heated debates in the iOS community. Some projects don't use it at all. For those cases, a rule validating the use of @IBAction and @IBOutlet would be helpful.

  1. Provide several examples of what would and wouldn't trigger violations.
// would trigger
@IBOutlet var label: UILabel!

@IBAction func buttonTapped(_ sender: UIButton) {}

// wouldn't trigger
var label: UILabel!

@objc func buttonTapped(_ sender: UIButton) {}
  1. Should the rule be configurable, if so what parameters should be configurable?

Just severity.

  1. Should the rule be opt-in or enabled by default? Why?
    See README.md for guidelines on when to mark a
    rule as opt-in.

Opt-in, as using IB or not is a project decision.

@marcelofabri marcelofabri added the rule-request Requests for a new rules. label Aug 26, 2018
@realm-probot realm-probot bot added O:User rule-request Requests for a new rules. labels Aug 26, 2018
sjavora pushed a commit to sjavora/SwiftLint that referenced this issue Mar 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rule-request Requests for a new rules.
Projects
None yet
Development

No branches or pull requests

1 participant