Commit Graph

1383 Commits

Author SHA1 Message Date
Nealon Young 3842854fd7 Add UIOffsetMake to legacy_constructor rule 2018-04-01 23:26:12 -07:00
Twig b296e494ad Fixed severity and description parameters 2018-03-29 13:47:05 -04:00
John Szumski 28989be7ee Fix redundant_void_return rule autocorrect when preprocessor macros are present.
Fixes #2115
2018-03-27 20:41:24 -04:00
John Szumski 04666f1ae4 Fixed typo. 2018-03-27 20:31:39 -04:00
Marcelo Fabri 0982045346 Merge pull request #2001 from ornithocoder/optional_collection
Adds opt-in rule discouraged_optional_collection
2018-03-27 08:09:31 -07:00
Marcelo Fabri d8749f9acb Fix autocorrection for several rules 2018-03-26 22:46:46 -07:00
Marcelo Fabri 8f56ce9d11 Fix empty_enum_arguments rule autocorrection 2018-03-26 21:53:00 -07:00
Ornithologist Coder 3e5f7c5523 Simplifies guard logic 2018-03-26 00:26:14 +02:00
Ornithologist Coder 61e79976d5 Renames method 2018-03-26 00:26:14 +02:00
Ornithologist Coder 15a521ae17 Adds mathematical intervals (w/ lower and upper bounds) 2018-03-26 00:26:14 +02:00
Ornithologist Coder dcdd50a973 Fixes typo in documentation 2018-03-26 00:26:14 +02:00
Ornithologist Coder ac149d296e Adds examples to String extension 2018-03-26 00:26:14 +02:00
Ornithologist Coder 5c201149ad Simplifies guard statements 2018-03-26 00:26:14 +02:00
Ornithologist Coder 53b0fff155 Adds more examples 2018-03-26 00:26:14 +02:00
Ornithologist Coder 16085d3ebb Returns the Range of the entire optional collection 2018-03-26 00:26:14 +02:00
Ornithologist Coder 6056b3e734 Moves examples to own file
and adds more examples.
2018-03-26 00:26:14 +02:00
Ornithologist Coder 190a39aadc Uses AST instead of regular expressions 2018-03-26 00:26:13 +02:00
Ornithologist Coder 86727aca5f Adds extra example 2018-03-26 00:26:13 +02:00
Ornithologist Coder 6e1630e888 Improves regular expression 2018-03-26 00:26:13 +02:00
Ornithologist Coder faee8c935b Adds opt-in rule discouraged_optional_collection 2018-03-26 00:26:13 +02:00
Frederick Pietschmann 0ad2488d7e Add all keyword 2018-03-21 07:42:46 +01:00
Marcelo Fabri 8e3b929d44 Fix colon autocorrect when preprocessor macros are present
Fixes #2099
2018-03-17 18:51:30 -07:00
Marcelo Fabri e810689ca7 Make legacy_constructor rule more reliable
Fixes #2098
2018-03-17 18:19:46 -07:00
Marcelo Fabri 7b34b4b92b Merge pull request #2094 from notorca/master
Fix for crash on Linux on sources with surrogate characters
2018-03-17 16:00:03 -07:00
Marcelo Fabri bbe2923263 Update rule name 2018-03-17 13:20:43 -07:00
Marcelo Fabri 6b00950d43 Simplify implementation 2018-03-17 12:55:05 -07:00
Daniel Metzing 96d29817b4 Add untyped_error_in_catch opt-in rule 2018-03-17 12:54:51 -07:00
Cyril Lashkevich 10ba712748 Fix for crash on Linux on sources with surrogate characters
Because of the bug https://bugs.swift.org/browse/SR-5971 SwiftLint
crashes when linting on Linux files like https://github.com/xmartlabs/Eureka/blob/master/Example/Example/ViewController.swift
2018-03-17 19:51:24 +01:00
Marcelo Fabri d2c43020fc Merge pull request #2069 from donileo/fix/todos-lint-message
Fix TODOs violation message
2018-03-17 11:50:07 -07:00
Davide Sibilio 5c8d6069b6 Implemented empty_string rule (#2064)
Added empty_string rule
2018-03-17 11:47:04 -07:00
Adonis Peralta 9fff3d3472 Fix TODOs violation message
Change lint message for TODOs/FIXMEs to state that they should be
"resolved"/implemented instead of "avoided"/not used.
2018-02-25 22:28:58 -05:00
rounak 639522163f Improve console description for ExplicitTypeInterfaceConfiguration
Add more tests for ExplicitTypeInterface
2018-02-25 19:18:38 -08:00
rounak e515f43424 Add separate test files for ExplicitTypeInterfaceRule & Config
Respond to PR comments
2018-02-25 19:18:38 -08:00
Rounak 975bd7b86e Fix linter warnings 2018-02-25 19:18:38 -08:00
Rounak 2a7abcf542 Add new configuration for Explicit Type Interface Rule to allow exempting certain types of variables
Signed-off-by: Rounak <rounak91@gmail.com>
2018-02-25 19:18:38 -08:00
Marcelo Fabri cc38e33013 Fix some cases where colon rule wouldn't autocorrect dictionary literals
Fixes #2050
2018-02-14 22:13:53 -08:00
Marcelo Fabri 4eb749c870 Fix false positive in force_unwrapping when returning collection from function
Fixes #2042
2018-02-11 17:34:15 -08:00
Marcelo Fabri 8c2c4b0a01 Fix false positive in empty_enum_arguments rule when using closures
Fixes #2041
2018-02-10 20:21:58 -08:00
Marcelo Fabri 03b4d6b020 Fix violations introduced when linting with Swift 4.1
Part of #2021
2018-02-03 22:23:48 -08:00
Marcelo Fabri d4346d2d37 Merge pull request #2013 from ornithocoder/optional_boolean
Adds opt-in discouraged_optional_boolean rule
2018-02-03 15:53:10 -08:00
Marcelo Fabri 4c8df19c84 Use SourceKit to validate associatedtype and typealias in type_name rule when linting with Swift 4.1
Part of #2021
2018-01-26 22:08:59 -08:00
Marcelo Fabri b204c18d04 Improve type_name rule violations to be positioned on the type name
Part of #2021
2018-01-25 20:28:33 -08:00
Marcelo Fabri 5d7346b8a2 Don’t validate local vars in let_var_whitespace rule
As part of #2021
2018-01-25 20:00:31 -08:00
Marcelo Fabri 203d2439bd Merge pull request #2015 from realm/mf-explict-acl-false-positives
Fix false positives in `explicit_acl` rule
2018-01-25 09:43:25 -08:00
Marcelo Fabri 19c8536500 Fix false negative in unneeded_parentheses_in_closure_argument
Fixes #2017
2018-01-24 14:07:56 -08:00
Marcelo Fabri a4f701b96e Fix false positives in explicit_acl rule
Fixes #2014
2018-01-22 11:22:49 -08:00
Ornithologist Coder d31550f61f Updates examples 2018-01-22 07:29:04 +01:00
Ornithologist Coder 9787cf01d4 Adds more triggering examples 2018-01-22 01:20:57 +01:00
Ornithologist Coder f485be257d Adds opt-in discouraged_optional_boolean rule 2018-01-22 00:44:23 +01:00
Manabu Nakazawa daeb13c2bb Add testcases to ColonRule.description 2018-01-16 01:45:49 +09:00