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

Multiline Brackets #2302

Merged
merged 21 commits into from
Nov 28, 2018
Merged

Multiline Brackets #2302

merged 21 commits into from
Nov 28, 2018

Conversation

Jeehut
Copy link
Collaborator

@Jeehut Jeehut commented Jul 20, 2018

This fixes #2306.

@SwiftLintBot
Copy link

SwiftLintBot commented Jul 20, 2018

14064 Warnings
⚠️ Big PR
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/App/AppDelegate.swift:45:29: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/App/AppDelegate.swift:47:62: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/AssetLoaderDelegate.swift:56:25: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/AssetLoaderDelegate.swift:57:80: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/AssetLoaderDelegate.swift:81:25: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/AssetLoaderDelegate.swift:83:54: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/AerialVideo.swift:136:10: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoCache.swift:34:66: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoCache.swift:36:70: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoCache.swift:68:49: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoCache.swift:69:100: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/Preferences.swift:653:19: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/Preferences.swift:654:43: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/Preferences.swift:642:22: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/Preferences.swift:643:37: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoLoader.swift:115:37: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoLoader.swift:116:55: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoLoader.swift:220:45: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoLoader.swift:221:97: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoLoader.swift:234:44: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoLoader.swift:236:100: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoDownload.swift:12:24: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoDownload.swift:13:69: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoDownload.swift:15:24: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoDownload.swift:16:59: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoDownload.swift:83:48: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoDownload.swift:84:87: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoDownload.swift:152:36: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoDownload.swift:153:62: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoDownload.swift:207:14: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoDownload.swift:220:14: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoDownload.swift:286:45: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoDownload.swift:287:97: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoDownload.swift:300:44: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoDownload.swift:302:100: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Downloads/DownloadManager.swift:65:61: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Downloads/DownloadManager.swift:67:93: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Downloads/DownloadManager.swift:77:61: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Downloads/DownloadManager.swift:81:113: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoManager.swift:183:24: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Cache/VideoManager.swift:184:69: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Time/TimeManagement.swift:156:67: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Time/TimeManagement.swift:157:113: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Time/TimeManagement.swift:156:32: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/Time/TimeManagement.swift:157:114: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/ManifestLoader.swift:557:45: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/ManifestLoader.swift:567:51: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/ManifestLoader.swift:583:60: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/ManifestLoader.swift:584:76: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/ManifestLoader.swift:635:49: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/ManifestLoader.swift:645:55: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/ManifestLoader.swift:34:22: warning: Multiline Literal Brackets Violation: Multiline literals should have their surrounding brackets in a new line. (multiline_literal_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/ManifestLoader.swift:40:58: warning: Multiline Literal Brackets Violation: Multiline literals should have their surrounding brackets in a new line. (multiline_literal_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/ManifestLoader.swift:81:14: warning: Multiline Literal Brackets Violation: Multiline literals should have their surrounding brackets in a new line. (multiline_literal_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Models/ManifestLoader.swift:82:103: warning: Multiline Literal Brackets Violation: Multiline literals should have their surrounding brackets in a new line. (multiline_literal_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:451:41: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:453:74: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:560:40: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:563:59: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:564:40: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:567:59: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:568:40: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:571:59: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:572:40: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:575:59: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Views/AerialView.swift:833:26: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1634:22: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1635:83: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:345:48: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:348:74: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1387:25: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1390:30: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1391:25: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1394:30: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1395:25: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1398:30: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1399:25: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1402:30: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1404:25: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1407:30: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1408:25: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1411:30: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1432:38: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1434:56: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1436:38: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1438:56: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1453:38: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1455:56: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1457:38: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1459:56: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1508:34: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1510:52: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1669:45: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1670:51: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1675:45: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1676:51: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1689:44: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1690:30: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1703:45: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1704:51: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1735:43: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Aerial: /Users/distiller/project/osscheck/Aerial/Aerial/Source/Controllers/PreferencesWindowController.swift:1736:62: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Example/Source/AppDelegate.swift:36:91: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Example/Source/AppDelegate.swift:52:53: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/NetworkReachabilityManager.swift:124:10: warning: Multiline Arguments Brackets Violation: Multiline arguments should have their surrounding brackets in a new line. (multiline_arguments_brackets)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/NetworkReachabilityManager.swift:218:62: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Alamofire.swift:137:32: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Alamofire.swift:185:67: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Alamofire.swift:211:67: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Alamofire.swift:241:67: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Alamofire.swift:265:32: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Alamofire.swift:299:32: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Alamofire.swift:333:32: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ This PR introduced a violation in Alamofire: /Users/distiller/project/osscheck/Alamofire/Source/Alamofire.swift:382:84: warning: Multiline Parameters Brackets Violation: Multiline parameters should have their surrounding brackets in a new line. (multiline_parameters_brackets)
⚠️ Danger found 14064 violations with this PR. Due to GitHub's max issue comment size, the number shown has been truncated to 115.
12 Messages
📖 Linting Aerial with this PR took 2.16s vs 1.99s on master (8% slower)
📖 Linting Alamofire with this PR took 4.52s vs 3.9s on master (15% slower)
📖 Linting Firefox with this PR took 16.78s vs 14.33s on master (17% slower)
📖 Linting Kickstarter with this PR took 26.95s vs 21.83s on master (23% slower)
📖 Linting Moya with this PR took 2.58s vs 2.19s on master (17% slower)
📖 Linting Nimble with this PR took 2.69s vs 1.96s on master (37% slower)
📖 Linting Quick with this PR took 0.77s vs 0.62s on master (24% slower)
📖 Linting Realm with this PR took 4.61s vs 4.02s on master (14% slower)
📖 Linting SourceKitten with this PR took 1.46s vs 1.28s on master (14% slower)
📖 Linting Sourcery with this PR took 5.96s vs 5.26s on master (13% slower)
📖 Linting Swift with this PR took 37.99s vs 31.91s on master (19% slower)
📖 Linting WordPress with this PR took 27.57s vs 23.53s on master (17% slower)

Generated by 🚫 Danger

@Jeehut
Copy link
Collaborator Author

Jeehut commented Jul 20, 2018

Same issue here like in #2296, the offset simply isn't right when the prefix /* 👨‍👩‍👧‍👦👨‍👩‍👧‍👦👨‍👩‍👧‍👦 */ is added. Still no idea why this happens, glad if somebody can help!

@marcelofabri
Copy link
Collaborator

@Dschee I wasn't able to review the PRs yet, but you're likely mixing UTF-8 and UTF-16 positions.

SourceKit always works with UTF-8 byte offsets, so anything that you get from it (structure and syntax map) use that. Regex matching (and some NSString operations) use UTF-16 code units.

@Jeehut Jeehut changed the title New rule "multiline literal brackets" Multiline Literal Brackets Jul 22, 2018
@Jeehut Jeehut force-pushed the multiline_literal_brackets branch from 2fc347c to 33cc482 Compare July 22, 2018 18:47
@Jeehut
Copy link
Collaborator Author

Jeehut commented Jul 22, 2018

@marcelofabri Thanks for the pointer, it helped!

I just fixed all issues and rebased this to the latest master. Looking forward to your review(s)!

@codecov-io
Copy link

codecov-io commented Jul 22, 2018

Codecov Report

Merging #2302 into master will increase coverage by 0.07%.
The diff coverage is 97.35%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2302      +/-   ##
=========================================
+ Coverage   92.03%   92.1%   +0.07%     
=========================================
  Files         302     305       +3     
  Lines       15180   15331     +151     
=========================================
+ Hits        13971   14121     +150     
- Misses       1209    1210       +1
Impacted Files Coverage Δ
...amework/Rules/MultilineArgumentsBracketsRule.swift 100% <100%> (ø)
...tFrameworkTests/AutomaticRuleTests.generated.swift 100% <100%> (ø) ⬆️
...mework/Rules/MultilineParametersBracketsRule.swift 96.1% <96.1%> (ø)
...Framework/Rules/MultilineLiteralBracketsRule.swift 97.05% <97.05%> (ø)
...SwiftLintFramework/Extensions/File+SwiftLint.swift 97.23% <0%> (+0.46%) ⬆️
...iftLintFramework/Extensions/String+SwiftLint.swift 89.65% <0%> (+3.44%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 531131d...6422326. Read the comment docs.

let range = file.contents.bridge().byteRangeToNSRange(
start: dictionary.bodyOffset!,
length: dictionary.bodyLength!
)!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about using guard to make sure the bodyOffset, bodyLenght and range are not nil instead of force unwrapping them?

) -> [StyleViolation] {
var violations = [StyleViolation]()

if kind == .array || kind == .dictionary {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can eliminate a nested level here by using guard for earlier return. The left hand margin of the code should be the "happy" path.

]
)

public func validate(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency with other rules, maybe this method signature coube be changed to:

public func validate(file: File,
                     kind: SwiftExpressionKind,
                     dictionary: [String: SourceKitRepresentable]) -> [StyleViolation]

violations.append(StyleViolation(
ruleDescription: type(of: self).description,
severity: configuration.severity,
location: Location(file: file, byteOffset: dictionary.bodyOffset!)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you could use the safe bodyOffset from the guard I mentioned.

violations.append(StyleViolation(
ruleDescription: type(of: self).description,
severity: configuration.severity,
location: Location(file: file, byteOffset: dictionary.bodyOffset! + dictionary.bodyLength!)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you could use the safe bodyOffset and bodyLength from the guard I mentioned.

CHANGELOG.md Outdated
@@ -23,6 +23,10 @@
[Ornithologist Coder](https://github.com/ornithocoder)
[#2283](https://github.com/realm/SwiftLint/issues/2283)

* Add new opt-in rule `multiline_literal_brackets` to warn against multiline
literal arrays & dictionaries with surrounding brackets without newline.
[Cihat Gündüz](https://github.com/Dschee)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a ticket number (for reference, requisition/explaining why the rule is important and should be implemented)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There wasn't, but now I created an issue (#2306).

@Jeehut
Copy link
Collaborator Author

Jeehut commented Jul 23, 2018

@ornithocoder Thank you for reviewing the PR, I just addressed all points, including creating an issue as reference to this rule request: #2306. I hope it looks good now!

@Jeehut Jeehut changed the title Multiline Literal Brackets Multiline Brackets Jul 23, 2018

private func openingBracketViolation(parameters: [[String: SourceKitRepresentable]],
file: File) -> StyleViolation? {
if
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's another example where guard could be used for early return (of nil, in this case). Pretty much everything can be guarded in this method, leaving the return on the happy path.

guard
    let firstParamByteOffset = ....,
    let firstParamByteLength = ....,
    ...,
    case let prefix = ...,
    case let invalidPrefixRegex = ...,
    let invalidMatch = invalidPrefixRegex.firstMatch(in: prefix, options: [], range: prefix.fullNSRange) else { return nil }

return StyleViolation()

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.


private func closingBracketViolation(parameters: [[String: SourceKitRepresentable]],
file: File) -> StyleViolation? {
if
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, too.

@Jeehut
Copy link
Collaborator Author

Jeehut commented Jul 24, 2018

I just addressed @ornithocoder's feedback and fixed a bug.
Is there anything else preventing this from being merged?

@marcelofabri
Copy link
Collaborator

@Dschee new rules are usually bigger PRs that can take a while for contributors to review.

@Jeehut Jeehut force-pushed the multiline_literal_brackets branch from 5e44877 to aadf1a1 Compare July 24, 2018 16:04
@Jeehut
Copy link
Collaborator Author

Jeehut commented Jul 24, 2018

Just rebased to solve merge conflicts.

@Jeehut
Copy link
Collaborator Author

Jeehut commented Jul 24, 2018

@marcelofabri I see, makes sense. Will wait then and rebase from time to time. :)

@Jeehut Jeehut force-pushed the multiline_literal_brackets branch 2 times, most recently from c6e6beb to e11bac4 Compare July 30, 2018 08:07
@Jeehut
Copy link
Collaborator Author

Jeehut commented Jul 30, 2018

Just rebased and fixed an issue with missing CHANGELOG entries for two rules.

@Jeehut Jeehut force-pushed the multiline_literal_brackets branch from e650cbb to 6422326 Compare August 3, 2018 14:49
@Jeehut
Copy link
Collaborator Author

Jeehut commented Sep 6, 2018

@marcelofabri Any estimate on when my new rules might be reviewed? I'm waiting over 7 weeks now without any updates, while during this time 6 other new rules were already merged: #2385, #2381, #2369, #2367, #2366, #2342

Here are my new rule suggestions, I'd appreciate your feedback:
#2302 (this one), #2296, #2292, #2291

@Jeehut Jeehut force-pushed the multiline_literal_brackets branch from 6422326 to 78c006d Compare September 26, 2018 11:57
@Jeehut
Copy link
Collaborator Author

Jeehut commented Sep 26, 2018

Just rebased this branch onto current master.

@Jeehut
Copy link
Collaborator Author

Jeehut commented Nov 8, 2018

Please don't get me wrong, but I'm slowly starting to believe this project isn't actively maintained anymore. Apart from the new rule suggestions posted several months ago, I have also posted two bugfix PRs (#2426 and #2418) about 6 weeks ago without any comment. Both of them are very small changes with tests and CHANGELOG entries, so they could have been merged with a minute-long review and a click of a button, but they aren't.

I know how time consuming maintaining open source software can be, so if not having enough time is the issue, I'd be happy to help as a maintainer of this repo if you accept me as such.

We are really relying on an up-to-date linter to enforce code uniformity and code quality here at Jamit Labs in Karlsruhe, Germany and I would rather not start a new competing linter project if I don't have to. If this project however keeps to stay unmaintained like it is right now, I don't see any other way though.

I highly appreciate all the work that was done until now, but I hope you understand that having SwiftLint configured to fail on our CI even if a single warning is shown really makes us less productive if we can't fix any false positives at the minimum (and add new autocorrectable rules at the optimum).

@jpsim
Copy link
Collaborator

jpsim commented Nov 28, 2018

Please don't get me wrong, but I'm slowly starting to believe this project isn't actively maintained anymore.

Hi Cihat and first off, thank you very much for your significant contributions these last few months! I really appreciate it. Lots of people rely on SwiftLint and your efforts to improve their experience is impactful.

I want to apologize for the reduced activity from maintainers to review and discuss issues or pull requests lately. This wasn't a conscious decision by anyone but likely more the people with write access collectively being busy with life and spending less time working on SwiftLint.

Despite this, it's a stretch to call SwiftLint unmaintained, there have been 5 releases in the last 5 months, with over 80 changelog entries in that time, including some very significant new features like analyzer rules.

Apart from the new rule suggestions posted several months ago, I have also posted two bugfix PRs (#2426 and #2418) about 6 weeks ago without any comment. Both of them are very small changes with tests and CHANGELOG entries, so they could have been merged with a minute-long review and a click of a button, but they aren't.

I just spent a few evenings going through my backlog of SwiftLint notifications and reviewed, updated and merged these two PRs and I can tell you it was significantly more involved than a minute-long review and a click of a button. The biggest contributor to SwiftLint's processing time is executing regular expressions, and the two involved in these PRs are particularly complex or expensive.

Not only that, but there were unintended consequences to #2418, where that fixture was inadvertently picked up by Sourcery when generating our LinuxMain.swift file which I had to fix in 827410a.

You did nothing wrong here, I could have made the exact same changes, but I'm just pointing out that reviewing community PRs may be more involved than you think.

I know how time consuming maintaining open source software can be, so if not having enough time is the issue, I'd be happy to help as a maintainer of this repo if you accept me as such.

That's fantastic! 🎉 I've been impressed with your contributions over the last few months. I just sent you an invite to gain write access to this project.

We are really relying on an up-to-date linter to enforce code uniformity and code quality here at Jamit Labs in Karlsruhe, Germany and I would rather not start a new competing linter project if I don't have to. If this project however keeps to stay unmaintained like it is right now, I don't see any other way though.

Lots of people use this project and rely on it being accurate, fast, comprehensive and actively maintained. Now that you have write access, hopefully you'll also help with ensuring this, collectively with other maintainers. ✊

I highly appreciate all the work that was done until now, but I hope you understand that having SwiftLint configured to fail on our CI even if a single warning is shown really makes us less productive if we can't fix any false positives at the minimum (and add new autocorrectable rules at the optimum).

💯

@jpsim jpsim force-pushed the multiline_literal_brackets branch from 78c006d to ab13a2c Compare November 28, 2018 17:45
@jpsim
Copy link
Collaborator

jpsim commented Nov 28, 2018

Regarding this PR specifically, looks good overall! I made some small refactors and I'll merge once CI is happy.

@jpsim jpsim merged commit cf034c9 into realm:master Nov 28, 2018
@Jeehut
Copy link
Collaborator Author

Jeehut commented Dec 3, 2018

Oh @jpsim, I just read your text today (I was on vacation last week) and thank you for the detailed explanation. I understand all your points (and actually hoped for this being the reasons behind my changed not being merged) – of cource even small PRs can be bigger than one might think at first. I just wanted to emphasize my point a little more.

Thank you again, as I've stated elsewhere, for making me a maintainer. I will do what I can to help keeping SwiftLint as useful as possible. I agree that SwiftLint needs to stay fast, we didn't have any performance problems on our projects though, so I wasn't aware there existed any. But I will try to keep code running as fast as possible.

@jpsim
Copy link
Collaborator

jpsim commented Dec 3, 2018

I agree that SwiftLint needs to stay fast, we didn't have any performance problems on our projects though, so I wasn't aware there existed any.

Yeah, I don't think SwiftLint necessarily has performance problems for most projects. Running SwiftLint on itself lints 124 rules on 352 files in 2.9s on a clean lint and 300ms on a cached lint. However, running it on a large iOS app project with 5,000 Swift files takes 10x as long in both clean and cached cases, so that's where performance starts becoming something worth improving.

@Jeehut Jeehut deleted the multiline_literal_brackets branch December 4, 2018 08:23
sjavora pushed a commit to sjavora/SwiftLint that referenced this pull request Mar 9, 2019
* Add new multiline_literal_brackets rule with examples

* Implement rule

* Add changelog entry

* Fix CHANGELOG and rule name

* Fix tests + Update stuff after rebasing

* Add more examples & fix whitespace issue

* Address feedback from @ornithocoder

* Add multiline rules for arguments and parameters

* Fix false positives in rule multiline_parameters_brackets

* Fix false positive for trailing closures in multiline_arguments_brackets

* Add nested examples to rule multiline_arguments_brackets

* Fix more false positives in multiline_arguments_brackets rule

* Use guard where appropriate instead of if

* Update generated artifacts after rebase

* Add CHANGELOG entry for all three new rules

* Move changelog entries to new version

* Fix changelog entries position

* Move new rules to correct subfolder

* Update Rules.md file contents

* Fixup changelog

* Refactor rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiline Brackets: consistent style with other bracket conventions
6 participants