You can edit almost every page by Creating an account and confirming your email.

SwiftLint

From EverybodyWiki Bios & Wiki


SwiftLint
Original author(s)JP Simard
Initial releaseMay 30, 2015; 11 years ago (2015-05-30)
Written inSwift
Engine
    Operating systemmacOS, Linux
    Available inEnglish
    TypeStatic code analysis
    LicenseMIT
    Websitegithub.com/realm/SwiftLint

    Search SwiftLint on Amazon.

    SwiftLint,[1] is a static code analysis tool for the Swift programming language that aims to enforce good Swift style and conventions. The creator and lead developer is JP Simard. It is the most commonly recommended Swift linter[2][3][4][5].

    SwiftLint is free software under the MIT license.

    Features

    SwiftLint's checks are implemented as rules, which are either on by default or opt-in.

    Over 230 rules are built into SwiftLint, and users can define additional custom rules using regular expressions.

    For example, the identifier_name[6] rule warns, or errors if identifiers (e.g. variable and function names) are too short or too long, and allows the warning and error thresholds for length, as well as identifiers that should be ignored by the rule (such as x and y), to be configured.

    SwiftLint is also capable of auto-correcting certain kinds of violations.

    SwiftLint has an analyzer mode, which can check for unused code and imports using the abstract syntax tree, but runs more slowly than the usual lint mode.

    References

    1. "SwiftLint". Website.
    2. "SwiftLint in Depth - Kodeco". Website.
    3. Vilmart, Florent; Scalzo, Gordiano; De Simone, Sergio (2018). Hands-On Design Patterns with Swift. Birmingham, UK: Pragmatic Bookshelf. ISBN 978-1789138511. Search this book on
    4. Nolan, Godfrey (2016). Agile Swift: Swift Programming Using Agile Tools and Techniques. Apress. ISBN 978-1484221020. Search this book on
    5. in 't Veen, Tjeerd (2018). Swift in Depth. Manning. ISBN 978-1638356165. Search this book on
    6. "identifier_name". Website.

    See also


    This article "SwiftLint" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:SwiftLint. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.