You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Strangely, other functions with default closures at the end work just fine. Perhaps the multiple default parameters throw it off?
Complete output when running SwiftLint, including the stack trace and command used
$ swiftlint lint
/Users/jshier/Desktop/Code/project/Project/source/UIAlertController.swift:32:5: warning: Function Default Parameter at End Violation: Prefer to locate parameters with defaults toward the end of the parameter list. (function_default_parameter_at_end)
Environment
SwiftLint version (run swiftlint version to be sure)? 0.33.0
Installation method used (Homebrew, CocoaPods, building from source, etc)? Homebrew
Are you using nested configurations? No.
If so, paste their relative paths and respective contents.
Which Xcode version are you using (check xcode-select -p)? 10.2.1
Do you have a sample that shows the issue? Run echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more
complex, you can use swiftlint lint --path [file here] --no-cache --enable-all-rules.
New Issue Checklist
Describe the bug
Running SwiftLint on the following function results in a false positive for the
function_default_parameter_at_end
rule:Strangely, other functions with default closures at the end work just fine. Perhaps the multiple default parameters throw it off?
Complete output when running SwiftLint, including the stack trace and command used
Environment
swiftlint version
to be sure)? 0.33.0If so, paste their relative paths and respective contents.
xcode-select -p
)? 10.2.1echo "[string here]" | swiftlint lint --no-cache --use-stdin --enable-all-rules
to quickly test if your example is really demonstrating the issue. If your example is more
complex, you can use
swiftlint lint --path [file here] --no-cache --enable-all-rules
.The text was updated successfully, but these errors were encountered: