Commit Graph

454 Commits

Author SHA1 Message Date
Bill Bagdon e7bcd72e32 Use implicit member expression 2016-09-01 14:49:43 -04:00
Bill Bagdon 51368ca740 Fix typo 2016-09-01 14:41:39 -04:00
wbagdon a63d47070a Remove whitespace from TODO message 2016-09-01 14:12:52 -04:00
Cristian Filipov f3e26e695a Merge branch 'master' of https://github.com/realm/SwiftLint 2016-08-30 21:57:32 -07:00
Cristian Filipov 8af3ea4af8 Update formatting 2016-08-30 21:50:39 -07:00
Ruotger Deecke c9e09e4190 fix Mark rule case // MARK: -
see https://github.com/realm/SwiftLint/issues/778
2016-08-30 17:09:28 +02:00
Cristian Filipov e402df4b73 Add unit test for issue #786 2016-08-29 21:17:37 -07:00
Cristian Filipov a60bcddc8f Fix #786: Private unit test rule not scoped to tests 2016-08-29 21:03:09 -07:00
J Cheyo Jimenez 651351e3bd fix for verticalspace regex bug 2016-08-28 21:43:42 -07:00
JP Simard 1ed079e814 fix setterAccesiblity typo 2016-08-25 14:36:35 -07:00
rohan 26daddcf0d Adding new configuration for private outlet rules to allow private(set) 2016-08-25 00:08:05 -07:00
dbeard 4cb44013eb Add redundant nil coalesing operator rule 2016-08-24 15:25:26 -07:00
JP Simard f559abb2d5 make Vertical Whitespace rule opt-in
fixes #772
2016-08-24 12:29:24 -07:00
JP Simard 6dfaa0e1cc Merge pull request #761 from cfilipov/cfilipov/add_private_unit_test_rule
Add rule to check for private unit tests
2016-08-23 11:47:33 -07:00
Cristian Filipov caa6d5eb61 Merge remote-tracking branch 'upstream/master' into cfilipov/add_private_unit_test_rule 2016-08-22 23:32:05 -07:00
M. Porooshani c7d0cf04eb Fixed returns doc for init methods issue-557
Signed-off-by: M. Porooshani <porooshani@gmail.com>
2016-08-23 10:27:37 +04:30
JP Simard f737e734fd Merge pull request #768 from realm/mark_rule
Mark rule
2016-08-22 14:14:56 -07:00
JP Simard 98d03753b5 Merge pull request #747 from masters3d/aug6th2016
[new rule] VerticalWhitespace rule
2016-08-22 13:55:48 -07:00
JP Simard 99efae79a3 use File.matchPattern(_:withSyntaxKinds:) in MarkRule 2016-08-22 13:39:30 -07:00
Krzysztof Rodak af0add6a22 - Adding new MarkRule
- Adding test for new `MarkRule`
- Adding contribution to `CHANGELOG` file
- Adding new `MarkRule` to list of all rules in `MasterRuleList`
2016-08-22 13:33:37 -07:00
J Cheyo Jimenez 06d2a39e32 minor tweaks 2016-08-22 13:26:54 -07:00
JP Simard ff553a2d06 Merge pull request #762 from HaloZero/feature/guard-returns-on-new-line
[New Rule] Conditional Returns on Newline
2016-08-22 13:25:59 -07:00
J Cheyo Jimenez 854d1e6714 [new rule] VerticalWhitespace rule 2016-08-22 11:00:40 -07:00
Cristian Filipov 66c2303a92 Merge remote-tracking branch 'upstream/master' into cfilipov/add_private_unit_test_rule 2016-08-21 23:09:16 -07:00
Cristian Filipov dc3c41e627 Add description to AccessControlLevel 2016-08-21 22:53:56 -07:00
J Cheyo Jimenez d3c17947fd Add content of the todo statement to message 2016-08-21 21:41:23 -07:00
rohan 050ccd1797 Alphabetize rule, changing to configuration provider rule 2016-08-21 21:12:21 -07:00
HaloZero 37b4583121 Changing guard to conditional rule 2016-08-21 21:12:03 -07:00
rohan c79cd5c5a5 Adding new rule: Guard Returns on Newline 2016-08-21 21:12:03 -07:00
JP Simard 80b17405c4 Merge pull request #754 from AliSoftware/rule/private_outlets
[New Rule] private_outlet
2016-08-21 14:56:29 -07:00
JP Simard b0e4842910 fix long line I just added 2016-08-21 14:38:53 -07:00
JP Simard d433d5b197 small stylistic tweaks following #743 2016-08-21 14:31:05 -07:00
Cristian Filipov 1970c74c57 Update CHANGELOG and a couple minor changes 2016-08-20 20:43:05 -07:00
Cristian Filipov 809ca17e00 Make lines <=100 characters 2016-08-18 22:50:07 -07:00
Cristian Filipov 0a684da885 Fix rule description 2016-08-18 22:36:06 -07:00
Cristian Filipov ea592e0e98 Add rule to check for private unit tests 2016-08-18 17:17:03 -07:00
Olivier Halligon 17dd91960b [New Rule] private_outlet 2016-08-12 02:52:23 +02:00
J Cheyo Jimenez 4509495f9e Allowing disabling custom rules in code
closes https://github.com/realm/SwiftLint/issues/515
2016-08-08 15:16:52 -07:00
J Cheyo Jimenez 5acae661a2 Fixes custom rule regex
closes https://github.com/realm/SwiftLint/issues/717
closes https://github.com/realm/SwiftLint/issues/726
2016-08-06 15:59:45 -07:00
J Cheyo Jimenez a177bfab13 Removed ConditionalBindingCascadeRule
closes #701
2016-08-02 14:43:51 -07:00
David Rönnqvist 1921b389a0 Fix broken test 2016-08-02 10:13:17 +02:00
David Rönnqvist 4ede24a330 Fix lint warnings ;) 2016-08-02 09:16:16 +02:00
David Rönnqvist 93d3c48509 Add Cocoa’s legacy zero constants to the rule
NSZeroPoint, NSZeroRect, NSZeroSize
2016-08-02 08:32:03 +02:00
David Rönnqvist 62f1090f69 Add Cocoa’s legacy constructors to the rule
NSMakePoint, NSMakeSize, NSMakeRect, NSEdgeInsetsMake
2016-08-02 08:30:20 +02:00
David Rönnqvist 340ec61257 Add rule for legacy Cocoa geometry functions
This mirrors the Legacy CGGeometry rule, but for NSWidth, NSHeight, …, NSInsetRect, NSOffsetRect, …, NSPointInRect, etc.
2016-08-02 08:28:33 +02:00
freak4pc c963aad389 Fixed flexible_right_spacing to Bool instead of Int. 2016-07-28 09:35:29 +03:00
freak4pc 3a5eedfa5a ColonRule allows setting flexible_right_spacing.
Resolves issue realm/SwiftLint#730.
2016-07-26 23:21:45 +03:00
dbeard b30a63bde3 Fix force unwrap false positive. Fixes #721 2016-07-12 10:30:43 -07:00
J Cheyo Jimenez 859faed200 update formatting & removed redundant code 2016-07-11 18:08:40 -07:00
J Cheyo Jimenez 4a0714acd9 update to also remove spaces 2016-07-10 15:28:49 -07:00