realm / realm/SwiftLint

Falsepositive overridden_super_call

Open
#5,655 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
19.7k
Forks
2.3k
Avg merge
1d 1h
Merged PRs (30d)
11

Description

image
    @IBOutlet private weak var contextView: UIView!
    override func viewWillAppear(_ animated: Bool) {
        if animated {
            contextView.transform = CGAffineTransform(translationX: 0, y: contextView.bounds.height)

            UIView.transition(with: contextView,
                              duration: 0.25,
                              options: .curveEaseInOut,
                              animations: {
                self.contextView.transform = .identity
            },
                              completion: { _ in
                super.viewWillAppear(true)
            })
        } else {
            super.viewWillAppear(false)
        }
    }

Version 0.55.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the provided Swift example with SwiftLint 0.55.1 and trace the overridden_super_call rule entry point. Done means the valid super.viewWillAppear calls in this example are no longer reported as violations, while the rule still catches actual issues.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.