Skip to content

Fix indentation_width false positives for multi-line conditions#6505

Merged
SimplyDanny merged 6 commits intorealm:mainfrom
tanaev:fix/indentation-width-multiline-conditions
Apr 19, 2026
Merged

Fix indentation_width false positives for multi-line conditions#6505
SimplyDanny merged 6 commits intorealm:mainfrom
tanaev:fix/indentation-width-multiline-conditions

Conversation

@tanaev
Copy link
Copy Markdown
Contributor

@tanaev tanaev commented Feb 19, 2026

Summary

  • Fix false positives in indentation_width rule when guard/if/while conditions span multiple lines and are aligned to the keyword (e.g., guard = 6 spaces), which is not a multiple of indentation_width
  • Add a SwiftSyntax-based pre-pass (MultilineConditionLineVisitor) that collects continuation line numbers and skips them during indentation checks
  • Add include_multiline_conditions configuration option (default: false) to control this behavior

Fixes #4961

Test plan

  • Added testIncludeMultilineConditions() with cases for guard, if, while, nested conditions, and include_multiline_conditions: true
  • Added nonTriggeringExamples to rule description for multi-line guard and if
  • All existing IndentationWidthRuleTests pass (14 + 1 new = 15 tests, 0 failures)
  • Verify CI passes on all platforms

@SwiftLintBot
Copy link
Copy Markdown

SwiftLintBot commented Feb 19, 2026

