-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set up SwiftLint as a standalone build plugin #23996
Open
mokagio
wants to merge
254
commits into
trunk
Choose a base branch
from
mokagio/swiftlint-via-isolated-plugin
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
254 commits
Select commit
Hold shift + click to select a range
79c49ae
Add convenience init to LightboxViewController
kean 246b122
Integrate LightboxViewController in SiteMedia
kean 6ed4454
Integrate LightboxViewController in ReaderDetailsCoordinator (cover i…
kean 95399b0
INtegrate in DefaultContentCoordinator
kean b3a84ac
Integrate LightboxViewController in Guteberg
kean 8fbeb66
Integrate LightboxViewController in ExternalMediaPickerViewController
kean 8f7dd16
Integrate LightboxViewController in PostSettingsViewController (featu…
kean 8096de9
Remove FeaturedImageViewController (ObjC)
kean 88c7b13
Rewrite PostFeaturedImageCell
kean da7b29a
Integrate LightboxViewController in ReaderCommentsViewController
kean 3354d85
Update WPRichTextImage to use AsyncImageView
kean c3993e0
Automatically pick thumbnail when available
kean 36b392e
Remove WPImageViewController
kean 342e63e
Update release notes
kean d613c05
Remove ImageLoader
kean 2ac4c2e
Remove ImageDimensionParser
kean 5141337
Update MediaItemHeaderView to use AsyncImageView instead of CachedAni…
kean a3adfee
Fix code formatting in RichTextView
kean 61871d0
Update AnimatedGifAttachmentViewProvider to use GIFImageView directly
kean 4b3f4ef
Remove SolidColorActivityIndicator
kean 79b3a0a
Remove CachedAnimatedImageView
kean c96c844
Remove GIFPlaybackStrategy
kean 3f270d2
Update EditorMediaUtility to use ImageDownloader directly (without Au…
kean dca2548
Remove AuthenticatedImageDownload
kean f9a2315
Update MediaExternalExporter to use ImageDownloader for downloading G…
kean 8ad55b8
Remove AnimatedImageCache
kean f013a31
Remove remaining AlamofireImage usages from the anouncement cells
kean f27c41d
Remove AlamofireImageCacheAdapter
kean 129bc3e
Remove AlamofireImage
kean eece5e9
Add ImagePrefetcher
kean 49df350
Update releaes notes
kean 1e5f0e8
Add ImageRequest support in AsyncImageView
kean 023b3cd
Add ImageSize
kean f352225
Fix an issue with blogging reminders flow not being shown after publi…
kean afdfd05
Remove unused LightNavigationController
kean af4ba9c
Remove BottomSheetViewController usage from BloggingReminders flow
kean c9dca5f
Simplify BloggingRemindersFlowIntroViewController
kean 956a3f0
Add SpacerView
kean a49d006
Add BottomToolbarView
kean 6431474
Fix notice covering the blogging reminders fow
kean 79334a2
Replace FancyButton
kean 9c0bed9
Add close button to BloggingRemindersFlowSettingsViewController
kean 882df62
Fix BloggingRemindersTimeSelectionViewController presentation
kean 581a10a
Remove FancyButton from BloggingRemindersPushPromptViewController
kean 9f81f7f
Remove dismiss button (it now shows back)
kean 1d56a16
Update BloggingRemindersPushPromptViewController layout
kean a5d4fc2
Remove FancyButton from BloggingRemindersFlowCompletionViewController
kean 94dd45f
Update BloggingRemindersFlowCompletionViewController layout
kean 7bbd838
Update releaes notes
kean c1c70e1
Fix typo in release notes
kean 60a9e23
Fix compliance popover accessibility settings
kean a1786a4
Fix an issue with compliance popover not dismissing
kean 195e8e8
Update release notes
kean f91c0d7
Remove unused CircularProgressView extensions
kean ae33151
Remove BottomSheetViewController usage from JetpackBrandingCoordinator
kean c97bbdd
Remove ottomSheetViewControllerTests
kean 927616a
Remove BottomSheetViewController
kean 2aa3bff
Remove DrawerPresentationController
kean 8b886a3
Update release notes
kean 1782da1
Add Share action to the site link on dashboard
kean 92d446f
Remove duplicated Share actions
kean 8921783
Remove duplicated Strings.ok
kean 57dc107
Update release notes
kean 86ee87b
Fix layout issues in Privacy Settings
kean 9038395
Add assertion
kean df6f938
Update release notes
kean b9de1da
Rename WordPressMedia to AsyncImageKit
kean cdfbd20
Rename WordPressMedia (#23937)
kean c7b0a49
Remove MediaHost from AsyncImageKit
kean 4d8d512
Move ImageDownloader.shared to AsyncImageKit
kean 7f45fec
Move AsyncImageView and other related types to AsyncImageKit
kean 90b1166
Fix unit tests
kean 2c17896
Move AsyncImageView to AsyncImageKit (#23938)
kean 330ebaf
Cleanup MediaHost initializers
kean 58ec973
Optimize account lookup
kean ebbeb8b
Fix MediaHostTests
kean 221386f
Cleanup MediaHost initializers (#23939)
kean 42aea77
Fix crash in ReaderDetailFeaturedImageView
kean 14b5c56
Fix RTL support in WebKitViewController
kean eb7bed6
Use semantic back/forward chevrons in other places
kean 2b4ff05
Update StatsBaseCell
kean c227ab4
Update SiteStatsTableHeaderView
kean e6883c5
Replace disclosure-chevron and editor-chevron-left
kean 379b156
Fix remainig incorrect chevron usages
kean 5e77775
Remove remainig chevron images
kean 161fc2d
Update release notes
kean 3a85553
Fix separator insets on homepage
kean cb3816d
Fix incorrect chevron icons direction in RTL languages (#23940)
kean eab7835
Fix an issue with clear navigation bar background in revision browser
kean bf01b8f
Fix an issue with clear navigation bar background in revision browser
kean a337327
Fix toolbar inset to safe area in revision browser
kean 56ef3a7
Modernize menus and stuff
kean 87ff4b6
Fix an issue with clear navigation bar background in revision browser…
kean 7b36ced
Fix an issue with clear navigation bar background in revision browser…
kean 8b02a8e
Fix MediaRequestAuthenticatorTests
kean c74a857
Remove preflight connection check when sending replies (can be laggin…
kean b1709b7
Fix an issue with comments disppearing if request fails
kean d847e8a
Update other screens using TextView
kean cb47b04
Update release notes
kean 309ddbc
Fix an issue with comments being lost on request failure (#23942)
kean ccbdbfb
Fix formatting
kean 13bcd39
Fix an issue with referrers showing invalid icons
kean 2f22b2f
Update release notes
kean fe31a0d
Fix an issue with Referrers in Stats showing invalid icons (#23943)
kean 4c2f229
Remove some of the scenarios where isInternetConnected used
kean 565a34b
Update site menu style on iPhone
kean c02b29b
Update release notes
kean fcc9cf5
Update site menu style on iPhone (#23944)
kean 26058c7
Integrate zoom transitions in Theme browser
kean babc529
Update release notes
kean ff930aa
Integrate zoom transitions in Theme browser (#23945)
kean af9dd41
Fix tint colors in wpios
kean ff83911
Remove UIAppColor.brand
kean 2dbd0fc
Fix tint color in wpios (#23946)
kean 8cdd43e
Enable zoom transitions in Reader (iPad)
kean 7584f56
Update release notes
kean e6f37bd
Integrate zoom transitions in Reader (#23947)
kean d86c342
Remove unused isVisibleInScrollView
kean 40f7142
Enable toolbar hiding on iPad
kean fe68ae3
Fix ReaderDetailFeaturedImageView gradienet showing up when no image …
kean 4b741ea
Enable toolbar hiding on iPad too (#23948)
kean 99b0ba2
Fix an issue with Publisize options appearing in the prepublishing sh…
kean 9edac5f
Fix an issue with Publisize options appearing in the prepublishing sh…
kean 600ad8f
Fix code formatting and remove unused imports
kean c966dc6
Move SiteIconView to WordPressUI
kean a6775eb
Update Share extension to use SiteIconView
kean 7c33ae7
Remove UIImageView+Blavatar
kean 119f4cc
Use firstLetter
kean 0862ef1
Update release notes
kean 6e32673
Fix an issue with site icons cropped in share extensions (#23950)
kean f95fe7c
Disable universal links support for QR code login
kean 4dc172d
Fix an issue with the confirmation screen shown more than once
kean f9738ee
Update release notes
kean 406da34
Enable fast deceleration for filters on the Discover tab
kean 9879df0
Update release notes
kean 530faff
Enable fast deceleration for filters on the Discover tab (#23954)
kean 09f7e55
Show selected filter in the Discover navigation bar
kean 5fd1a43
Update release notes
kean 011b671
Merge branch 'christmas-feature-branch' into fix/disable-qr-code-univ…
kean 4b41387
Disable universal links support for QR code login (#23953)
kean f0e5730
Show selected filter in the Discover navigation bar (#23956)
kean 9e70581
Remove unused makeCreateButtonAnnouncementAlertController
kean 9fe9593
Add scroll-to-top button to Reader
kean 321c8d2
Cleanup
kean 8e0026c
Update design for iPad
kean 6ead7b3
Add analytics
kean 2069c49
Update releaes notes
kean 46d183f
Add scroll-to-top button to Reader streams (#23957)
kean 34775f3
Flatten a nested localized string to avoid `genstrings` failure
mokagio b491858
Import `WordPressUI` in `SiteIconViewModelTests`
mokagio ab47169
Add initial MediaPicker implementation
kean 6ddf963
Add initial PostSettingsFeaturedImageCell implementation
kean 3338325
Add configurable MediaPicker content
kean bcd2738
Add ViewModel to PostSettingsFeaturedImageCell
kean ba566af
Add reuseIdentifier for featured image cells
kean dbfb9db
Pass selection from MediaPicker to PostSettingsFeaturedImageViewModel
kean d23bf0e
Show upload status using PostMediaUploadItemView
kean 6c9f7e7
Rename MediaUploadItemViewModel
kean b90111e
Add PostSettingsFeaturedImageUploadView to show upload progress
kean 20cae40
Simlify how the app shows media upload status
kean ff30855
Handle upload failure
kean 495d921
Implement featured image save
kean c83378b
Add support for showing a selected featured image
kean 8cdce43
Add support for removing featured image
kean 477227a
Simplify lightbox
kean 2ab52b7
Add support for camera as a source
kean a800eae
Add .siteMedia(blog:) source
kean 842dcfe
Add ImagePlayground source support
kean 0d5640d
Add ImagePlayground support in MediaPicker
kean 7483497
Add free photos and GIFs support to MediaPicker
kean d2c05f0
Remove unused media upload code from PostSettingsViewController
kean 7fbb68a
Remove WPTableViewActivityCell
kean 4e283d4
Remove WPProgressTableViewCell
kean 5e3dd5a
Remvove unused featured image size
kean ec09ca8
Remove more unused code
kean e4554a9
Remove unused code
kean e8b846b
Add SiteMediaImageView
kean 45b2fcc
Remove unused code
kean 7f4c780
Integrate FeaturedImageDelegate
kean 3d007fe
Fix SiteMediaImage background when loading with spinner
kean c2523d4
Fix animations
kean 017f72f
Add zoom transition
kean 0e100ad
Add shadow to more menu
kean 7ea1cf4
Make the entire cell tappable
kean 5d13e71
Add View action
kean 3f27e17
Add replace action
kean a828b2c
Show spinner when replacing an image
kean b0f3a4b
Remove unused reloadFeaturedImageCell
kean f44329d
Update release notse
kean f5ff6d2
Address localization and test build failures (#23960)
kean cd13f63
Improve featured image flow (#23962)
kean 41cd8ee
Revert "Update site menu style on iPhone"
kean a49ee2d
Fix an issue with wrong cover images appearing in Reader (#23914)
kean a045bf1
Point back to wpios-edition
kean e9b4605
Fix an issue with non-stable order in Posts and Pages in stats (#23915)
kean 67ba286
Fix an issue with a missing "Mark as Unread" button in the More menu …
kean 846199d
Add missing social sharing icons (#23918)
kean 754c960
Update release notes
kean 6deca49
Merge branch 'trunk' into christmas-feature-branch
kean a07bfb3
Fix build
kean 4cd2be4
Update UI tests
kean d33d540
Use medium font for main navigation area in Reader to align with Home
kean 39fa791
Remove commented-out code
kean 3a4c671
Add context menus and previews for sites in Reader (#23964)
kean 0ea86d8
Update release notes
kean d7a6a34
Run `pod deintegrate` and remove CocoaPods automation
mokagio e6c57d8
Add `Makefile` automation to download Gutenberg framework
mokagio 920e6c0
Remove dead reference to `Pods.framework` in project
mokagio a840db4
Remove dead reference to pods from workspace
mokagio 6b4c68f
Remove SwiftLint-via-CocoaPods from `Rakefile`
mokagio b208d1b
Remove unnecessary `$(inherited)` flag from a couple of targets
mokagio 60ddd7e
Remove CocoaPods instruction from the README
mokagio 6c4cb26
Remove SwiftLint instructions from the `README`
mokagio c2b40bd
Add a version of Aztec fetched via SwiftPM
mokagio b9b60bd
Add Gutenberg XCFrameworks via drag-n-drop from local paths
mokagio f25be24
Disable `CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER`
mokagio 80bc576
Disable `CLANG_WARN_STRICT_PROTOTYPES`
mokagio 7ed9913
Update search path for Gutenberg React Native bundle in script
mokagio 96eec8c
Remove some leftover bits of CocoaPods set up for automation
mokagio bb06f6b
Remove leftover `COCOAPODS` precompiler flag
mokagio 93290ca
Remove a couple of CocoaPods-specific code branches
mokagio 3b2d4a1
Temporarily switch to CI toolkit branch compatible with no CocoaPods
mokagio 1cd31ea
Fetch XCFrameworks in CI
mokagio c90515b
Update Gutenberg checkout logic in localization lint for CP-less setup
mokagio bbf1cc4
Update source map upload for CP-less Gutenberg setup
mokagio 9c425c9
Ensure `Frameworks` folder exist, otherwise tar will fail
mokagio de6c042
Remove "Log Outdated Pods" step from code freeze
mokagio 138b3aa
Remove Pods from lists in `.gitignore` and RuboCop
mokagio 31f40e9
Remove imports of Pods xcconfigs
mokagio 14a85da
No longer look in Pods folder to extract localizations
mokagio ed0940c
Link Gutenberg XCFramework in Jetpack target too!
mokagio 03b1f42
Add instruction in README to run `make dependencies`
mokagio b2e22a1
Use CI toolkit 3.8.0
mokagio 7dc268b
Merge remote-tracking branch 'origin/trunk' into mokagio/remove-cocoa…
mokagio a8832fc
Point Aztec to branch in wordpress-mobile org from SPM support PR
mokagio f315110
Merge remote and local SwiftLint configs–Plugin has trouble with remote
mokagio 878802f
Set up SwiftLint as a SwiftPM plugin in dedicated BuildTools pkg
mokagio e647171
Fix `opening_braces` violation using `swiftlint --fix`
mokagio b45f8b7
Revert "Fix `opening_braces` violation using `swiftlint --fix`"
mokagio 5ce2bdc
Set SDK when running SwiftLint to avoid conflicts
mokagio 088fed2
Try with version 0.58.0 which seems a bit faster than 0.58.2
mokagio f006bb7
Fix SwiftLint `open_brace` violations via running with `--fix`
mokagio cfc62e6
Try version 0.58.1
mokagio f692687
Back to version 0.58.2
mokagio 9da124f
Restore remote configuration
mokagio 05a0116
Revert "Restore remote configuration"
mokagio 1b5d37d
Wrap SwiftLint call from aggretate target in script
mokagio db78e12
Do not run build-time SwiftLint when building in CI
mokagio 53f4eab
Only run SwiftLint build phase in Debug builds
mokagio 8479673
Remove commented out SwiftLint source alternatives
mokagio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash -eu | ||
|
||
echo "--- :rubygems: Setting up Gems" | ||
install_gems | ||
|
||
echo "--- :swift: Setting up Swift Packages" | ||
install_swiftpm_dependencies | ||
|
||
echo "--- :xcode: Fetch XCFrameworks" | ||
pushd WordPress | ||
make dependencies | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,121 @@ | ||
swiftlint_version: 0.54.0 | ||
|
||
parent_config: https://raw.githubusercontent.com/Automattic/swiftlint-config/0f8ab6388bd8d15a04391825ab125f80cfb90704/.swiftlint.yml | ||
remote_timeout: 10.0 | ||
swiftlint_version: 0.58.2 | ||
|
||
excluded: | ||
- Modules/.build | ||
- BuildTools/.build | ||
- DerivedData | ||
- WordPress/DerivedData | ||
- fastlane | ||
- Pods | ||
- Scripts | ||
# Automattic's CI caching setup may generate this in the project folder | ||
- Users/builder/Library/Caches/CocoaPods/Pods | ||
- vendor | ||
|
||
# Rules – Opt-in only, so we can progressively introduce new ones | ||
# | ||
only_rules: | ||
# Colons should be next to the identifier when specifying a type. | ||
- colon | ||
|
||
# There should be no space before and one after any comma. | ||
- comma | ||
|
||
# if,for,while,do statements shouldn't wrap their conditionals in parentheses. | ||
- control_statement | ||
|
||
# Allow custom rules. See the end of the config for our custom rules | ||
- custom_rules | ||
|
||
opt_in_rules: | ||
- discarded_notification_center_observer | ||
|
||
- duplicate_imports | ||
|
||
# Arguments can be omitted when matching enums with associated types if they | ||
# are not used. | ||
- empty_enum_arguments | ||
|
||
# Prefer `() -> ` over `Void -> `. | ||
- empty_parameters | ||
|
||
# MARK comment should be in valid format. | ||
- mark | ||
|
||
# Opening braces should be preceded by a single space and on the same line as | ||
# the declaration. | ||
- opening_brace | ||
|
||
- overridden_super_call | ||
|
||
- shorthand_optional_binding | ||
|
||
# Files should have a single trailing newline. | ||
- trailing_newline | ||
|
||
# Lines should not have trailing semicolons. | ||
- trailing_semicolon | ||
|
||
# Lines should not have trailing whitespace. | ||
- trailing_whitespace | ||
|
||
- vertical_whitespace | ||
|
||
- weak_delegate | ||
|
||
overridden_super_call: | ||
# Rules configuration | ||
# | ||
control_statement: | ||
severity: error | ||
|
||
discarded_notification_center_observer: | ||
severity: error | ||
|
||
overridden_super_call: | ||
severity: error | ||
|
||
trailing_whitespace: | ||
ignores_empty_lines: false | ||
ignores_comments: false | ||
|
||
weak_delegate: | ||
severity: error | ||
|
||
# Custom rules | ||
# | ||
custom_rules: | ||
natural_content_alignment: | ||
name: "Natural Content Alignment" | ||
regex: '\.contentHorizontalAlignment(\s*)=(\s*)(\.left|\.right)' | ||
message: "Forcing content alignment left or right can affect the Right-to-Left layout. Use naturalContentHorizontalAlignment instead." | ||
severity: warning | ||
|
||
natural_text_alignment: | ||
name: "Natural Text Alignment" | ||
regex: '\.textAlignment(\s*)=(\s*).left' | ||
message: "Forcing text alignment to left can affect the Right-to-Left layout. Consider setting it to `natural`" | ||
severity: warning | ||
|
||
inverse_text_alignment: | ||
name: "Inverse Text Alignment" | ||
regex: '\.textAlignment(\s*)=(\s*).right' | ||
message: "When forcing text alignment to the right, be sure to handle the Right-to-Left layout case properly, and then silence this warning with this line `// swiftlint:disable:next inverse_text_alignment`" | ||
severity: warning | ||
|
||
localization_comment: | ||
name: "Localization Comment" | ||
regex: 'NSLocalizedString([^,]+,\s+comment:\s*"")' | ||
message: "Localized strings should include a description giving context for how the string is used." | ||
severity: warning | ||
|
||
string_interpolation_in_localized_string: | ||
name: "String Interpolation in Localized String" | ||
regex: 'NSLocalizedString\("[^"]*\\\(\S*\)' | ||
message: "Localized strings must not use interpolated variables. Instead, use `String(format:`" | ||
severity: error | ||
|
||
swiftui_localization: | ||
name: "SwiftUI Localization" | ||
regex: 'LocalizedStringKey' | ||
message: "Using `LocalizedStringKey` is incompatible with our tooling and doesn't allow you to provide a hint/context comment for translators either. Please use `NSLocalizedString` instead, even with SwiftUI code." | ||
severity: error | ||
excluded: '.*Widgets/.*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.build | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd add it to the .gitignore file in the root directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Here only to satisfy SwiftPM requirement. | ||
// See https://github.com/nicklockwood/SwiftFormat#1-create-a-buildtools-folder-and-packageswift |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We cannot use
0.54.0
because it's not available as a built tool plugin, see https://github.com/SimplyDanny/SwiftLintPlugins/releasesGiven that, it makes sense to use the latest available version. But even if we didn't want to:
--working-directory
option which we need