Samuel Susla
32e7963b68
Merge branch 'master' of https://github.com/realm/SwiftLint into trailing-comma-autocorrect
2017-04-09 20:31:02 +02:00
JP Simard
ab664127d5
release 0.18.1
2017-04-06 16:45:34 -07:00
JP Simard
691d79f650
break out FileHeaderConfiguration.consoleDescription
...
to speed up type checking.
It took 18 seconds to type check on Homebrew's Jenkins job when
submitting 0.18.0: https://github.com/Homebrew/homebrew-core/pull/12161
2017-04-06 15:59:24 -07:00
JP Simard
f20e24c6c5
release 0.18.0
2017-04-06 15:16:29 -07:00
JP Simard
4008fa38f1
refactor YamlParser.parse(_:)
2017-04-06 15:10:15 -07:00
JP Simard
e2ecafea5d
refactor hasExplicitType a tiny bit
2017-04-06 14:36:16 -07:00
Jeremy David Giesbrecht
9b4f495507
Fixed false positives in redundant let rule.
2017-04-06 14:35:02 -07:00
Daniel Rodríguez Troitiño
c29cf9a4d0
Avoid pattern matching false positives
...
The rule for unused optional binding was false triggering for pattern matching where the associated value was just an underscore. Additionally, pattern matching mixed with unused optional binding was not triggering in some cases.
New non triggering and triggering examples have been added for the failing cases, and new regular expressions are used to catch all the cases.
Modify the code in `File+SwiftLint` to expose full `NSTextCheckingResult` (and not just ranges) and rewire some pieces to use the new functions.
Fixes #1376
2017-04-06 14:16:12 -07:00
Keith Smiley
b410c9376a
Update optional interpolated strings for Xcode 8.3
2017-04-06 13:37:49 -07:00
JP Simard
1b69b90691
remove superfluous string interpolation of a single String
2017-04-06 13:33:38 -07:00
Samuel Susla
b76d6e2416
Merge branch 'trailing-comma-autocorrect' of https://github.com/sammy-SC/SwiftLint into trailing-comma-autocorrect
2017-04-06 09:36:29 +02:00
Samuel Susla
9fd2256244
Merge branch 'master' of https://github.com/realm/SwiftLint into trailing-comma-autocorrect
2017-04-06 09:36:21 +02:00
Norio Nomura
b4f85d873a
Make yaml error message to be locatable by Xcode’s Issue Navigator
2017-04-05 12:45:27 +09:00
Norio Nomura
b5cba7ae40
Replace YamlSwift with Yams
2017-04-03 09:16:04 +09:00
Jeremy David Giesbrecht
d12b15f93d
Final optimizations.
2017-03-28 23:46:09 -06:00
Jeremy David Giesbrecht
efae41de9c
More re‐optimizing.
2017-03-28 23:42:30 -06:00
Jeremy David Giesbrecht
b36aca33fb
Try re‐optimizing.
2017-03-28 23:24:36 -06:00
Jeremy David Giesbrecht
433b8e9ba0
Fixed return lines.
2017-03-28 23:12:21 -06:00
Jeremy David Giesbrecht
abf2a7218f
Fixed types.
2017-03-28 23:06:42 -06:00
Jeremy David Giesbrecht
fec56475e7
Applied workaround for underlying Linux bug.
2017-03-28 22:53:03 -06:00
Jeremy David Giesbrecht
9a69a6ddc0
More CI debugging...
2017-03-28 22:02:20 -06:00
Jeremy David Giesbrecht
b9918521c8
Find out where CI is crashing.
2017-03-28 18:44:17 -06:00
Jeremy David Giesbrecht
d884008199
Removed indents from empty lines.
2017-03-28 18:06:20 -06:00
Jeremy David Giesbrecht
66dbd66b06
Fixed index selection.
2017-03-28 17:58:34 -06:00
Jeremy David Giesbrecht
e5896af83e
Fixed range type.
2017-03-28 17:49:35 -06:00
Jeremy David Giesbrecht
f26dd15a81
Switch back to the inefficient way for Linux.
2017-03-28 17:40:47 -06:00
Jeremy David Giesbrecht
1d6ca3e831
Oh the things you do just to make Linux happy...
2017-03-28 15:14:50 -06:00
Jeremy David Giesbrecht
260d01528d
Bridged NSStrings instead of NSMutableStrings.
2017-03-28 14:45:41 -06:00
Samuel Susla
5c1336c81b
Fix build on linux
2017-03-28 09:02:25 +01:00
Samuel Susla
427672ff49
Merge branch 'trailing-comma-autocorrect' of https://github.com/sammy-SC/SwiftLint into trailing-comma-autocorrect
2017-03-27 09:10:05 +01:00
Jeremy David Giesbrecht
6213ee8d53
Simplified offset conversions.
2017-03-25 16:21:30 -06:00
Samuel Susla
0c590d4938
Merge branch 'master' of https://github.com/realm/SwiftLint into trailing-comma-autocorrect
2017-03-25 11:07:53 +00:00
Samuel Susla
3d0948330b
calculate corrected violation indexes before calling ruleEnabled
2017-03-25 11:00:17 +00:00
Samuel Susla
4f1cb5f2b7
add new test case
2017-03-25 10:59:02 +00:00
Samuel Susla
abd5dd781a
use sourceKitten to convert indices
2017-03-25 09:38:06 +00:00
Marcelo Fabri
802a7ddeca
Improve for_where rule
...
Fixes #1387
2017-03-25 01:06:45 +01:00
Marcelo Fabri
cc9e81754f
0.17.0: Extra Rinse Cycle
2017-03-23 22:32:37 +01:00
Marcelo Fabri
a3547aa185
Merge pull request #1218 from keith/ks/sorted-imports-lowercase
...
Lowercase imports before sorting
2017-03-23 10:55:40 +01:00
Marcelo Fabri
e26710c0ad
Merge pull request #1362 from SiarheiFedartsou/implicitly_unwrapped_optional_rule
...
Add `implicitly_unwrapped_optional` rule
2017-03-22 21:16:18 +01:00
Siarhei Fedartsou
a992ee0e84
Merge remote-tracking branch 'realm/master' into implicitly_unwrapped_optional_rule
2017-03-22 20:24:04 +03:00
Samuel Susla
6fb7275642
use shorter syntax
2017-03-21 23:01:16 +01:00
Marcelo Fabri
87a0316751
Merge pull request #1365 from kimdv/FatalErrorMessageRule
...
Fatal error message rule
2017-03-21 22:45:20 +01:00
Marcelo Fabri
1cdee5e274
Make fatal_error_message opt-in
2017-03-21 21:56:13 +01:00
Samuel Susla
eb75ff52e4
add tests for mandatoryComma
2017-03-21 10:45:35 +01:00
Samuel Susla
edf4e8cc4d
take unicode characters into account
2017-03-21 10:09:56 +01:00
Yuki Oya
f590507270
Remove empty identifier case.
2017-03-20 23:37:54 +09:00
Yuki Oya
a3cf8451e0
Fix unique file element
2017-03-20 21:57:34 +09:00
Yuki Oya
be5daeb993
Add source attribute
2017-03-20 19:08:35 +09:00
Marcelo Fabri
843b8386fa
Merge pull request #1368 from SiarheiFedartsou/colon_configuration_equals_operator_fix
...
Fix `==` operator in ColonConfiguration
2017-03-19 18:04:27 +01:00
Marcelo Fabri
35e6474f0c
Refactoring and make rule enabled by default
2017-03-19 17:52:55 +01:00