Commit Graph

1580 Commits

Author SHA1 Message Date
Marcelo Fabri a4aeaedbe0 Add tests and improve behavior 2017-07-18 17:57:59 +02:00
Jamie Edge 04c487929e Add support for optional 'error' severity level in configurations. 2017-07-18 16:50:26 +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
Marcelo Fabri 60229853cd Add test for invalid custom rule handling 2017-07-17 11:48:01 +02:00
Jamie Edge 51389083c9 Fix all custom rules not being applied when any rule is configured incorrectly. 2017-07-17 11:35:08 +02:00
Marcelo Fabri 89d92d8f2c Don't trigger implicit_getter when attributes are present
Fixes #1309, #1589
2017-07-14 22:08:51 +02:00
JP Simard 93b130f145 Merge pull request #1672 from marcelofabri/bugfix-1669
Fix false positive on redundant_discardable_let rule when using while statements
2017-07-12 16:39:54 -07:00
JP Simard 893d667585 Merge pull request #1668 from realm/jp-update-dependencies
update dependencies, mostly for SourceKitten 0.18
2017-07-12 15:22:08 -07:00
Marcelo Fabri f4993d0ff2 Fix false positive on redundant_discardable_let rule when using while statements
Fix #1669
2017-07-12 23:56:21 +02:00
JP Simard 6e6423d0d8 prevent invalid ranges from being formed in LetVarWhitespaceRule 2017-07-12 13:40:43 -07:00
JP Simard 7acacf6bdb update dependencies, mostly for SourceKitten 0.18 2017-07-12 10:11:27 -07:00
JP Simard 618fd4ef4c prefer type inference 2017-07-10 22:57:13 -07:00
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 57d4dc7c52 change an empty #if body for #if ! 2017-07-10 15:56:02 -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 5ce67cb9ed Merge pull request #1646 from realm/bugfix-1643
Make vertical_parameter_alignment_on_call more flexible with multiline literal
2017-07-01 19:49:02 +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 68c1f3c1ab Fix configuration issue when using custom paths
Fixes #1631
2017-06-24 22:54:10 +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