Skip to content

syntactic_sugar message should be type specific  #1803

Closed
@freak4pc

Description

New Issue Checklist

Bug Report

Environment

  • SwiftLint version (run swiftlint version to be sure)? 0.21.0

  • Installation method used (Homebrew, CocoaPods, building from source, etc)? CocoaPods

  • Are you using nested configurations? No

  • Which Xcode version are you using (check xcode-select -p)? 8.3.3

  • Do you have a sample that shows the issue?

$ echo "func filterNil<T>() -> Observable<T> where E == Optional<T> {" | swiftlint lint --no-cache --use-stdin --enable-all-rules

<nopath>:1:49: warning: Syntactic Sugar Violation: Shorthand syntactic sugar should be used, i.e. [Int] instead of Array<Int> (syntactic_sugar)

e4d5f878-f825-49cf-a424-9badb6dd72f1

Metadata

Assignees

No one assigned

    Labels

    enhancementIdeas for improvements of existing features and rules.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions