Marcelo Fabri
f074ff7f47
release 0.22.0
2017-08-30 14:38:04 -03:00
Erik Strottmann
6fca21cdf6
Add multiple_closures_with_trailing_closure rule
...
Multiple Closures with Trailing Closure rule disallows trailing closure
syntax when passing more than one closure argument to a function.
Fixes #1801 .
2017-08-27 22:03:22 -07:00
Maz Jaleel
03676c9772
Add No Grouping Extension Rule ( #1789 )
2017-08-27 22:10:05 +01:00
Marcelo Fabri
54f9c22c60
Fix existing violations
2017-08-26 10:05:56 -03:00
Marcelo Fabri
d082f96284
Add pattern_matching_keywords rule
2017-08-26 10:05:56 -03:00
Maz Jaleel
5335060935
update rule name
2017-08-26 07:15:54 +04:00
Maz Jaleel
742bb2fd8f
initial rule implementation
2017-08-26 07:07:06 +04:00
JP Simard
d830392c95
make sourcery
2017-08-22 09:43:44 -07:00
JP Simard
2c94e54bd6
Fix 'is_disjoint' violations in SwiftLint itself
2017-08-21 16:00:34 -07:00
JP Simard
ef3df839ce
Add is_disjoint rule
...
to encourage using `Set.isDisjoint(with:)` over `Set.intersection(_:).isEmpty`.
2017-08-21 16:00:33 -07:00
JP Simard
b39b369d12
Fix setting Swift version when caching.
...
See https://github.com/realm/SwiftLint/pull/1790/files#r134323431 .
2017-08-21 13:28:43 -07:00
Marcelo Fabri
f4690859b1
Merge pull request #1790 from marcelofabri/swift-version-cache
...
Invalidate cache when Swift version changes
2017-08-21 11:03:00 +02:00
Marcelo Fabri
0a07628d8c
Invalidate cache when Swift version changes
2017-08-21 00:19:04 +02:00
Marcelo Fabri
70488c9f0c
Add SuperfluousDisableCommandRule
2017-08-20 23:27:48 +02:00
JP Simard
5c1c9389c7
produce an error when a 'disable' command doesn't silence any rules
2017-08-20 23:27:48 +02:00
Ornithologist Coder
c707adb0d8
Add quick_discouraged_call opt-in rule
...
Implements #1781 (Method calls and object initialization inside Quick
'describe' and 'context' blocks can be harmful)
2017-08-18 11:24:02 +02:00
Marcelo Fabri
d4248e9b12
Fix tests on Linux ✅
2017-08-17 20:36:44 +02:00
Ornithologist Coder
df6813f76a
Add XCTestCase
2017-08-16 16:00:26 +02:00
Ornithologist Coder
cf545c6892
Add quick_single_spec opt-in rule
...
Implements #1779 (Limit number of QuickSpecs in file to one).
2017-08-16 16:00:20 +02:00
JP Simard
5de980c042
make internal Region members public
2017-08-08 09:10:31 -07:00
Ornithologist Coder
da823f53d7
Add joined_default_parameter opt-in rule
...
to discourage explicit usage of the default separator. Implements #1093 .
2017-08-03 13:41:00 +02:00
Stéphane Copin
3ad4842bcd
Small changes and refactoring based on github Feedback
2017-08-02 13:05:26 -07:00
Stéphane Copin
9f1f454cf9
Refactor the way Configuration objects are created with regards to rules
2017-08-02 13:05:26 -07:00
Stéphane Copin
97c1dcd0fa
Add support for nested configuration
...
Original commit here: https://github.com/realm/SwiftLint/commit/9eef125245e43a8ff333d45abd13f9f0177d7258
Significant modifications made by @jpsim
2017-08-02 13:05:26 -07:00
Ornithologist Coder
68c489069c
Add xctfail_message_rule rule ( #1370 )
2017-08-02 14:29:54 +02:00
Marcelo Fabri
e811218443
release 0.21.0
2017-08-02 00:18:04 +02:00
Ornithologist Coder
1726573902
Merge branch 'master' into discourage_init
2017-08-01 19:58:19 +02:00
Ornithologist Coder
13c7e6e1d6
Add discouraged_direct_init opt-in rule
...
Rule requested by @Noobish1 on issue #1306 .
2017-08-01 17:23:39 +02:00
Marcelo Fabri
33ca7d71f7
Customize YAML loading for configurations
...
This enables:
1. Using environment variables inside a configuration (fixes #1512 )
2. Treating reserved keywords as strings (`yes`, `no`, `on` and `off`) instead of booleans (fixes #1424 )
2017-08-01 15:25:27 +02:00
Marcelo Fabri
a9de74f91a
Add block_based_kvo rule
...
Fixes #1714 .
2017-07-27 21:05:57 +02:00
Marcelo Fabri
7c5da2f316
Add four to SwiftVersion
2017-07-27 14:28:40 +02:00
Marcelo Fabri
0bf1179c83
Validating trailing closure even if there's only one param
2017-07-24 00:50:31 +02:00
Marcelo Fabri
a1f3646a9b
Add trailing_closure rule
...
Fixes #54
2017-07-24 00:50:31 +02:00
Marcelo Fabri
c01f4bd19f
Enable extension_access_modifier rule
2017-07-21 21:08:52 +02:00
Marcelo Fabri
febc9c4017
Merge pull request #1695 from realm/mf-bugfix-1694
...
Fix crash when using --config and --path with a Swift file
2017-07-19 19:17:14 +00:00
Marcelo Fabri
663081cfbd
Fix crash when using --config and --path with a Swift file
...
Fixes #1694
2017-07-19 20:53:55 +02:00
Marcelo Fabri
a008fbba8c
Add unneeded_parentheses_in_closure_argument rule
2017-07-18 23:22:30 +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
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
1a73358c85
Refactoring rule
2017-07-03 23:38:09 +02:00
J Cheyo Jimenez
e72d09bc31
added fileprivateRule
2017-07-03 01:09:42 +02:00