Trichome

Content deleted Content added
Mildm8nnered (talk | contribs)
m Mildm8nnered moved page User:Mildm8nnered/sandbox to Draft:SwiftLint: Preferred location for AfC submissions
Citation bot (talk | contribs)
Altered title. | Use this bot. Report bugs. | Suggested by LeapTorchGear | #UCB_webform 254/361
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{AfC submission|||ts=20240411001048|u=Mildm8nnered|ns=2}}

{{Short description|Static code analysis tool}}
{{Short description|Static code analysis tool}}
{{Draft topics|internet-culture|software|computing|technology}}
{{AfC topic|stem}}
{{AfC submission|||ts=20240427153950|u=Mildm8nnered|ns=118}}
{{AFC submission|d|v|u=Mildm8nnered|ns=118|decliner=Hey man im josh|declinets=20240411140440|reason2=nn|ts=20240411001048}} <!-- Do not remove this line! -->

{{Infobox software
{{Infobox software
| name = SwiftLint
| name = SwiftLint
Line 15: Line 18:
}}
}}


'''SwiftLint''',<ref name="swiftlintwebsite">{{cite web|title=SwiftLint|url=https://github.com/realm/SwiftLint|website=Website}}</ref> is a [[static code analysis]] tool for the [[Swift (programming language)|Swift]] [[programming language]], that aims to enforce good Swift style and conventions. The creator and lead developer is JP Simard.
'''SwiftLint''',<ref name="swiftlintwebsite">{{cite web|title=SwiftLint|url=https://github.com/realm/SwiftLint|website=Website}}</ref> is a [[static code analysis]] tool for the [[Swift (programming language)|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<ref name="SwiftLint in Depth - Kodeco">{{cite web|title= SwiftLint in Depth - Kodeco|url=https://www.kodeco.com/38422105-swiftlint-in-depth|website=Website}}</ref><ref>{{cite book |last1=Vilmart |first1=Florent |last2=Scalzo |first2=Gordiano |last3=De Simone |first3=Sergio |title=Agile Swift - Swift Programming Using Agile Tools and Techniques |date=2018 |publisher=Pragmatic Bookshelf |location=Birmingham, UK |isbn=978-1789138511}}</ref><ref>{{cite book |last1=Nolan |first1=Godfrey |title=Hands-On Design Patterns with Swift |date=2016 |publisher=Apress |isbn=978-1484221020}}</ref><ref>{{cite book |last1=in 't Veen |first1=Tjeerd |title=Swift in Depth |date=2018 |publisher=Manning |isbn=978-1638356165}}</ref>.


SwiftLint is [[free software]] under the [[MIT_License|MIT license]].
SwiftLint is [[free software]] under the [[MIT_License|MIT license]].
Line 30: Line 33:


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.
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==
{{reflist}}


== See also ==
== See also ==
Line 35: Line 41:


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

== References ==

Latest revision as of 16:11, 28 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. It is the most commonly recommended Swift linter[2][3][4][5].

SwiftLint is free software under the MIT license.

Features[edit]

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[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[edit]

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

See also[edit]

Leave a Reply