Siarhei Fedartsou
2e579aaa6c
Add configuration for implicitly_unwrapped_optional_rule, add triggering on complex types(AnyCollection<Int!> for ex.)
2017-03-19 00:27:13 +03:00
Siarhei Fiedartsou
d25ec1f1fc
Make implicitly_unwrapped_optional opt-in
2017-03-18 00:45:49 +03:00
Siarhei Fedartsou
fe8359a81d
Add implicitly_unwrapped_optional rule
2017-03-18 00:01:32 +03:00
t_hayashi
aa1be945fa
Add test case
2017-03-12 21:44:39 +09:00
t_hayashi
55cff0d593
Fix false negative on unused_closure_parameter rule.
2017-03-11 21:58:59 +09:00
JP Simard
1d27ae1549
Merge pull request #1299 from mlwelles/cyclomatic_complexity_ignores_case_statments
...
Cyclomatic complexity ignores case statments
2017-03-10 15:19:46 -08:00
JP Simard
1e0e84e47a
Merge pull request #1340 from sora0077/nesting-configuration
...
Add configuration for NestingRule
2017-03-10 15:14:50 -08:00
JP Simard
3f880432c3
Merge pull request #1331 from marcelofabri/bugfix_1304
...
Fix `todo` rule messages when the comment is not on a new line
2017-03-09 15:58:08 -08:00
JP Simard
edc8262ef6
import Foundation from TodoRule.swift
2017-03-09 15:32:02 -08:00
JP Simard
34f40c861f
make regex cache thread-safe
2017-03-09 12:10:40 -08:00
t_hayashi
a8faa318bf
Modify to keep original violation message
2017-03-04 01:55:35 +09:00
t_hayashi
6872018862
Add configuration for NestingRule
2017-03-04 01:14:30 +09:00
Michael Welles
eff055109f
Merge branch 'master' of github.com:realm/SwiftLint into cyclomatic_complexity_ignores_case_statments
2017-03-02 15:35:06 -05:00
Marcelo Fabri
1fd47dc008
Fix todo rule messages when the comment is not on a new line
...
Fixes #1304
2017-02-26 01:35:52 -03:00
Michael Welles
a6175faad0
made adjustments per PR feedback, added tests for cyclomatic complexity configuration class
2017-02-15 11:20:17 -05:00
Marcelo Fabri
f7ac3f168f
Accept global and local variables in implicit_getter rule
2017-02-15 11:19:16 -05:00
Marcelo Fabri
69ec69ec69
Add redundant_discardable_let rule
...
Fixes #1232
2017-02-15 11:18:36 -05:00
Marcelo Fabri
fe4aa1e791
Refactor elements to not be optional
2017-02-15 11:18:36 -05:00
Natan Rolnik
ef28e204e2
Allow displaying only enabled rules in RulesCommand
2017-02-15 13:09:43 +02:00
Marcelo Fabri
754887d342
Accept global and local variables in implicit_getter rule
2017-02-14 12:55:20 -02:00
Marcelo Fabri
0abc114895
Add redundant_discardable_let rule
...
Fixes #1232
2017-02-10 11:46:13 -08:00
Michael Welles
d561b1acf6
Merge branch 'master' of github.com:realm/SwiftLint into cyclomatic_complexity_ignores_case_statments
2017-02-10 11:17:37 -05:00
Marcelo Fabri
f90b25e2e1
Refactor elements to not be optional
2017-02-09 17:59:31 -08:00
Marcelo Fabri
55457ceeae
Fix closure_end_indentation false positive
...
Fixes #1216
2017-02-09 17:07:41 -08:00
Marcelo Fabri
b26bb95d25
unused_enumerated should check if only index is used
...
Fixes #1278
2017-02-09 17:03:15 -08:00
Marcelo Fabri
d5b0d1b208
Reimplement switch_case_on_newline as an ASTRule
...
Fixes #1268
2017-02-09 16:37:26 -08:00
JP Simard
fa3ab00183
fix merge
2017-02-09 15:53:16 -08:00
JP Simard
8c4bfcc58d
Merge branch 'master' into identifier-rule
...
* master: (44 commits)
make valid_docs rule opt-in
update LineLengthConfiguration.consoleDescription after #1264
small refactoring after #1264
fix for_where violation in CompilerProtocolInitRule.swift
Add for_where rule
explicitly set podspec dependency versions
Add changelog entry
Fix existing violations
Navigate substructure even for different kinds
Small style changes
Modified so that kinds(forByteOffset:) does not require a separate filter() setup of the results
Changes from PR feedback. Long comments following code in a line will now trigger, configuration will now fail if invalud value types are set for options
Fix false positive on large_tuple when using generics inside a tuple
fix wording in changelog
disable docs rules in Swift 2.3 and later
Fix deadlock when stderr fills up OS buffer
small Danger/oss-check improvements
Fix links
Fix cleanup
Always use Xcode reporter on oss-check
...
2017-02-09 15:50:06 -08:00
JP Simard
35ce34d919
make valid_docs rule opt-in
2017-02-09 15:15:30 -08:00
JP Simard
a10156b5eb
update LineLengthConfiguration.consoleDescription after #1264
2017-02-09 14:42:10 -08:00
JP Simard
69f885cf08
small refactoring after #1264
2017-02-09 14:42:09 -08:00
JP Simard
7ab9855831
fix for_where violation in CompilerProtocolInitRule.swift
2017-02-09 14:42:09 -08:00
Marcelo Fabri
f0c8fba3b6
Add for_where rule
...
Fixes #1228
2017-02-09 13:43:58 -08:00
Michael Welles
42a7186e45
Added ignores case statements as option to cyclomatic complexity rule
2017-02-09 15:09:49 -05:00
Marcelo Fabri
ecc3c85f68
Fix existing violations
2017-02-06 22:04:05 -02:00
Marcelo Fabri
ac4ea29150
Navigate substructure even for different kinds
2017-02-06 22:04:05 -02:00
Marcelo Fabri
ad10f81a44
Merge pull request #1259 from marcelofabri/bugfix_1257
...
Fix false positive on large_tuple when using generics inside a tuple
2017-02-06 22:01:33 -02:00
Marcelo Fabri
2300ae3daf
Small style changes
2017-02-06 21:59:30 -02:00
Michael Welles
15a7a88297
Modified so that kinds(forByteOffset:) does not require a separate
...
filter() setup of the results
2017-02-06 15:58:45 -05:00
Michael Welles
7d48153d4a
fixed merge conflicts
2017-02-06 15:38:19 -05:00
Michael Welles
c9ff0aa07f
Changes from PR feedback. Long comments following code in a line will now trigger, configuration will now fail if invalud value types are set for options
2017-02-06 15:33:44 -05:00
Marcelo Fabri
4037b932f6
Fix false positive on large_tuple when using generics inside a tuple
...
Fixes #1257
2017-02-03 21:43:34 -02:00
JP Simard
a01cb69a83
disable docs rules in Swift 2.3 and later
2017-02-03 14:42:11 -08:00
Marcelo Fabri
e1bc54d6a2
Merge pull request #1252 from marcelofabri/bugfix_1161
...
Ignore unused_closure_parameter on inline closures
2017-02-02 19:56:03 -02:00
Marcelo Fabri
260dded4e7
Small refactoring
2017-02-02 19:22:49 -02:00
Jon Shier
19912431e8
Update implementation and CHANGELOG markdown.
2017-02-01 15:30:13 -05:00
Jon Shier
7ab14e65f2
Update ClassDelegateProtocolRule to accept AnyObject and NSObjectProtocol.
2017-01-31 19:33:44 -05:00
Michael Welles
ccc840b340
Changed LineLengthConfigurationFlag enum to be an OptionSet struct, per pull request feedback
2017-01-31 13:56:26 -05:00
Michael Welles
04437ed30d
Merge branch 'master' of github.com:realm/SwiftLint into line-length-rule-configurable
2017-01-30 17:55:34 -05:00
Michael Welles
cd843e7fcd
Added "ignores_comments" and "ignores_function_declarations" as boolean options to LineLengthRule
2017-01-30 17:51:56 -05:00