398 Warnings
⚠️ This PR introduced a violation in Aerial: /Resources/MainUI/PanelWindowController.swift:149:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Aerial: /Resources/MainUI/PanelWindowController.swift:173:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/Favicons.swift:224:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/Customization/MobileCustomization.swift:227:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/FeedbackFormViewController.swift:198:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/FeedbackFormViewController.swift:258:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/ProgressView.swift:121:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/TabsModel.swift:221:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/CachedBookmarkSuggestions.swift:53:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/FindInPageView.swift:115:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in DuckDuckGo: /iOS/DuckDuckGo/DuckPlayer/NativeUI/UserScripts/DuckPlayerUserScriptYouTube.swift:119:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Favicons/Model/FaviconManager.swift:242:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Autofill/ContentOverlayPopover.swift:107:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Tab/Model/SystemInfo.swift:67:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Feedback/View/FeedbackViewController.swift:166:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Feedback/View/FeedbackViewController.swift:176:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in DuckDuckGo: /macOS/DuckDuckGo/Fire/View/FireViewController.swift:271:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/AttributedMetric/Sources/AttributedMetric/AttributedMetricManager.swift:556:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/BrowserServicesKit/Sources/BrowserServicesKit/Autofill/OverlayAutofillUserScript.swift:96:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in DuckDuckGo: /SharedPackages/BrowserServicesKit/Sources/BrowserServicesKit/Autofill/WebsiteAutofillUserScript.swift:80:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Firefox: /focus-ios/Blockzilla/Tracking Protection/TrackingProtectionPageStats.swift:152:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Firefox: /focus-ios/Blockzilla/Search/SearchEngine.swift:30:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Firefox: /focus-ios/Blockzilla/Modules/WebView/LegacyWebViewController.swift:624:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Firefox: /focus-ios/Blockzilla/BrowserViewController.swift:2019:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Firefox: /firefox-ios/Client/Frontend/InternalSchemeHandler/ErrorPageHelper.swift:225:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Firefox: /firefox-ios/Client/Frontend/Browser/TranslationToastHandler.swift:109:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Firefox: /firefox-ios/Client/Frontend/Browser/MetadataParserHelper.swift:23:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Firefox: /firefox-ios/Client/Frontend/Browser/TabScrollController/TabScrollHandler.swift:245:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KDS/Sources/KDS/Fonts/InterFont.swift:95:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/Comments/Controllers/CommentRepliesViewController.swift:234:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/PledgePaymentMethods/Datasource/PledgePaymentMethodsDataSource.swift:66:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/SortFilter/FilterCategory/FilterCategoryView.swift:63:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/PledgedProjectsOverview/CardView/PPOProjectCardModel+Parsing.swift:78:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/PledgedProjectsOverview/CardView/PPOProjectCardModel+Parsing.swift:183:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/Search/Controller/SearchViewController.swift:288:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/SettingsAccount/ViewModel/SettingsAccountViewModel.swift:64:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/SettingsAccount/Controller/SettingsAccountViewController.swift:172:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/FloatingTabBar/FloatingTabBar.swift:166:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/ProjectPage/Views/Cells/ExternalSourceViewElementCell.swift:137:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/ProjectPage/Datasource/Datasource/ProjectPageViewControllerDataSource.swift:394:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/ProjectPage/Datasource/Datasource/ProjectPageViewControllerDataSource.swift:515:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/ProjectPage/Datasource/Datasource/ProjectPageViewControllerDataSource.swift:535:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/ProjectPage/Datasource/Datasource/ProjectPageViewControllerDataSource.swift:553:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/ProjectPage/Datasource/Datasource/ProjectPageViewControllerDataSource.swift:568:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/ProjectPage/Controller/ProjectPageViewController.swift:836:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/ProjectPage/Controller/ProjectPageViewController.swift:1009:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/ProjectPage/Controller/ProjectPageViewController.swift:1174:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/ProjectPage/Views/OverlayView.swift:60:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/MessageThreads/Controller/MessageThreadsViewController.swift:142:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/DiscoveryFilters/Datasource/DiscoveryFiltersDataSource.swift:84:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/DiscoveryFilters/Controller/DiscoveryFiltersViewController.swift:203:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/Features/LoginTout/Controller/LoginToutViewController.swift:560:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Library/Sources/Library/Library/DataSource/ValueCellDataSource.swift:338:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Library/Sources/Library/Library/DataSource/ValueCellDataSource.swift:355:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Library/Sources/Library/Library/ViewModels/RewardsUseCase.swift:79:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/AppDelegateViewModel.swift:578:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Kickstarter-Framework/Sources/Kickstarter-Framework/Kickstarter-iOS/AppDelegateViewModel.swift:679:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Library/Sources/Library/Library/ViewModels/HTML Parser/ExternalSourceViewElementCellViewModel.swift:43:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Library/Sources/Library/Library/ViewModels/HTML Parser/TextViewElementCellViewModel.swift:99:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Library/Sources/Library/Library/ViewModels/HTML Parser/TextViewElementCellViewModel.swift:106:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Library/Sources/Library/Library/ViewModels/HTML Parser/TextViewElementCellViewModel.swift:116:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Library/Sources/Library/Library/ViewModels/RewardAddOnSelectionViewModel.swift:511:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Library/Sources/Library/Library/ViewModels/DiscoveryFiltersViewModel.swift:242:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Library/Sources/Library/Library/SharedFunctions.swift:862:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Library/Sources/Library/Library/UIViewController+Children.swift:58:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Library/Sources/Library/Library/UIScrollView+Extensions.swift:11:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Library/Sources/Library/Library/AppEnvironment.swift:452:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Library/Sources/Library/Library/AppEnvironment.swift:469:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /Library/Sources/Library/Library/AppEnvironment.swift:486:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApiTests/mutations/templates/query/FetchProjectQueryTemplate.swift:248:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApiTests/models/graphql/adapters/Project+FetchProjectQueryDataTests.swift:27:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApiTests/models/graphql/adapters/Project+FetchProjectQueryDataTests.swift:202:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApiTests/models/graphql/adapters/Project+FetchProjectRewardsByIdQueryDataTests.swift:14:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApiTests/models/graphql/adapters/Project+FetchProjectRewardsByIdQueryDataTests.swift:73:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApiTests/models/graphql/adapters/DeletePaymentSourceEnvelope+DeletePaymentSourceMutation.DataTests.swift:16:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApiTests/lib/HTML Parser/HTMLParserTests.swift:263:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApi/models/PostCommentEnvelope.swift:26:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApi/models/PledgePaymentIncrement+GraphAPI.swift:41:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApi/models/graphql/adapters/SignInWithAppleEnvelope+SignInWithAppleMutation.Data.swift:13:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApi/models/graphql/adapters/User+UserFragment.swift:61:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApi/models/graphql/adapters/CreatePaymentSourceEnvelope+CreatePaymentSourceMutation.Data.swift:12:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApi/models/CreateCheckoutEnvelope.swift:22:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApi/extensions/NSURLSession.swift:17:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApi/lib/Decodable.swift:13:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApi/lib/HTML Parser/Element+Helpers.swift:72:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApi/lib/HTML Parser/Element+Helpers.swift:77:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApi/lib/HTML Parser/Element+Helpers.swift:97:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApi/lib/HTML Parser/Element+Helpers.swift:109:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApi/lib/HTML Parser/Element+Helpers.swift:115:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApi/lib/HTML Parser/Element+Helpers.swift:142:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Kickstarter: /KsApi/Sources/KsApi/Tracking/ProjectAnalyticsProperties.swift:189:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Moya: /Sources/Moya/Response.swift:116:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /iOS/TitleActivityItemSource.swift:26:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /iOS/MainFeed/MainFeedCollectionViewController+Drop.swift:26:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /iOS/MainFeed/MainFeedCollectionViewController+Drop.swift:82:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /iOS/AppDelegate.swift:443:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /iOS/MainFeed/MainFeedCollectionViewController.swift:1034:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /iOS/MainFeed/MainFeedCollectionViewController.swift:1047:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /iOS/MainFeed/MainFeedCollectionViewController.swift:1062:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /iOS/MainFeed/MainFeedCollectionViewController.swift:1076:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /iOS/MainFeed/MainFeedCollectionViewController.swift:1091:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /iOS/MainFeed/MainFeedCollectionViewController.swift:1171:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /iOS/Article/WebViewController.swift:893:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /iOS/SceneCoordinator.swift:622:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /iOS/SceneCoordinator.swift:1417:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /iOS/SceneCoordinator.swift:2250:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /iOS/SceneCoordinator.swift:2313:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /Mac/MainWindow/Sidebar/SidebarViewController.swift:449:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /Mac/MainWindow/Sidebar/SidebarViewController.swift:460:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /Mac/MainWindow/Sidebar/SidebarViewController.swift:604:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /Mac/Scripting/AppDelegate+Scriptability.swift:58:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /Mac/AppDelegate.swift:937:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /Modules/RSCore/Sources/RSCore/UIKit/UICollectionView+RSCore.swift:22:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /Modules/RSCore/Sources/RSCore/UIKit/UITableView+RSCore.swift:21:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /Modules/Secrets/Sources/Secrets/CredentialsManager.swift:152:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /Modules/Account/Sources/Account/Feedbin/FeedbinAPICaller.swift:263:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /Modules/Account/Sources/Account/CloudKit/CloudKitAccountZoneDelegate.swift:60:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /Modules/Account/Sources/Account/CloudKit/CloudKitAccountZoneDelegate.swift:94:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in NetNewsWire: /Modules/SyncDatabase/Sources/SyncDatabase/SyncStatusTable.swift:107:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in PocketCasts: /podcasts/ManageDownloadsCoordinator.swift:17:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Sourcery: /SourceryFramework/Sources/Parsing/Utils/AnnotationsParser.swift:475:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Sourcery: /SourceryFramework/Sources/Parsing/Utils/StringView.swift:404:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Sourcery: /Sourcery/Sourcery.swift:778:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/Substring.swift:965:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ This PR introduced a violation in Swift: /stdlib/public/core/Substring.swift:1132:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ Danger found 398 violations with this PR. Due to GitHub's max issue comment size, the number shown has been truncated to 125.
5733 Messages
📖 Building this branch resulted in a binary size of 27578.05 KiB vs 27574.71 KiB when built on main (0% larger).
📖 Linting Aerial with this PR took 0.81 s vs 0.83 s on main (2% faster).
📖 Linting Alamofire with this PR took 1.08 s vs 1.03 s on main (4% slower).
📖 Linting Brave with this PR took 7.42 s vs 7.39 s on main (0% slower).
📖 Linting DuckDuckGo with this PR took 28.57 s vs 28.56 s on main (0% slower).
📖 Linting Firefox with this PR took 12.4 s vs 12.3 s on main (0% slower).
📖 Linting Kickstarter with this PR took 8.52 s vs 8.53 s on main (0% faster).
📖 Linting Moya with this PR took 0.44 s vs 0.44 s on main (0% slower).
📖 Linting NetNewsWire with this PR took 2.64 s vs 2.63 s on main (0% slower).
📖 Linting Nimble with this PR took 0.66 s vs 0.68 s on main (2% faster).
📖 Linting PocketCasts with this PR took 8.25 s vs 7.93 s on main (4% slower).
📖 Linting Quick with this PR took 0.45 s vs 0.45 s on main (0% slower).
📖 Linting Realm with this PR took 3.06 s vs 3.07 s on main (0% faster).
📖 Linting Sourcery with this PR took 1.89 s vs 1.95 s on main (3% faster).
📖 Linting Swift with this PR took 4.78 s vs 4.79 s on main (0% faster).
📖 Linting SwiftLintPerformanceTests with this PR took 0.35 s vs 0.35 s on main (0% slower).
📖 Linting VLC with this PR took 1.25 s vs 1.29 s on main (3% faster).
📖 Linting Wire with this PR took 19.15 s vs 19.16 s on main (0% faster).
📖 Linting WordPress with this PR took 12.95 s vs 12.97 s on main (0% faster).
📖 This PR fixed a violation in Aerial: /Resources/MainUI/PanelWindowController.swift:144:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Aerial: /Resources/MainUI/PanelWindowController.swift:171:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Aerial: /Resources/MainUI/PanelWindowController.swift:189:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Aerial: /Aerial/Source/Views/PrefPanel/InfoWeatherView.swift:171:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Alamofire: /Source/Core/ParameterEncoder.swift:175:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Alamofire: /Source/Core/Session.swift:1173:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Alamofire: /Source/Core/SessionDelegate.swift:123:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Alamofire: /Source/Core/Request.swift:1141:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Alamofire: /Source/Features/Concurrency.swift:660:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Alamofire: /Source/Features/Concurrency.swift:835:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Alamofire: /Tests/RequestTests.swift:1516:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Alamofire: /Tests/DownloadTests.swift:280:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/iOS/Delegates/CPTemplateApplicationSceneDelegate.swift:25:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/AutoFillProvider/CredentialProviderViewController.swift:61:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/AutoFillProvider/CredentialProviderViewController.swift:64:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/AutoFillProvider/CredentialProviderViewController.swift:119:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/iOS/Delegates/AppState.swift:70:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/Shared/OpenInBraveViewController.swift:71:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/Shared/OpenInBraveViewController.swift:77:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/WebShell/ContentView.swift:121:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/iOS/Delegates/AppDelegate.swift:101:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/iOS/Delegates/AppDelegate.swift:180:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/iOS/Delegates/AppDelegate.swift:407:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/iOS/Delegates/AppDelegate.swift:411:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/iOS/Delegates/AppDelegate.swift:480:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/iOS/Delegates/AppDelegate.swift:485:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/iOS/Delegates/SceneDelegate.swift:196:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/iOS/Delegates/SceneDelegate.swift:202:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/iOS/Delegates/SceneDelegate.swift:252:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/iOS/Delegates/SceneDelegate.swift:310:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/iOS/Delegates/SceneDelegate.swift:523:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/iOS/Delegates/SceneDelegate.swift:739:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/iOS/Delegates/SceneDelegate.swift:794:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/iOS/Delegates/SceneDelegate.swift:809:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/App/iOS/Delegates/SceneDelegate.swift:877:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/ClientTests/SolanaProviderScriptHandlerTests.swift:36:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/ClientTests/SolanaProviderScriptHandlerTests.swift:117:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/ClientTests/SolanaProviderScriptHandlerTests.swift:231:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/ClientTests/SolanaProviderScriptHandlerTests.swift:357:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/ClientTests/SolanaProviderScriptHandlerTests.swift:474:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/ClientTests/UserScripts/ScriptExecutionTests.swift:511:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/ClientTests/UserScripts/ScriptExecutionTests.swift:513:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/ClientTests/UserScripts/ScriptExecutionTests.swift:539:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/ClientTests/UserScripts/ScriptExecutionTests.swift:541:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/ClientTests/UserScripts/ScriptExecutionTests.swift:545:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/ClientTests/UserScripts/ScriptExecutionTests.swift:547:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/ClientTests/UserScripts/ScriptExecutionTests.swift:550:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/ClientTests/UserScripts/ScriptExecutionTests.swift:554:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/ClientTests/UserScripts/ScriptExecutionTests.swift:556:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/UserAgentTests/UserAgentBuilderTests.swift:30:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/UserAgentTests/UserAgentBuilderTests.swift:32:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/AccountsStoreTests.swift:259:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/AccountsStoreTests.swift:264:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/AccountsStoreTests.swift:269:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/AccountsStoreTests.swift:273:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/AccountsStoreTests.swift:277:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/AccountsStoreTests.swift:281:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/AccountsStoreTests.swift:285:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/TransactionsActivityStoreTests.swift:254:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/TransactionDetailsStoreTests.swift:125:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/TransactionDetailsStoreTests.swift:186:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/TransactionDetailsStoreTests.swift:206:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/TransactionParserTests.swift:302:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/TransactionParserTests.swift:835:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/TransactionParserTests.swift:1266:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/TransactionParserTests.swift:1350:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/TransactionParserTests.swift:1433:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/TransactionParserTests.swift:1515:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/TransactionParserTests.swift:1600:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/PortfolioStoreTests.swift:1350:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/PortfolioStoreTests.swift:1368:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/PortfolioStoreTests.swift:1585:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/PortfolioStoreTests.swift:1763:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/PortfolioStoreTests.swift:1903:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/NFTStoreTests.swift:142:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/NFTStoreTests.swift:144:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/NFTStoreTests.swift:146:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/NFTStoreTests.swift:150:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/NFTStoreTests.swift:152:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/NFTStoreTests.swift:154:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/NFTStoreTests.swift:173:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/NFTStoreTests.swift:188:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/NFTStoreTests.swift:847:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/NFTStoreTests.swift:850:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/NFTStoreTests.swift:853:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/NFTStoreTests.swift:946:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/NFTStoreTests.swift:1083:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/NFTStoreTests.swift:1085:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/NFTStoreTests.swift:1088:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Tests/BraveWalletTests/NFTStoreTests.swift:1180:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveVPN/Components/Subscription/BraveVPN+Promotion.swift:17:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveVPN/Components/Subscription/BraveVPN+Promotion.swift:37:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveVPN/Components/Settings/BraveVPNContactFormViewController.swift:195:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveVPN/Components/Subscription/BraveVPN+ReceiptResponse.swift:44:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveVPN/Components/Subscription/BraveVPN+ReceiptResponse.swift:54:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveVPN/Components/Region/BraveVPNRegionConfirmationView.swift:110:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveVPN/Components/Region/BraveVPNRegionListView.swift:155:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveVPN/Components/Region/BraveVPNRegionListView.swift:188:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveVPN/Components/BuyVPN/Paywall/BraveVPNTierSelectionView.swift:59:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveVPN/Components/BuyVPN/Paywall/BraveVPNTierSelectionView.swift:61:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Settings/BraveNewsAddSourceResultsViewController.swift:91:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Composer/FeedCardGenerator.swift:132:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Composer/FeedCardGenerator.swift:219:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Settings/BraveNewsDebugSettingsView.swift:235:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/OPML/OPML.swift:35:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Composer/FeedDataSource+RSS.swift:147:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Composer/FeedDataSource+RSS.swift:168:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Composer/FeedDataSource+RSS.swift:177:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Composer/FeedDataSource+RSS.swift:187:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Composer/FeedDataSource+RSS.swift:215:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Composer/FeedDataSource+RSS.swift:221:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Composer/FeedDataSource+RSS.swift:231:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Composer/FeedDataSource+RSS.swift:239:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Composer/FeedDataSource+RSS.swift:245:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Composer/FeedDataSource+RSS.swift:267:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Composer/FeedDataSource+RSS.swift:277:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Composer/FeedDataSource+RSS.swift:285:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Composer/FeedDataSource.swift:129:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Composer/FeedDataSource.swift:278:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Composer/FeedDataSource.swift:343:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Composer/FeedDataSource.swift:923:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Customize/OPMLImporterViewModifier.swift:100:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Customize/SearchResultsView.swift:147:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Customize/SearchResultsView.swift:180:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/BraveNews/Customize/SearchResultsView.swift:198:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/Playlist/PlaylistSharedFolder.swift:115:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/Playlist/PlaylistMediaStreamer.swift:181:1: Warning: Code should be unindented by multiples of one tab or multiples of 4 spaces (indentation_width)
📖 This PR fixed a violation in Brave: /ios/brave-ios/Sources/UserAgent/UserAgentBuilder.swift:29:1: Warning: Code should be indented using one tab or 4 spaces (indentation_width)
⚠️ Danger found 5733 violations with this PR. Due to GitHub's max issue comment size, the number shown has been truncated to 147.

