Marcelo Fabri
1aff588043
Fix tests on Swift 2.3
2017-03-18 16:57:44 +01:00
Kim de Vos
ec25033b73
Ordered by name
2017-03-18 16:57:44 +01:00
Marcelo Fabri
fac653ed67
Fix header
2017-03-18 16:57:44 +01:00
Kim de Vos
3f4720ef22
Linted file
2017-03-18 16:57:44 +01:00
Kim de Vos
87f0170f3c
Fixed the tests
2017-03-18 16:57:43 +01:00
Kim de Vos
90d8a44bbb
Added more var types and added more test cases
2017-03-18 16:57:43 +01:00
Kim de Vos
d475ed0241
Changed rule name from TypeInterfaceRule to ExplicitTypeInterfaceRule
2017-03-18 16:57:43 +01:00
Kim de Vos
d1558eb4bf
Made rule optin
2017-03-18 16:57:10 +01:00
Kim de Vos
0cbeab2c6d
Added TypeInterfaceRule to the MasterRuleList
2017-03-18 16:57:10 +01:00
Kim de Vos
6a182ca094
Code cleaning
2017-03-18 16:57:10 +01:00
Kim de Vos
568d1dbfc7
Code cleaning
2017-03-18 16:57:10 +01:00
Kim de Vos
7b271296d3
Added Typeinterface rule
2017-03-18 16:57:10 +01: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