Skip to content

Add auto-correction, indentation config, and multi-violation support to multiline_call_arguments#6745

Open
GandaLF2006 wants to merge 6 commits into
realm:mainfrom
GandaLF2006:gandalf2006/multiline_call_arguments/correctable
Open

Add auto-correction, indentation config, and multi-violation support to multiline_call_arguments#6745
GandaLF2006 wants to merge 6 commits into
realm:mainfrom
GandaLF2006:gandalf2006/multiline_call_arguments/correctable

Conversation

@GandaLF2006

Copy link
Copy Markdown
Contributor

Summary

Enhances the multiline_call_arguments opt-in rule with auto-correction, a new indentation configuration option, and multi-violation detection in a single pass.

Auto-correction (--fix)

  • Single-line calls are reformatted to place each argument on its own line with proper indentation; the closing ) moves to its own line at the call's base indent
  • Multi-line calls with duplicate-start-line or missing-newline-after-comma violations are corrected by inserting \n + indent in the appropriate range
  • Calls with comments in argument tokens are not auto-corrected (manual fix required); string literals containing comment-like text are correctly identified as non-comments
  • Nested single-line calls that would produce overlapping corrections: only the outer call's correction is applied; the inner call is corrected on a subsequent --fix pass

indentation configuration

  • New option: indentation (integer ≥ 1 for spaces, or the string "tab"; default: 4)
  • 0 and negative values are invalid and cause a configuration error
  • Indentation is calculated relative to the call's start line — one level of configured indentation from the call's base indent

Multi-violation support

  • Previously, duplicateArgumentStartLineViolation and newlineAfterCommaViolation returned at the first match, requiring repeated --fix passes for calls with multiple same-line argument pairs
  • Now collects all violations in a single pass (reasonedViolations returns [ReasonedRuleViolation])

Documentation

  • Split RuleDescription.description into concise description (what) + structured rationale (why/how) with markdown sections

@GandaLF2006 GandaLF2006 force-pushed the gandalf2006/multiline_call_arguments/correctable branch 2 times, most recently from b183a6a to 78a2da1 Compare June 1, 2026 09:19
@GandaLF2006

GandaLF2006 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

@SimplyDanny Let's add correctable for multiline_call_arguments :)

The CI failure on oss_scan is not related to this PR — it's a danger bot failing to post a comment due to the repository's interaction limits (422 - Interactions on this repository have been restricted to prior contributors only)

///
/// - `tab`: Use tab character for indentation
/// - `spaces(count:)`: Use the specified number of spaces
enum IndentationStyle: Hashable, Sendable {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There is already a IndentationStyle that can be configured in configuration files and is supposed to apply globally. Can we use it in this rule as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point — done. The rule-local IndentationStyle has been replaced by the
shared IndentationStyle type from SwiftLintCore, which is the same type
used by the global indentation configuration. This required two changes:

