Trichome

Content deleted Content added
Mildm8nnered (talk | contribs)
m Mildm8nnered moved page User:Mildm8nnered/sandbox to Draft:SwiftLint: Preferred location for AfC submissions
Hey man im josh (talk | contribs)
Declining submission: v - Submission is improperly sourced and nn - Submission is about a topic not yet shown to meet general notability guidelines (be more specific if possible) (AFCH)
Line 1: Line 1:
{{AfC submission|||ts=20240411001048|u=Mildm8nnered|ns=2}}
{{AFC submission|d|v|u=Mildm8nnered|ns=118|decliner=Hey man im josh|declinets=20240411140440|reason2=nn|ts=20240411001048}} <!-- Do not remove this line! -->


{{Short description|Static code analysis tool}}
{{Short description|Static code analysis tool}}
Line 35: Line 35:


* [[List of tools for static code analysis]]
* [[List of tools for static code analysis]]

== References ==

Revision as of 14:04, 11 April 2024

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

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.

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 in to SwiftLint, and users can define additional custom rules using regular expressions.

For example, the identifier_name[2] 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.

See also

  1. ^ "SwiftLint". Website.
  2. ^ "identifier_name". Website.

Leave a Reply