Commit Graph

377 Commits

Author SHA1 Message Date
Marcelo Fabri a9de74f91a Add block_based_kvo rule
Fixes #1714.
2017-07-27 21:05:57 +02:00
Marcelo Fabri 7c5da2f316 Add four to SwiftVersion 2017-07-27 14:28:40 +02:00
Marcelo Fabri 0bf1179c83 Validating trailing closure even if there's only one param 2017-07-24 00:50:31 +02:00
Marcelo Fabri a1f3646a9b Add trailing_closure rule
Fixes #54
2017-07-24 00:50:31 +02:00
Marcelo Fabri c01f4bd19f Enable extension_access_modifier rule 2017-07-21 21:08:52 +02:00
Marcelo Fabri febc9c4017 Merge pull request #1695 from realm/mf-bugfix-1694
Fix crash when using --config and --path with a Swift file
2017-07-19 19:17:14 +00:00
Marcelo Fabri 663081cfbd Fix crash when using --config and --path with a Swift file
Fixes #1694
2017-07-19 20:53:55 +02:00
Marcelo Fabri a008fbba8c Add unneeded_parentheses_in_closure_argument rule 2017-07-18 23:22:30 +02:00
JP Simard 9bb64e5cb5 Merge pull request #1688 from realm/jp-cached-configs-init
Use cached configurations if available when initializing
2017-07-17 17:35:28 -07:00
JP Simard 7592d9247a use cached configurations if available when initializing 2017-07-17 16:35:16 -07:00
JP Simard 41513a55d5 fix compilation with Swift 3.2 2017-07-17 15:37:08 -07:00
JP Simard d0c8e5ee60 reorganize Configuration.swift 2017-07-17 12:05:05 -07:00
JP Simard 40bd4e7d4f move parsing functionality to Configuration+Parsing 2017-07-17 12:05:05 -07:00
JP Simard e6f95d5723 move merging functionality to Configuration+Merging 2017-07-17 12:05:04 -07:00
JP Simard 8f8e5d1fc2 move "lintable files" functionality to Configuration+LintableFiles 2017-07-17 11:45:32 -07:00
JP Simard 6b8d2ba28a move Configuration+Cache.swift into Extensions/ 2017-07-17 11:42:05 -07:00
JP Simard 283055623a prefer early return in containsDuplicateIdentifiers(_:) 2017-07-17 11:42:03 -07:00
David Catmull 07b8d13de9 In progress: Whitespace around let/var blocks 2017-07-10 14:34:11 -07:00
Marcelo Fabri 2c221b0ff0 Split rules in two 2017-07-04 00:09:11 +02:00
Marcelo Fabri 1a73358c85 Refactoring rule 2017-07-03 23:38:09 +02:00
J Cheyo Jimenez e72d09bc31 added fileprivateRule 2017-07-03 01:09:42 +02:00
Marcelo Fabri e86763739f Move kind to RuleDescription 2017-07-02 15:50:16 +02:00
Marcelo Fabri d8f5a316f2 release 0.20.1 2017-07-01 20:19:33 +02:00
Marcelo Fabri 68c1f3c1ab Fix configuration issue when using custom paths
Fixes #1631
2017-06-24 22:54:10 +02:00
Marcelo Fabri e1dee51791 release 0.20.0 2017-06-18 20:33:09 +02:00
Marcelo Fabri 102bca6155 Use validates_start_with_lowercase key on NameConfiguration
Fixes #1626
2017-06-18 20:13:31 +02:00
JP Simard a6487db198 fix using incorrect config file (fixes #1531) 2017-06-13 21:32:56 +02:00
Marcelo Fabri fd231b607d Fix existing violations 2017-06-13 16:12:58 +02:00
JP Simard f1417da079 preserve Sourcery comment header in make sourcery 2017-06-02 14:28:37 -07:00
JP Simard 9a81734081 use Sourcery to generate MasterRuleList.swift 2017-06-02 14:28:37 -07:00
Marcelo Fabri 441bece9da Add extension_access_modifier rule 2017-06-02 21:24:55 +02:00
Marcelo Fabri 33955234b3 Skip files with valid cache & no violations when auto correcting 2017-05-28 12:47:52 +02:00
Ornithologist Coder 48bb6c77d4 Adds multiline method definition rule
Parameters of methods and functions should be either on the same line,
or one per line.
2017-05-26 14:54:01 +02:00
JP Simard 0aa93380e7 release 0.19.0 2017-05-25 14:25:31 -07:00
JP Simard 0e50216114 Merge pull request #1557 from realm/jp-fix-overlapping-regions
Fix overlapping commands causing incorrect Region generation
2017-05-24 12:22:01 -07:00
JP Simard 592537966c make Region & Command structs conform to Equatable 2017-05-24 11:33:39 -07:00
Marcelo Fabri bdcfe1b2cf Merge pull request #1551 from realm/write-cache
Split cache into read cache and write cache
2017-05-24 17:38:15 +02:00
Marcelo Fabri 9a5e30e794 Split cache into read cache and write cache 2017-05-24 17:03:51 +02:00
JP Simard eef39595f6 move cache-related Configuration code into Configuration+Cache.swift 2017-05-23 11:22:55 -07:00
JP Simard b19e0de6e4 fix non-root configs logging warnings more than once 2017-05-23 11:22:55 -07:00
JP Simard 8ed4424a9a release 0.19.0-rc.1 2017-05-22 14:09:33 -07:00
JP Simard 572754f707 Merge pull request #1530 from realm/jp-reenable-cache-v2
Reenable cache
2017-05-21 22:43:12 -07:00
Marcelo Fabri 9d67308a92 Merge pull request #1511 from marcelofabri/protocol_property_accessors_order
Add protocol_property_accessors_order rule
2017-05-22 00:37:46 +02:00
J Cheyo Jimenez aef7f81056 Added NoExtensionAccessModifierRule 2017-05-21 23:53:56 +02:00
JP Simard 416384c4a5 Merge pull request #1526 from realm/jp-xcode-reporter-line-fallback
Fall back to line 1 when no line is provided & reporting with `xcode`
2017-05-18 15:42:50 -07:00
JP Simard ca08d6598a move LinterCache+CommandLine to SwiftLintFramework
and make cacheURL an internal member of Configuration
2017-05-18 14:53:39 -07:00
JP Simard 97bdac211a keep a single cache file for all of SwiftLint 2017-05-18 14:45:46 -07:00
JP Simard 690b567421 simplify serialized cache structure 2017-05-18 14:40:40 -07:00
JP Simard bd7169e40c cache each file with its own configuration cache description
to make the cache play nicely with nested configurations
2017-05-18 14:31:33 -07:00
JP Simard 258a80b5cc don't overwrite cache results from different versions 2017-05-18 14:31:33 -07:00