Update for 0.48.7 release

This commit is contained in:
Nick Lockwood
2021-07-07 22:39:55 +01:00
parent 068ceb3f77
commit a7730daa5d
40 changed files with 45 additions and 28 deletions
+6
View File
@@ -1,5 +1,11 @@
# Change Log
## [0.48.7](https://github.com/nicklockwood/SwiftFormat/releases/tag/0.48.7) (2020-07-07)
- Fixed bug where `redundantParens` rule could introduce an ambiguity by removing parens around a range argument
- Fixed bug where `unowned(unsafe)` capture argument would be mangled by `unusedArguments` rule
- Fixed spurious double-indenting of trailing closures in some cases
## [0.48.6](https://github.com/nicklockwood/SwiftFormat/releases/tag/0.48.6) (2020-06-23)
- Fixed bug where `actor` variables were incorrectly interpreted as a keyword in certain cases
Binary file not shown.
@@ -36,7 +36,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.48.6</string>
<string>0.48.7</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
@@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>0.48.6</string>
<string>0.48.7</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
@@ -14,27 +14,27 @@
</data>
<key>Resources/Base.lproj/Main.storyboardc/9ZR-Qg-hHT-view-iDF-FY-6tf.nib</key>
<data>
/Wk4agHdH5LQBNUNHzOccgb/51c=
JxSn3ZJ1C28Tj+1XWKr5+HRZMnk=
</data>
<key>Resources/Base.lproj/Main.storyboardc/Info.plist</key>
<data>
vBWgxnCM38q/qpTwMtnflnYU/B8=
eCh2dGlINZxblFqTfr+wG9zRzgE=
</data>
<key>Resources/Base.lproj/Main.storyboardc/MainMenu.nib</key>
<data>
yKExJkRvfy/MH/lGUMl24v7UwAc=
eEK+9vwvOfT0lx7C6adSTbcObfA=
</data>
<key>Resources/Base.lproj/Main.storyboardc/MainWindowTabViewController.nib</key>
<data>
049I+dWZkv7ncnkHh9Sl0kfSugs=
RlQOAEWW/cq3z+2MzBysMTggU8o=
</data>
<key>Resources/Base.lproj/Main.storyboardc/NSWindowController-B8D-0N-5wS.nib</key>
<data>
TjnVATq/Mn/phXm4c39Of5Ppuyc=
qAMsni8+UOntPa8hJI3qa01gMk4=
</data>
<key>Resources/Base.lproj/Main.storyboardc/RulesViewController.nib</key>
<data>
J4vIaQtFvNmKJdtvxtR0PM+nzcE=
FoO7XjFaRiSqcReX/ZyL9srRWHI=
</data>
<key>Resources/Base.lproj/Main.storyboardc/XfG-lQ-9wD-view-m2S-Jp-Qdl.nib</key>
<data>
@@ -209,7 +209,7 @@
<dict>
<key>cdhash</key>
<data>
gBSl178Pxf1W2BHGsEjd4R9WNd8=
0caJcJSY6FkBzUhOaJKrKhQmEfw=
</data>
<key>requirement</key>
<string>anchor apple generic and identifier "com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension" and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = "8VQKF583ED")</string>
@@ -232,42 +232,42 @@
<dict>
<key>hash2</key>
<data>
7BIWnTfmB0XzEwPhKL+sLR8Iw69ljH/+gUwCbfex6/A=
W5GGsoDTnOkKZUXF/zcCgLNPDuibGw2pp3T8OfS6/2s=
</data>
</dict>
<key>Resources/Base.lproj/Main.storyboardc/Info.plist</key>
<dict>
<key>hash2</key>
<data>
92Kf6+peRMekQMs/CoIEFlGXm1hFe3F1TUA/mOpfxik=
5xHorX2+W7xxaLMYflwv6TVraZ1ZpyWQOjiPvIu/K+s=
</data>
</dict>
<key>Resources/Base.lproj/Main.storyboardc/MainMenu.nib</key>
<dict>
<key>hash2</key>
<data>
3y991cumgKOYsMXFwOQGwvlPyJM2gZY+LGQmVQKROJ4=
zi1uvL0qA2v7zkxjeeHPJqdlisqYc6Fjx595A1eM7Wc=
</data>
</dict>
<key>Resources/Base.lproj/Main.storyboardc/MainWindowTabViewController.nib</key>
<dict>
<key>hash2</key>
<data>
7bE1t/vcqaU+nLcC6M21kMpIV2JtXvugYq0L/hc+P/c=
BFtQZaXBdaph9EE+64Rwa8MKlBj6Dr7yjpJ1l/ujWZY=
</data>
</dict>
<key>Resources/Base.lproj/Main.storyboardc/NSWindowController-B8D-0N-5wS.nib</key>
<dict>
<key>hash2</key>
<data>
k2jY41Sf6LSzEAV9yReXUQKHaSUqARd0/X53QV4n6xI=
ofQtKNx5hyVaLYIiZI3kRVfEHQe+6gcJImNOj4ERUYw=
</data>
</dict>
<key>Resources/Base.lproj/Main.storyboardc/RulesViewController.nib</key>
<dict>
<key>hash2</key>
<data>
XBvwYOgWYGPzAQahB+b6adV01e75E3xs/6Pb90n8REo=
v6sqWDhWfN1SUY4mDSJ0Zq68NXxUgV/FNWnYPVHbK+U=
</data>
</dict>
<key>Resources/Base.lproj/Main.storyboardc/XfG-lQ-9wD-view-m2S-Jp-Qdl.nib</key>
+12 -1
View File
@@ -28,6 +28,7 @@ Table of Contents
- [Config file](#config-file)
- [Globs](#globs)
- [Linting](#linting)
- [Error codes](#error-codes)
- [Cache](#cache)
- [File headers](#file-headers)
- [FAQ](#faq)
@@ -602,7 +603,7 @@ $ swiftformat --lint path/to/project
This runs the same rules as format mode, and all the same configuration options apply, however, no files will be modified. Instead, SwiftFormat will format each file in memory and then compare the result against the input and report the lines that required changes.
The `--lint` option is similar to `--dryrun`, but `--lint` returns warnings for every line that required changes, and will return a nonzero error code if any changes are detected, which is useful if you want it to fail a build step on your CI server.
The `--lint` option is similar to `--dryrun`, but `--lint` returns warnings for every line that required changes, and will return a nonzero error code (see [Error codes](#error-codes) below) if any changes are detected, which is useful if you want it to fail a build step on your CI server.
If you would prefer `--lint` not to fail your build, you can use the `--lenient` option to force SwiftFormat to return success in `--lint` mode even when formatting issues were detected.
@@ -615,6 +616,16 @@ By default, `--lint` will only report lines that require formatting, but you can
If you would prefer not to see a warning for each and every formatting change, you can use the `--quiet` flag to suppress all output except errors.
Error codes
-----------
The swiftformat command-line tool will always exit with one of the following codes:
* 0 - Success. This code will be returned in the event of a successful formatting run or if linting detects no violations.
* 1 - Lint failure. This code will be returned when running in `--lint` mode if the input requires formatting.
* 70 - Program error. This code will be returned if there is a problem with the input or configuration arguments.
Cache
------
+1 -1
View File
@@ -2,7 +2,7 @@
// Formatter.swift
// SwiftFormat
//
// Version 0.48.6
// Version 0.48.7
//
// Created by Nick Lockwood on 12/08/2016.
// Copyright 2016 Nick Lockwood
+1 -1
View File
@@ -32,7 +32,7 @@
import Foundation
/// The current SwiftFormat version
let swiftFormatVersion = "0.48.6"
let swiftFormatVersion = "0.48.7"
public let version = swiftFormatVersion
/// The standard SwiftFormat config file name
+1 -1
View File
@@ -2,7 +2,7 @@
// Tokenizer.swift
// SwiftFormat
//
// Version 0.48.6
// Version 0.48.7
//
// Created by Nick Lockwood on 11/08/2016.
// Copyright 2016 Nick Lockwood
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "SwiftFormat",
"version": "0.48.6",
"version": "0.48.7",
"license": {
"type": "MIT",
"file": "LICENSE.md"
@@ -10,7 +10,7 @@
"authors": "Nick Lockwood",
"source": {
"git": "https://github.com/nicklockwood/SwiftFormat.git",
"tag": "0.48.6"
"tag": "0.48.7"
},
"default_subspecs": "Core",
"subspecs": [
+6 -6
View File
@@ -1099,7 +1099,7 @@
"@executable_path/../Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.48.6;
MARKETING_VERSION = 0.48.7;
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
@@ -1127,7 +1127,7 @@
"@executable_path/../Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.48.6;
MARKETING_VERSION = 0.48.7;
PRODUCT_BUNDLE_IDENTIFIER = com.charcoaldesign.SwiftFormat;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
@@ -1223,7 +1223,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 0.48.6;
MARKETING_VERSION = 0.48.7;
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode";
PRODUCT_NAME = "SwiftFormat for Xcode";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -1253,7 +1253,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 0.48.6;
MARKETING_VERSION = 0.48.7;
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode";
PRODUCT_NAME = "SwiftFormat for Xcode";
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -1281,7 +1281,7 @@
"@executable_path/../../../../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 0.48.6;
MARKETING_VERSION = 0.48.7;
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension";
PRODUCT_NAME = SwiftFormat;
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -1311,7 +1311,7 @@
"@executable_path/../../../../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 0.48.6;
MARKETING_VERSION = 0.48.7;
PRODUCT_BUNDLE_IDENTIFIER = "com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension";
PRODUCT_NAME = SwiftFormat;
PROVISIONING_PROFILE_SPECIFIER = "";
+1 -1
View File
@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>0.48.6</string>
<string>0.48.7</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>