Skip to content

Instantly share code, notes, and snippets.

@yunarta
Created January 16, 2018 06:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yunarta/ccf02bcb483b496273faca8973e25254 to your computer and use it in GitHub Desktop.
Save yunarta/ccf02bcb483b496273faca8973e25254 to your computer and use it in GitHub Desktop.
included:
- Gate-iOS/Gate-iOS
- SwiftVIPER/SwiftVIPER
disabled_rules:
- line_length
- identifier_name
- trailing_whitespace
- trailing_newline
- vertical_parameter_alignment
- fallthrough
- file_length
- opening_brace
- todo
- large_tuple
- implicit_getter
- type_body_length
- cyclomatic_complexity
- type_name
reporter: checkstyle
custom_rules:
UITextFieldDelegate.textFieldShouldBeginEditing:
regex: "^\\s*(public|)\\s*func textFieldShouldBeginEditing\\(_\\s*textField:\\s*UITextField"
message: "Implementation of optional protocol function should use @objc"
severity: error
UITextFieldDelegate.textFieldDidBeginEditing:
regex: "^\\s*(public|)\\s*func textFieldDidBeginEditing\\(_\\s*textField:\\s*UITextField"
message: "Implementation of optional protocol function should use @objc"
severity: error
UITextFieldDelegate.textFieldShouldEndEditing:
regex: "^\\s*(public|)\\s*func textFieldShouldEndEditing\\(_\\s*textField:\\s*UITextField"
message: "Implementation of optional protocol function should use @objc"
severity: error
UITextFieldDelegate.textFieldDidEndEditing:
regex: "^\\s*(public|)\\s*func textFieldDidEndEditing\\(_\\s*textField:\\s*UITextField"
message: "Implementation of optional protocol function should use @objc"
severity: error
UITextFieldDelegate.textFieldDidEndEditing:
regex: "^\\s*(public|)\\s*func textFieldDidEndEditing\\(_\\s*textField:\\s*UITextField"
message: "Implementation of optional protocol function should use @objc"
severity: error
UITextFieldDelegate.textField:
regex: "^\\s*(public|)\\s*func textField\\(_\\s*textField:\\s*UITextField"
message: "Implementation of optional protocol function should use @objc"
severity: error
UITextFieldDelegate.textFieldShouldClear:
regex: "^\\s*(public|)\\s*func textFieldShouldClear\\(_\\s*textField:\\s*UITextField"
message: "Implementation of optional protocol function should use @objc"
severity: error
UITextFieldDelegate.textFieldShouldReturn:
regex: "^\\s*(public|)\\s*func textFieldShouldReturn\\(_\\s*textField:\\s*UITextField"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDataSource.numberOfSections:
regex: "^\\s*(public|)\\s*func\\s*numberOfSections\\(in\\s*collectionView:\\s*UICollectionView\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDataSource.collectionView.viewForSupplementaryElementOfKind:
regex: "^\\s*(public|)\\s*func\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*viewForSupplementaryElementOfKind\\s*kind:\\s*String,\\s*at\\s*indexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDataSource.collectionView.canMoveItemAt:
regex: "^\\s*(public|)\\s*func\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*canMoveItemAt\\s*indexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDataSource.collectionView.moveItemAt:
regex: "^\\s*(public|)\\s*func\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*moveItemAt\\s*sourceIndexPath:\\s*IndexPath,\\s*to\\s*destinationIndexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDataSource.indexTitles:
regex: "^\\s*(public|)\\s*func\\s*indexTitles\\(for\\s*collectionView:\\s*UICollectionView\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDataSource.collectionView.indexPathForIndexTitle:
regex: "^\\s*(public|)\\s*func\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*indexPathForIndexTitle\\s*title:\\s*String,\\s*at\\s*index:\\s*Int\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.shouldHighlightItemAt:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*shouldHighlightItemAt\\s*indexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.didHighlightItemAt:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*didHighlightItemAt\\s*indexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.didUnhighlightItemAt:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*didUnhighlightItemAt\\s*indexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.shouldSelectItemAt:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*shouldSelectItemAt\\s*indexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.shouldDeselectItemAt:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*shouldDeselectItemAt\\s*indexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.didSelectItemAt:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*didSelectItemAt\\s*indexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.didDeselectItemAt:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*didDeselectItemAt\\s*indexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.willDisplay:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*willDisplay\\s*cell:\\s*UICollectionViewCell,\\s*forItemAt\\s*indexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.willDisplaySupplementaryView:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*willDisplaySupplementaryView\\s*view:\\s*UICollectionReusableView,\\s*forElementKind\\s*elementKind:\\s*String,\\s*at\\s*indexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.didEndDisplaying:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*didEndDisplaying\\s*cell:\\s*UICollectionViewCell,\\s*forItemAt\\s*indexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.didEndDisplayingSupplementaryView:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*didEndDisplayingSupplementaryView\\s*view:\\s*UICollectionReusableView,\\s*forElementOfKind\\s*elementKind:\\s*String,\\s*at\\s*indexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.shouldShowMenuForItemAt:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*shouldShowMenuForItemAt\\s*indexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.canPerformAction:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*canPerformAction\\s*action:\\s*Selector,\\s*forItemAt\\s*indexPath:\\s*IndexPath,\\s*withSender\\s*sender:\\s*Any\\?\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.performAction:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*performAction\\s*action:\\s*Selector,\\s*forItemAt\\s*indexPath:\\s*IndexPath,\\s*withSender\\s*sender:\\s*Any\\?\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.transitionLayoutForOldLayout:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*transitionLayoutForOldLayout\\s*fromLayout:\\s*UICollectionViewLayout,\\s*newLayout\\s*toLayout:\\s*UICollectionViewLayout\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.canFocusItemAt:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*canFocusItemAt\\s*indexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.shouldUpdateFocusIn:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*shouldUpdateFocusIn\\s*context:\\s*UICollectionViewFocusUpdateContext\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.didUpdateFocusIn:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*didUpdateFocusIn\\s*context:\\s*UICollectionViewFocusUpdateContext,\\s*with\\s*coordinator:\\s*UIFocusAnimationCoordinator\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegateindexPathForPreferredFocusedView:
regex: "^\\s*(public|)\\sfunc\\s*indexPathForPreferredFocusedView\\(in\\s*collectionView:\\s*UICollectionView\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.targetIndexPathForMoveFromItemAt:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*targetIndexPathForMoveFromItemAt\\s*originalIndexPath:\\s*IndexPath,\\s*toProposedIndexPath\\s*proposedIndexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.targetContentOffsetForProposedContentOffset:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*targetContentOffsetForProposedContentOffset\\s*proposedContentOffset:\\s*CGPoint\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UICollectionViewDelegatecollectionView.shouldSpringLoadItemAt:
regex: "^\\s*(public|)\\sfunc\\s*collectionView\\(_\\s*collectionView:\\s*UICollectionView,\\s*shouldSpringLoadItemAt\\s*indexPath:\\s*IndexPath,\\s*with\\s*context:\\s*UISpringLoadedInteractionContext\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataSource.numberOfSections:
regex: "^\\s*(public|)\\sfunc\\s*numberOfSections\\(in\\s*tableView:\\s*UITableView\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataSource.tableView.titleForHeaderInSection:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*titleForHeaderInSection\\s*section:\\s*Int\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataSource.tableView.titleForFooterInSection:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*titleForFooterInSection\\s*section:\\s*Int\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataSource.tableView.canEditRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*canEditRowAt\\s*indexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataSource.tableView.canMoveRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*canMoveRowAt\\s*indexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataSource.sectionIndexTitles:
regex: "^\\s*(public|)\\sfunc\\s*sectionIndexTitles\\(for\\s*tableView:\\s*UITableView\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataSource.tableView.sectionForSectionIndexTitle:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*sectionForSectionIndexTitle\\s*title:\\s*String,\\s*at\\s*index:\\s*Int\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataSource.tableView.commit:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*commit\\s*editingStyle:\\s*UITableViewCellEditingStyle,\\s*forRowAt\\s*indexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataSource.tableView.moveRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*moveRowAt\\s*sourceIndexPath:\\s*IndexPath,\\s*to\\s*destinationIndexPath:\\s*IndexPath\\)"
message: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.willDisplay:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*willDisplay\\s*cell:\\s*UITableViewCell,\\s*forRowAt\\s*indexPath:\\s*IndexPath\\)"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.willDisplayHeaderView:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*willDisplayHeaderView\\s*view:\\s*UIView,\\s*forSection\\s*section:\\s*Int\\)"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.willDisplayFooterView:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*willDisplayFooterView\\s*view:\\s*UIView,\\s*forSection\\s*section:\\s*Int\\)"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.didEndDisplaying:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*didEndDisplaying\\s*cell:\\s*UITableViewCell,\\s*forRowAt\\s*indexPath:\\s*IndexPath\\)"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.didEndDisplayingHeaderView:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*didEndDisplayingHeaderView\\s*view:\\s*UIView,\\s*forSection\\s*section:\\s*Int\\)"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.didEndDisplayingFooterView:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*didEndDisplayingFooterView\\s*view:\\s*UIView,\\s*forSection\\s*section:\\s*Int\\)"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.heightForRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*heightForRowAt\\s*indexPath:\\s*IndexPath\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.heightForHeaderInSection:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*heightForHeaderInSection\\s*section:\\s*Int\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.heightForFooterInSection:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*heightForFooterInSection\\s*section:\\s*Int\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.estimatedHeightForRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*estimatedHeightForRowAt\\s*indexPath:\\s*IndexPath\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.estimatedHeightForHeaderInSection:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*estimatedHeightForHeaderInSection\\s*section:\\s*Int\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.estimatedHeightForFooterInSection:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*estimatedHeightForFooterInSection\\s*section:\\s*Int\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.viewForHeaderInSection:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*viewForHeaderInSection\\s*section:\\s*Int\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.viewForFooterInSection:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*viewForFooterInSection\\s*section:\\s*Int\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.accessoryButtonTappedForRowWith:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*accessoryButtonTappedForRowWith\\s*indexPath:\\s*IndexPath\\)"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.shouldHighlightRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*shouldHighlightRowAt\\s*indexPath:\\s*IndexPath\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.didHighlightRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*didHighlightRowAt\\s*indexPath:\\s*IndexPath\\)"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.didUnhighlightRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*didUnhighlightRowAt\\s*indexPath:\\s*IndexPath\\)"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.willSelectRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*willSelectRowAt\\s*indexPath:\\s*IndexPath\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.willDeselectRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*willDeselectRowAt\\s*indexPath:\\s*IndexPath\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.didSelectRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*didSelectRowAt\\s*indexPath:\\s*IndexPath\\)"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.didDeselectRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*didDeselectRowAt\\s*indexPath:\\s*IndexPath\\)"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.editingStyleForRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*editingStyleForRowAt\\s*indexPath:\\s*IndexPath\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.titleForDeleteConfirmationButtonForRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*titleForDeleteConfirmationButtonForRowAt\\s*indexPath:\\s*IndexPath\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.editActionsForRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*editActionsForRowAt\\s*indexPath:\\s*IndexPath\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.leadingSwipeActionsConfigurationForRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*leadingSwipeActionsConfigurationForRowAt\\s*indexPath:\\s*IndexPath\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.trailingSwipeActionsConfigurationForRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*trailingSwipeActionsConfigurationForRowAt\\s*indexPath:\\s*IndexPath\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.shouldIndentWhileEditingRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*shouldIndentWhileEditingRowAt\\s*indexPath:\\s*IndexPath\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.willBeginEditingRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*willBeginEditingRowAt\\s*indexPath:\\s*IndexPath\\)"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.didEndEditingRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*didEndEditingRowAt\\s*indexPath:\\s*IndexPath\\?\\)"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.targetIndexPathForMoveFromRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*targetIndexPathForMoveFromRowAt\\s*sourceIndexPath:\\s*IndexPath,\\s*toProposedIndexPath\\s*proposedDestinationIndexPath:\\s*IndexPath\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.indentationLevelForRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*indentationLevelForRowAt\\s*indexPath:\\s*IndexPath\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.shouldShowMenuForRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*shouldShowMenuForRowAt\\s*indexPath:\\s*IndexPath\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.canPerformAction:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*canPerformAction\\s*action:\\s*Selector,\\s*forRowAt\\s*indexPath:\\s*IndexPath,\\s*withSender\\s*sender:\\s*Any\\?\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.performAction:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*performAction\\s*action:\\s*Selector,\\s*forRowAt\\s*indexPath:\\s*IndexPath,\\s*withSender\\s*sender:\\s*Any\\?\\)"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.canFocusRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*canFocusRowAt\\s*indexPath:\\s*IndexPath\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.shouldUpdateFocusIn:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*shouldUpdateFocusIn\\s*context:\\s*UITableViewFocusUpdateContext\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.didUpdateFocusIn:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*didUpdateFocusIn\\s*context:\\s*UITableViewFocusUpdateContext,\\s*with\\s*coordinator:\\s*UIFocusAnimationCoordinator\\)"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.indexPathForPreferredFocusedView:
regex: "^\\s*(public|)\\sfunc\\s*indexPathForPreferredFocusedView\\(in\\s*tableView:\\s*UITableView\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
UITableViewDataDelegate.tableView.shouldSpringLoadRowAt:
regex: "^\\s*(public|)\\sfunc\\s*tableView\\(_\\s*tableView:\\s*UITableView,\\s*shouldSpringLoadRowAt\\s*indexPath:\\s*IndexPath,\\s*with\\s*context:\\s*UISpringLoadedInteractionContext\\)\\s*"
mesage: "Implementation of optional protocol function should use @objc"
severity: error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment