Marcelo Fabri
12996ef1f5
release 0.27.0
2018-07-31 09:28:44 -07:00
Marcelo Fabri
88f4c8be6f
Minor changes after merging #2318
2018-07-30 00:12:02 -07:00
Marcelo Fabri
f7f3f3dee5
Merge pull request #2318 from mattremmel/nef10_missing_docs
...
Added back 'missing_docs' (Nef10)
2018-07-30 00:05:05 -07:00
Marcelo Fabri
6ea0a5c4a1
Merge pull request #2316 from realm/ks/exclude-glob
...
Add support for globs in excluded paths
2018-07-29 22:46:00 -07:00
Marcelo Fabri
0820cd2976
Merge pull request #2313 from Dschee/explicit-type-interface
...
Add option allow_redundancy to rule explicit_type_interface
2018-07-29 22:45:17 -07:00
Marcelo Fabri
744403cedb
Merge pull request #2281 from maciesielka/feature/allow-first-closure-multiline-args
...
add "allow_first_closure_on_same_line" configuration to "multiline_arguments"
2018-07-29 22:41:12 -07:00
Mike Ciesielka
044d9168d6
Disable "line_length" to make exception for console output of lengthy configuration name "only_enforce_after_first_closure_on_first_line"
2018-07-28 15:49:36 -04:00
Michael Ciesielka
7efce91996
Rename “allow_first_closure_on_same_line” configuration for “multiline_arguments” rule to “only_enforce_after_first_closure_on_first_line” to increase clarity.
2018-07-28 15:28:34 -04:00
Cihat Gündüz
b4f960bd48
Add config option allow_redundancy
2018-07-27 11:12:46 +02:00
Cihat Gündüz
33b7213dca
Make explicit_type_interface rule compatible with redundant_type_annotation
2018-07-27 11:12:46 +02:00
Cihat Gündüz
d616282892
Add failing test for false positive in rule explicit_type_interface
2018-07-27 11:12:46 +02:00
Keith Smiley
2515c0f936
flatMap it
2018-07-26 10:21:13 -07:00
Keith Smiley
97dc3b69e5
Rename function
2018-07-26 10:21:13 -07:00
Keith Smiley
b21307530c
Move glob to its own struct
2018-07-26 10:21:13 -07:00
Keith Smiley
a807d723e4
Add support for globs in excluded paths
2018-07-26 10:21:13 -07:00
Marcelo Fabri
8197236995
Fix autocorrection for redundant_type_annotation
...
Fixes #2314
2018-07-26 07:54:35 -07:00
Matthew Remmel
89adc4224c
Patch created from Nef10 ( https://github.com/Nef10/SwiftLint.git ) missing_docs branch, to remove merge commits that were preventing merging the PR ( https://github.com/realm/SwiftLint/pull/2172 )
2018-07-25 11:34:53 -04:00
Keith Smiley
6eedf5d73c
Add private_only to prefixed_toplevel_constant ( #2315 )
...
* Add private_only to prefixed_toplevel_constant
This allows users to opt in to only validate top level constants have
the given prefix if the constant is private or fileprivate.
2018-07-24 12:38:01 -07:00
Marcelo Fabri
8a686dac2a
Merge pull request #2310 from Dschee/file-name
...
Add options `prefix_pattern` and `suffix_pattern` to `file_name` rule
2018-07-24 09:46:28 -07:00
Cihat Gündüz
f2540cc53d
Combine nested if-lets to single if-let
2018-07-24 17:37:37 +02:00
Cihat Gündüz
bacc3ddaca
Add default suffixPattern value directly in configuration initalizer
2018-07-24 17:34:17 +02:00
Cihat Gündüz
1c70667831
Remove hard-coded suffix style
2018-07-24 16:46:56 +02:00
Cihat Gündüz
e3278ff8e5
Update Changelog + Fix lint issue
2018-07-24 16:38:45 +02:00
Cihat Gündüz
c02dd17155
Add prefix_pattern and suffix_pattern options to file_name rule
2018-07-24 16:35:38 +02:00
Cihat Gündüz
1452da4129
Remove explicit types after feedback from @marcelofabri
2018-07-24 13:03:54 +02:00
Cihat Gündüz
dc44fbcac3
Add tests for if_only configuration option
2018-07-24 13:02:30 +02:00
Cihat Gündüz
94c14c73bc
Add exception for types ending with Extension
2018-07-23 11:47:52 +02:00
Cihat Gündüz
51a9a62159
Add if_only option to rule conditional_returns_on_newline
2018-07-23 10:22:28 +02:00
Marcelo Fabri
f2d14e7c5a
redundant_optional_initialization rule now lints local variables
...
Fixes #2233
2018-07-21 21:35:24 -07:00
Marcelo Fabri
6937f35ae4
Fix false positive on attributes rule
...
Fixes #2297
2018-07-21 18:18:25 -07:00
Marcelo Fabri
883a8dd0dd
Merge pull request #2274 from marcelofabri/automatic-rule-tests
...
Split RulesTests into several test cases, generating them automatically
2018-07-21 18:13:55 -07:00
Marcelo Fabri
37fe0f82d8
Add tests for RedundantTypeAnnotationRule
2018-07-21 17:39:29 -07:00
Marcelo Fabri
8aadb802fb
Split RulesTests into several test cases, generating them automatically
2018-07-21 17:23:08 -07:00
Norio Nomura
093b99bea7
Fix LinterCacheTests.testDetectSwiftVersion for Swift 4.2
2018-07-20 08:30:25 +09:00
Marcelo Fabri
90a2134a18
Merge pull request #2239 from sjavora/master
...
Opt-in rule to check for redundant type annotations
2018-07-19 08:24:51 -07:00
Marcelo Fabri
84abd41a1a
Merge pull request #2285 from ornithocoder/anyobject
...
Add opt-in anyobject_protocol rule
2018-07-19 08:19:42 -07:00
Ornithologist Coder
95fb5ab759
Change minimum Swift compiler version to 4.1
...
Because it doesn't work on Swift 4.0 for Linux.
2018-07-11 08:39:48 +02:00
Ornithologist Coder
b6698c0da4
Fix Linux build
2018-07-11 08:39:48 +02:00
Ornithologist Coder
0730da975f
Revert "Use regular expression instead of AST to find 'class' conformance"
...
Using regular expression instead of AST to find 'class' conformance
didn't work on the Linux. Reverting the commit since it had no effect on
the final result.
This reverts commit fce9f599a7f5c77afe0ac3a4254cd6909410f0ab.
2018-07-11 08:39:47 +02:00
Ornithologist Coder
62ab36b883
Use regular expression instead of AST to find 'class' conformance
2018-07-11 08:39:47 +02:00
Ornithologist Coder
c5dd67e433
Make anyobject_protocol opt-in
2018-07-11 08:39:41 +02:00
Daniel Metzing
8d7ac963bc
Append failure reason to description
2018-07-09 21:06:15 +02:00
Ornithologist Coder
9f3cb13389
Add @objc example
2018-07-08 09:50:52 +02:00
Ornithologist Coder
e8d3d1c08e
Make anyobject_protocol correctable
2018-07-07 21:15:57 +02:00
Ornithologist Coder
2161515d36
Set minimum Swift compiler version to 4
2018-07-07 19:22:10 +02:00
Ornithologist Coder
ec06fe6e82
Change the place where the violation is triggered
2018-07-07 19:01:55 +02:00
Ornithologist Coder
01dc00f576
Add default rule anyobject_protocol
...
This commit implements #2283 .
2018-07-07 18:54:09 +02:00
Mike Ciesielka
81ee9904b3
Add "allow_first_closure_on_same_line" configuration to "multiline_arguments" rule as proposed in #1896 . add tests.
2018-07-05 11:44:16 -07:00
Marcelo Fabri
1c8d5a49a8
Merge pull request #2257 from marcelofabri/format-dont-touch
...
Don’t overwrite file when formatting if not needed
2018-06-24 13:31:01 -07:00
Marcelo Fabri
8c5f81f3be
Merge pull request #2264 from marcelofabri/closure-rules-swift-4.2
...
Fix closure-related rules when using Swift 4.2
2018-06-24 11:46:41 -07:00