Paul Taykalo
693ee2cae9
Add Isnot Empty extension in the Swift Framework ( #3387 )
2020-11-07 18:42:55 -05:00
Marcelo Fabri
f8ef7d649c
Enable legacy_multiple and prefer_self_type_over_type_of_self in our codebase
2020-08-05 01:11:17 -07:00
Zev Eisenberg
fcf848608e
Add Inline test failure messages ( #3040 )
...
* Add Example wrapper in order to display test failures inline when running in Xcode.
* Stop using Swift 5.1-only features so we can compile on Xcode 10.2.
* Wrap strings in Example.
* Add Changelog entry.
* Wrap all examples in Example struct.
* Better and more complete capturing of line numbers.
* Fix broken test.
* Better test traceability.
* Address or disable linting warnings.
* Add documentation comments.
* Disable linter for a few cases.
* Limit mutability and add copy-and-mutate utility functions.
* Limit scope of mutability.
2020-02-02 10:35:37 +02:00
JP Simard
fe5baca7cd
Migrate to use SourceKitten's new ByteCount/ByteRange types ( #3037 )
...
New APIs were introduced in SourceKitten to allow for a more typesafe distinction between integers meaning NSString-based distances and byte-based distances.
* https://github.com/jpsim/SourceKitten/pull/639
* https://github.com/jpsim/SourceKitten/pull/642
This PR migrates SwiftLint's use of those APIs.
2020-01-16 15:18:37 -08:00
JP Simard
40ade98710
Update SourceKitten to 0.28.0 ( #3011 )
2020-01-03 16:47:18 -08:00
Paul Taykalo
73802c285d
Add own wrappers over syntax tokens and syntax map
2019-11-10 22:55:54 +02:00
Paul Taykalo
3a36b6998b
Fix false-positive identical operands rule
2019-11-10 21:54:34 +02:00
Paul Taykalo
ac40778cb3
Use SwiftLintFile wrapper over the File
2019-11-07 15:19:17 +02:00
Paul Taykalo
1db3eb7890
Change zip.allSatisfy to map ==
2019-10-25 19:53:45 +03:00
Paul Taykalo
b996e0c890
Allow force casts when chainng operators
2019-10-25 19:40:37 +03:00
Paul Taykalo
94c3f9a14b
Update rules and fix syntax violations
2019-10-25 19:20:34 +03:00
Paul Taykalo
1833a44031
Include optional chaining operator when joiing operands
2019-10-25 16:03:03 +03:00
Paul Taykalo
a361848866
Identical operands rule using syntaxmap
2019-10-25 04:04:38 +03:00
Marcelo Fabri
b24fd6cdd4
Enable contains_over_filter_is_empty in SwiftLint itself
2019-08-25 20:58:11 -07:00
Marcelo Fabri
7b84e2bf66
Extract two common operations to extensions
2019-01-24 21:14:10 -08:00
JP Simard
a92c6870f0
Fix false positive in identical_operands ( #2565 )
2019-01-17 13:57:51 -08:00
Xaver Lohmüller
7b00a110a0
Fix line_length violation a different way
2019-01-16 14:16:56 -08:00
Xaver Lohmüller
0badea7cd1
Change termination condition
2019-01-16 14:16:56 -08:00
Xaver Lohmüller
88e23a9113
Replace word break with end of line match
2019-01-16 14:16:56 -08:00
Xaver Lohmüller
ed60316501
Put false positives with IdenticalOperandsRule
2019-01-16 14:16:56 -08:00
JP Simard
0e862ca9c4
Enable vertical whitespace rules in SwiftLint
...
and fix violations
2018-12-02 14:01:23 -08:00
Marcelo Fabri
5bb483d72b
Add identical_operands opt-in rule
2018-08-30 23:12:19 -07:00