Commit Graph

661 Commits

Author SHA1 Message Date
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
JP Simard 3fffe7bd41 Merge pull request #765 from masters3d/todo-statement
Add content of the todo statement to message
2016-08-22 13:15:01 -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 fbe768ec3c assorted simplifications throughout the project 2016-08-21 18:36:16 -07:00
JP Simard 7bb369b92f minor tweaks after merging #757 2016-08-21 16:37:22 -07:00
JP Simard 2725e577f8 Merge pull request #757 from woodhamgh/changingToUseConfiguration
Warning threshold rule
2016-08-21 16:34:49 -07:00
George Woodham 8ce4af6f54 Changes after PR feedback. Removed ?? nil as this does nothing. Removed some redundant conditional 2016-08-22 11:21:29 +12:00
JP Simard 49ef19d1b2 address minor issues from #754 2016-08-21 14:57:12 -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
George Woodham 6b9bb2e98d Added function to create an error when the threshold has been broken 2016-08-15 10:47:29 +12: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
Matthew Ellis 07313c09a5 Add JUnit reporter 2016-07-22 20:50:58 +01:00
George Woodham 4a3987a9b4 Using configuration parameter instead of new rule 2016-07-19 16:35:40 +12: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
J Cheyo Jimenez 4011535c50 added autocorrect to LeadingWhiteSpace 2016-07-10 14:34:17 -07:00
JP Simard dd8ea842a8 Merge pull request #693 from bootstraponline/custom_rules_included
Add included to custom rules
2016-06-23 09:10:44 -07:00
bootstraponline 0d78cdb0c2 Add included to custom rules 2016-06-23 10:21:45 -04:00
Eric-Paul Lecluse 572d4dfb48 Fix spelling for declarationReturns function (was delcaration) 2016-06-23 11:34:30 +02:00
Sarr Blaise 8218564bfa Update tests 2016-06-11 16:43:56 +02:00
Sarr Blaise e7a2263ab0 Handle variable names in LegacyConstructorRule autocorrect 2016-06-11 16:42:51 +02:00
JP Simard a40c6b6784 release 0.11.1 2016-06-10 20:05:57 -07:00
Blaise Sarr 4992084bbe Remove extraneous argument label in intersects function 2016-06-10 19:02:17 +02:00
Blaise Sarr 42f95be3ea Remove extraneous argument label in contains function 2016-06-10 19:02:17 +02:00
Blaise Sarr 8870dddc8d Remove extraneous argument label in contains function 2016-06-10 19:02:17 +02:00
Blaise Sarr c11977ef65 Remove extraneous argument label in intersect function 2016-06-10 19:02:17 +02:00
Blaise Sarr 85198ee891 Remove extraneous argument label in union function 2016-06-10 19:02:17 +02:00
JP Simard 7f1d44d868 minor tweaks to #688 2016-06-10 09:14:52 -07:00
Michael Skiba b2ad5fc5fb Code Review Updates
- renamed "standard" to "default"
- Updated formatting per code review
- added note to changelog
2016-06-09 21:57:35 -04:00
Michael Skiba d0247a382f added autocorrect support to the uncuddled else rule 2016-06-09 14:37:09 -04:00
Michael Skiba 7a56338eb0 uncuddled else folded into statement position
still needs autocorrect
2016-06-09 14:35:34 -04:00
Michael Skiba 314f7db3e4 added base cuddled else rule 2016-06-09 14:35:34 -04:00
JP Simard 3ec8fee271 release 0.11.0 2016-06-08 15:30:33 -07:00
Norio Nomura 07f25eb00d Fix minor wording
[ci skip]
2016-06-08 15:24:36 +09:00