Max Härtwig
dcc8d6e34c
Make control_statement rule substitution correctable
2019-11-11 15:01:36 +01:00
Paul Taykalo
3a36b6998b
Fix false-positive identical operands rule
2019-11-10 21:54:34 +02:00
Paul Taykalo
f569e3d973
Rename Traverse to Traverse with Parent
2019-11-09 13:29:43 -08:00
Paul Taykalo
c85d3099a1
Update documentation
2019-11-09 13:29:43 -08:00
Paul Taykalo
a52a94c987
Use Generic Dictionary Traversing for multiple cases
2019-11-09 13:29:43 -08:00
Paul Taykalo
848370a522
Simpler check for FileTypesOrderRule
2019-11-08 01:35:01 +02:00
Paul Taykalo
d771d223e3
Remove unused imports
2019-11-07 16:20:18 +02:00
Paul Taykalo
ac40778cb3
Use SwiftLintFile wrapper over the File
2019-11-07 15:19:17 +02:00
Paul Taykalo
2a308c1698
Fix DiscardedNotificationCenterObserverRule
2019-11-07 12:07:56 +02:00
Paul Taykalo
ec6d82af56
Cache Access Control Level property
2019-11-07 11:52:50 +02:00
Paul Taykalo
b1cdc119ec
Use swift enums instead of raw values
2019-11-07 11:05:19 +02:00
Paul Taykalo
4fff698c09
Update UnusedDeclarationRule to use SourceKittenDictionary
2019-11-07 10:28:30 +02:00
Paul Taykalo
18a3896f97
Update swift structure dictionary
2019-11-07 08:51:16 +02:00
Paul Taykalo
f0ad230e81
fix linting issues
2019-11-07 08:50:50 +02:00
Paul Taykalo
b901c670d4
Cache file structure dictionary
2019-11-07 08:50:50 +02:00
Paul Taykalo
8c963d2c15
Working solution with SouceKittenDictionary wrapper
2019-11-07 08:50:50 +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
355a219b8a
PR feedback
2019-10-23 12:31:07 -07:00
Marcelo Fabri
cff53944c4
Optimize redundant_void_return
2019-10-20 20:40:11 -07:00
Marcelo Fabri
a9ae253bd4
Merge pull request #2889 from 00FA9A/mp/2888
...
Add `raw_value_for_camel_cased_codable_enum` (#2888 )
2019-10-20 20:37:20 -07:00
Marcelo Fabri
029f1a9916
Merge pull request #2892 from vani2/syntactic-sugar-autocorrect
...
Add autocorrection to the syntactic sugar rule
2019-10-20 20:36:41 -07:00
Marcelo Fabri
3b5458a248
Use String.isLowercase()
2019-10-20 19:19:54 -07:00
MarkoPejovic
109899c56c
Implement #2888
2019-10-20 19:19:54 -07:00
Ivan Vavilov
8af5825ca1
Add some test cases
2019-10-20 19:08:54 -07:00
Ivan Vavilov
ffa955dc7d
Add autocorrection to the syntactic sugar rule
2019-10-20 19:08:54 -07:00
Paul Taykalo
d891b1ec60
Use binary search when searching for lines indexes in LetVarWhiteSpacesRule ( #2901 )
...
* Use binary search when searching for lines indexes
* Update Changelog
* Remove unused old method of searching line by offset
* Update line by offset call with already implemented function
2019-10-20 11:30:32 -07:00
Marcelo Fabri
2dcaf3ee78
Merge pull request #2894 from realm/mf-update-sourcekitten
...
Update SourceKitten to 0.26.0
2019-10-08 09:36:57 -07:00
Marcelo Fabri
f5174b3168
Update SourceKitten to 0.26.0
2019-10-08 00:51:18 -07:00
Max Härtwig
1a5aa05c34
Add missing Foundation import
2019-10-07 09:42:19 +02:00
Max Härtwig
b9368cbca6
Fix reference to
2019-10-07 09:27:31 +02:00
Max Härtwig
a157957df4
Make toggle_bool rule substitution correctable
2019-10-07 01:16:15 +02:00
Marcelo Fabri
d4ef1f0ad0
Add flatmap_over_map_reduce opt-in rule
...
Fixes #2883
2019-09-26 10:07:12 -07:00
Nathan Van Fleet
406a8f20f8
Add Mark rule for triple slash Mark comments ( #2868 )
...
* Add Mark rule for triple slash Mark comments
* Move changelog entry to appropriate section
* Re-add Package.resolved
* Fix trailing comma
* Rebuild Rules.md using Xcode 10.3
* Combine two regexes into one
2019-09-18 17:21:13 -07:00
Colton Schlosser
2c076151f4
Add contains_over_range_not_nil rule, make contains_over_first_not_nil also match == nil ( #2811 )
2019-09-03 12:03:00 -04:00
JP Simard
ffb2f4f76d
Require Swift 5.0 to build ( #2857 )
...
* Require Swift 5.0 to build
* Update CI
* Stop testing with Swift 4.x & Xcode 10.0/10.1
* Use official Swift docker image instead of norionomura's
* Use Xcode 10.3 as latest stable version
* Update READMEs
* Fixup xcodeproj
* Fixup CI Swift container image tag
* Fixup changelog
2019-09-03 11:42:57 -04:00
Marcelo Fabri
40bc8de5c7
Add no_space_in_method_call rule ( #2855 )
...
* Add no_space_in_method_call rule
* Avoid false positive with typecasting
2019-09-03 10:03:21 -04:00
Marcelo Fabri
dae7a7b193
Don't trigger missing_docs on extensions
...
Fixes #2851
2019-08-30 14:29:32 -07:00
Colton Schlosser
130371b8cc
Add empty_collection_literal rule
2019-08-28 21:57:02 -04:00
JP Simard
0d18758241
Use reduce(into:) for unused imports rule ( #2850 )
2019-08-28 16:20:47 -07:00
Marcelo Fabri
3879151abf
Enable some opt-in rules ( #2801 )
2019-08-28 14:49:23 -07:00
Marcelo Fabri
b24fd6cdd4
Enable contains_over_filter_is_empty in SwiftLint itself
2019-08-25 20:58:11 -07:00
Marcelo Fabri
3e115835b1
Merge pull request #2846 from realm/mf-contains_over_filter_is_empty
...
Add `contains_over_filter_is_empty` opt-in rule
2019-08-25 20:55:11 -07:00
Marcelo Fabri
67526344ef
Add contains_over_filter_is_empty opt-in rule
2019-08-25 20:22:41 -07:00
Marcelo Fabri
759ccd8a1e
Avoid false positives in contains_over_filter_count
2019-08-25 20:11:23 -07:00
Marcelo Fabri
00d2b5d772
Add contains_over_filter_count opt-in rule
...
Fixes #2803
2019-08-25 20:00:50 -07:00
Marcelo Fabri
7c6d5d0994
Merge pull request #2815 from atfelix/issue-2791-swiftui-previews
...
Removes `type_name` violation for SwiftUI template code
2019-08-25 19:32:05 -07:00