  1. Moving the type to SwiftLintCore (the lowest common dependency) and adding
    AcceptableByConfigurationElement conformance + indentationString property
    so both the rule and Configuration.indentation can use it.
  2. Aligning the string value to "tabs" (matching the global config format)
    instead of the previous "tab".

@GandaLF2006 GandaLF2006 force-pushed the gandalf2006/multiline_call_arguments/correctable branch from f16bd4c to 8b5b043 Compare June 6, 2026 18:56
@SwiftLintBot

SwiftLintBot commented Jun 6, 2026

Copy link
Copy Markdown
4174 Warnings
⚠️ Big PR
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/Layers/ClockLayer.swift:80:27: Warning: In multi-line calls, a newline is required after each comma (multiline_call_arguments)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/Layers/Weather/ForecastLayer.swift:65:53: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/Layers/Weather/ForecastLayer.swift:66:87: Warning: In multi-line calls, a newline is required after each comma (multiline_call_arguments)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/Layers/Weather/ForecastLayer.swift:93:53: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/Layers/Weather/ForecastLayer.swift:94:70: Warning: In multi-line calls, a newline is required after each comma (multiline_call_arguments)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:639:58: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/Core/TabInstrumentation.swift:56:72: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/Core/Instruments.swift:50:63: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/Core/UIViewExtension.swift:32:52: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/Core/UIViewExtension.swift:33:33: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/Core/UIViewExtension.swift:33:48: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/Core/UIViewExtension.swift:39:51: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/Core/UIViewExtension.swift:40:32: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/Core/UIViewExtension.swift:40:47: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AppLifecycle/AppStates/Launching.swift:485:85: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/UnifiedToggleInput/MainViewController+UnifiedToggleInput.swift:1375:53: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/UnifiedToggleInput/MainViewController+UnifiedToggleInput.swift:1375:79: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/UnifiedToggleInput/UnifiedToggleInputCoordinator.swift:77:62: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/UnifiedToggleInput/UnifiedToggleInputCoordinator.swift:77:80: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AlertPlaygroundView.swift:119:69: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/UIHostingControllerExtension.swift:48:120: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+MultiSelect.swift:273:66: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+MultiSelect.swift:276:68: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/PrivacyIconView.swift:201:74: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/PrivacyIconView.swift:201:109: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/PrivacyIconView.swift:214:74: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/PrivacyIconView.swift:214:109: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:26:77: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:27:45: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:29:77: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:30:53: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:34:72: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:35:55: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:36:72: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:37:55: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:43:80: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:44:65: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:49:79: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:50:45: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:52:81: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:53:45: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:54:83: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:55:45: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:57:81: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:58:45: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:59:83: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:60:45: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:62:75: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabSwitcherViewController+KeyCommands.swift:63:45: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/DebugScreensViewController.swift:158:51: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/DebugScreensViewController.swift:174:88: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/BookmarksDebugViewController.swift:44:140: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabViewController.swift:1004:40: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabViewController.swift:3169:85: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabViewController.swift:3203:89: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabViewController.swift:4164:77: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/Subscription/Views/SubscriptionAIChatView.swift:45:48: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/SwipeTabsCoordinator.swift:790:57: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/SwipeTabsCoordinator.swift:790:81: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController.swift:1032:96: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController.swift:1034:95: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController.swift:1036:95: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AIChat/AIChatViewControllerManager.swift:131:39: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AIChat/AIChatViewControllerManager.swift:131:59: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AIChat/AIChatViewControllerManager.swift:131:79: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AIChat/AIChatViewControllerManager.swift:132:32: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AIChat/AIChatViewControllerManager.swift:132:66: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AIChat/AIChatViewControllerManager.swift:132:82: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AIChat/AIChatViewControllerManager.swift:133:40: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AIChat/AIChatViewControllerManager.swift:160:39: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AIChat/AIChatViewControllerManager.swift:160:59: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AIChat/AIChatViewControllerManager.swift:160:79: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AIChat/AIChatViewControllerManager.swift:161:32: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AIChat/AIChatViewControllerManager.swift:161:66: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AIChat/AIChatViewControllerManager.swift:161:82: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AIChat/AIChatViewControllerManager.swift:162:44: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AIChat/AIChatViewControllerManager.swift:163:52: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AIChat/InputBox/SwitchBar/TextEntry/SwitchBarTextEntryView.swift:812:58: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/AIChat/InputBox/SwitchBar/TextEntry/SwitchBarTextEntryView.swift:812:82: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/IntervalSlider.swift:53:63: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:27:70: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:28:67: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:38:74: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:38:86: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:40:84: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:40:96: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:42:81: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:42:93: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:44:84: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:44:121: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:46:81: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:46:117: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:48:76: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:48:88: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:50:75: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:50:87: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:52:81: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:52:93: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:54:81: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:54:93: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:56:81: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:56:100: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:58:81: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:58:100: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:66:78: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:66:90: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:68:82: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:68:94: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:82:74: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:82:86: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:84:72: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:84:84: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:86:72: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:86:84: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:93:80: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:93:92: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:99:73: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:99:85: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:101:77: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:101:89: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:103:73: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:103:85: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:105:77: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:105:89: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:107:77: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:107:90: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:109:77: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:109:107: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:111:77: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:111:90: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:113:74: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:113:86: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/MainViewController+KeyCommands.swift:115:73: Warning: In multi-line calls, each argument must start on its own line (multiline_call_arguments)
⚠️ Danger found 4174 violations with this PR. Due to GitHub's max issue comment size, the number shown has been truncated to 134.
19 Messages
📖 Building this branch resulted in a binary size of 27574.74 KiB vs 27537.37 KiB when built on main (0% larger).
📖 Linting Aerial with this PR took 0.67 s vs 0.65 s on main (3% slower).
📖 Linting Alamofire with this PR took 0.93 s vs 0.95 s on main (2% faster).
📖 Linting Brave with this PR took 6.03 s vs 6.04 s on main (0% faster).
📖 Linting DuckDuckGo with this PR took 24.65 s vs 24.7 s on main (0% faster).
📖 Linting Firefox with this PR took 10.34 s vs 10.35 s on main (0% faster).
📖 Linting Kickstarter with this PR took 7.41 s vs 7.32 s on main (1% slower).
📖 Linting Moya with this PR took 0.39 s vs 0.36 s on main (8% slower).
📖 Linting NetNewsWire with this PR took 2.35 s vs 2.34 s on main (0% slower).
📖 Linting Nimble with this PR took 0.56 s vs 0.56 s on main (0% slower).
📖 Linting PocketCasts with this PR took 7.11 s vs 7.1 s on main (0% slower).
📖 Linting Quick with this PR took 0.36 s vs 0.37 s on main (2% faster).
📖 Linting Realm with this PR took 2.51 s vs 2.5 s on main (0% slower).
📖 Linting Sourcery with this PR took 1.49 s vs 1.47 s on main (1% slower).
📖 Linting Swift with this PR took 4.19 s vs 4.18 s on main (0% slower).
📖 Linting SwiftLintPerformanceTests with this PR took 0.16 s vs 0.16 s on main (0% slower).
📖 Linting VLC with this PR took 1.06 s vs 1.02 s on main (3% slower).
📖 Linting Wire with this PR took 15.12 s vs 15.09 s on main (0% slower).
📖 Linting WordPress with this PR took 10.46 s vs 10.46 s on main (0% slower).

Generated by 🚫 Danger

@GandaLF2006 GandaLF2006 force-pushed the gandalf2006/multiline_call_arguments/correctable branch from 3c09c9b to c2b5aa8 Compare June 6, 2026 22:32
@GandaLF2006 GandaLF2006 requested a review from SimplyDanny June 7, 2026 15:38
@GandaLF2006 GandaLF2006 force-pushed the gandalf2006/multiline_call_arguments/correctable branch from c2b5aa8 to 9510ef7 Compare June 8, 2026 22:25
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.

3 participants