Generated by 🚫 Danger

@tanaev tanaev force-pushed the fix/indentation-width-multiline-conditions branch from af2d13b to f158dbd Compare February 19, 2026 21:25
Copy link
Copy Markdown
Collaborator

@SimplyDanny SimplyDanny left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks!

Have you thought about not just ignoring conditions but linting against their proper indentation? For example:

if let a,
   let b {
    // ...
}

would be good, while

if let a,
    let b {
    // ...
}

wouldn't.

What about guard and its else? Should

guard let a
      else {
    return
}

trigger at the else. I guess not.

Comment thread Tests/BuiltInRulesTests/IndentationWidthRuleTests.swift
@tanaev tanaev force-pushed the fix/indentation-width-multiline-conditions branch 2 times, most recently from 11a7afb to e0270ac Compare April 13, 2026 20:53
@tanaev
Copy link
Copy Markdown
Contributor Author

tanaev commented Apr 14, 2026

Looks good to me. Thanks!

Have you thought about not just ignoring conditions but linting against their proper indentation? For example:

if let a,
   let b {
    // ...
}

would be good, while

if let a,
    let b {
    // ...
}

wouldn't.

What about guard and its else? Should

guard let a
      else {
    return
}

trigger at the else. I guess not.

Thanks. updated

@tanaev tanaev requested a review from SimplyDanny April 14, 2026 20:19
Comment thread CHANGELOG.md
Comment thread Source/SwiftLintBuiltInRules/Rules/Style/IndentationWidthRule.swift Outdated
Comment thread Source/SwiftLintBuiltInRules/Rules/Style/IndentationWidthRule.swift Outdated
Comment thread Source/SwiftLintBuiltInRules/Rules/Style/IndentationWidthRule.swift Outdated
Comment thread Source/SwiftLintBuiltInRules/Rules/Style/IndentationWidthRule.swift Outdated
let ifAligned = "if let x = foo(),\n let y = bar() {\n doSomething()\n}"
let whileAligned = "while let x = foo(),\n let y = bar() {\n doSomething()\n}"
let guardNextLine = "guard\n let x = foo(),\n let y = bar()\nelse {\n return\n}"
let ifThreeAligned = "if let a = foo(),\n let b = bar(),\n let c = baz() {\n doSomething()\n}"
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.

