Enable SwiftLint rule 'cyclomatic_complexity' and fix violation which is reasonable

This commit is contained in:
Danny Moesch 2020-09-19 17:15:49 +02:00 committed by Mingshen Sun
parent 8345bb89a4
commit 2cdd0e2521
3 changed files with 39 additions and 51 deletions

View file

@ -137,6 +137,7 @@ class PasswordEditorTableViewController: UITableViewController {
additionsCell?.contentTextView.setContentOffset(.zero, animated: false)
}
// swiftlint:disable:next cyclomatic_complexity
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cellData = tableData[indexPath.section][indexPath.row]