Commit Graph

1125 Commits

Author SHA1 Message Date
JP Simard 42c8db92b1 fix a number of uncaught colon spacing violations 2017-07-10 22:57:13 -07:00
JP Simard 2a11835c1f fix overly-indented return statement in TypeNameRule.swift 2017-07-10 16:14:38 -07:00
JP Simard 7904f92ca9 fix under-indentation in CustomRules.swift 2017-07-10 16:03:42 -07:00
JP Simard e54dcae5b7 enable let_var_whitespace rule in SwiftLint itself
and refactor code in a few places to conform to the rule
2017-07-10 15:42:55 -07:00
David Catmull b50f7af5ad Fix whitespace for self-linting 2017-07-10 14:34:11 -07:00
David Catmull 8284f21686 Also skip @available 2017-07-10 14:34:11 -07:00
David Catmull 878a8aeec3 Skip conditional compilation directives 2017-07-10 14:34:11 -07:00
David Catmull eac773e30b Give up on the accessor case for now 2017-07-10 14:34:11 -07:00
David Catmull 3adff56097 Update CHANGELOG 2017-07-10 14:34:11 -07:00
David Catmull 94648574fa Trying to make it work with accessors 2017-07-10 14:34:11 -07:00
David Catmull 570a55f118 Fixes from real testing 2017-07-10 14:34:11 -07:00
David Catmull 85e331695b Make it work with multiline statements and comments 2017-07-10 14:34:11 -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 a9870d4d47 Rename rule 2017-07-03 23:39:12 +02:00
Marcelo Fabri 1a73358c85 Refactoring rule 2017-07-03 23:38:09 +02:00
Marcelo Fabri c3e4cac860 Fixes after rebase 2017-07-03 23:09:26 +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 5012211d3d Add RuleKind 2017-07-02 15:50:16 +02:00
Marcelo Fabri 7ac64e059d Fix tests 2017-07-02 15:08:47 +02:00
Marcelo Fabri d8f5a316f2 release 0.20.1 2017-07-01 20:19:33 +02:00
Marcelo Fabri 7ec710efa8 Make vertical_parameter_alignment_on_call more flexible with multiline literal
Fixes #1643
2017-06-28 12:06:21 +02:00
Marcelo Fabri a69f5e2b6c Make vertical_parameter_alignment_on_call more flexible when closures are used
Fixes #1630
2017-06-24 01:13:47 +02:00
Marcelo Fabri 026dcc5552 Don't trigger vertical_parameter_alignment_on_call on trailing closures 2017-06-23 23:21:54 +02:00
Alexander Lash 84a8816266 Fix typo in FatalErrorMessageRule. 2017-06-22 13:16:57 -07:00
Marcelo Fabri 566789fedf Don't trigger extension_access_modifier when all members are open 2017-06-20 16:33:41 +02:00
Marcelo Fabri 102bca6155 Use validates_start_with_lowercase key on NameConfiguration
Fixes #1626
2017-06-18 20:13:31 +02:00
Cihat Gündüz 7d03a75caa Use the new config options in implementation 2017-06-15 06:07:43 +02:00
Cihat Gündüz ad03a2f2d0 Add ObjectLiteralConfiguration with color/image options
This fixes #1587 by implementing the discussed option config.
2017-06-15 06:07:43 +02:00
Marcelo Fabri 6c9766d01c Fix empty_count false positive in words with "count"
Fix #1622
2017-06-14 17:49:12 +02:00
Marcelo Fabri 561653bcb2 Use prefix(while:) instead of partitioned(by:) 2017-06-14 14:33:04 +02:00
JP Simard 81105b70db fix custom rules not working correctly with comment commands 2017-06-13 22:47:52 +02:00
Otávio Lima 729fab3ffe Add missing triggering cases involving subscript in force_unwrapping rule
Additionally fixes false positives

Fixes: #614, #977
2017-06-13 21:06:15 +02:00
Marcelo Fabri 77588f0f29 PR feedback 2017-06-13 18:38:07 +02:00
변우식 c3fcdf58c3 UnusedClosureParameterRule Crash
- If closure parameter is unicode, it calculate length 1, but its real length is 3. So when running byteRangeToNSRange, it accured crash in String+SourceKitten.swift:131.
2017-06-13 18:38:07 +02:00
Marcelo Fabri fd231b607d Fix existing violations 2017-06-13 16:12:58 +02:00
Marcelo Fabri d123b47317 Add vertical_parameter_alignment_on_call rule 2017-06-13 16:12:58 +02:00
JP Simard b9bec52f11 use function syntax over closure syntax 2017-06-02 14:10:02 -07:00
Marcelo Fabri 332b51a4c2 Trigger violation on declarations with explicit ACL 2017-06-02 21:25:07 +02:00
Marcelo Fabri d1c4502974 Fix issue in ExplicitTopLevelACLRule 2017-06-02 21:24:55 +02:00
Marcelo Fabri 441bece9da Add extension_access_modifier rule 2017-06-02 21:24:55 +02:00
Marcelo Fabri 2ac58aa621 Merge pull request #1598 from realm/bugfix-1597
Fix false positive in empty_enum_arguments rule
2017-06-02 21:08:38 +02:00
Marcelo Fabri 2045780476 Merge pull request #1581 from marcelofabri/fix-1525
Don't trigger `discarded_notification_center_observer` when the observer is returned
2017-06-02 21:06:37 +02:00
Marcelo Fabri 7e256f4abe Fix false positive in empty_enum_arguments rule
Fixes #1597
2017-06-02 13:27:56 +02:00
Anders Hasselqvist 7126d9afa1 Match (Void) as return type in the void_return rule
Update the regexp to match on 0 or 1 occurence of `Void` within
the parentheses.
2017-05-29 16:55:06 +09:00
Marcelo Fabri 9b0e25977a Don't trigger discarded_notification_center_observer when the observer is returned
Fixes #1525
2017-05-28 18:17:07 +02:00
Marcelo Fabri 6fdf80be29 Don't trigger private_unit_test when a method has parameters
Fixes #1532.
2017-05-28 17:54:31 +02:00
Markus Gasser a7db3208cd Ignore overriddes in FunctionParameterCountRule 2017-05-27 09:59:52 +02:00
Ornithologist Coder 5584bd5710 Includes all function declarations 2017-05-26 16:01:18 +02:00