String blocks would be much easier to read. But fine to keep it as is for now.

Pavlo Tanaiev and others added 5 commits April 16, 2026 00:16
Skip continuation lines of multi-line `guard`/`if`/`while` condition
lists that are aligned to the keyword rather than following the
`indentation_width` grid. Add `include_multiline_conditions` option
(default: `false`) to control this behavior.

Fixes realm#4961
When `include_multiline_conditions` is enabled, continuation lines of
multi-line `guard`/`if`/`while` conditions are now checked to ensure
they are aligned with the first condition after the keyword, rather than
simply being skipped.

Also refactor `validate(file:)` to reduce cyclomatic complexity by
extracting helper methods.
Co-authored-by: Danny Mösch <danny.moesch@icloud.com>
…swift

Co-authored-by: Danny Mösch <danny.moesch@icloud.com>
Address review feedback:
- Introduce IndentationPrefix struct to parse a line's leading
  whitespace once and expose tab/space/combined counts for reuse.
- Use the existing makeViolation helper in parseIndentation and
  checkMultilineConditionAlignment instead of constructing
  StyleViolation manually.
@tanaev tanaev force-pushed the fix/indentation-width-multiline-conditions branch from 6266348 to 47d2fd2 Compare April 15, 2026 21:16
Comment thread Source/SwiftLintBuiltInRules/Rules/Style/IndentationWidthRule.swift Outdated
@SimplyDanny SimplyDanny enabled auto-merge (squash) April 19, 2026 11:31
@SimplyDanny SimplyDanny merged commit 9bc16b5 into realm:main Apr 19, 2026
25 checks passed
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.

indentation_width is not working well with multiple line if and guard

3 participants