Marcelo Fabri
f90b25e2e1
Refactor elements to not be optional
2017-02-09 17:59:31 -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
7522635ad8
update SwiftLintFramework/Rules to follow Swift 3 API Design Guidelines
2017-01-09 19:37:53 -08:00
JP Simard
9e7cdc3282
update SwiftLintFramework/Protocols to follow Swift 3 API Design Guidelines
2017-01-09 19:19:25 -08:00
JP Simard
a291bb594a
update SwiftLintFramework/Extensions to follow Swift 3 API Design Guidelines
2017-01-09 17:53:07 -08:00
Marcelo Fabri
7c11db6cb7
Fix false positive in switch_case_on_newline when switching over a selector
...
Fixes #1020
2016-12-21 17:26:41 -02:00
Marcelo Fabri
7665b04568
Add offset tests with multi-byte strings
2016-12-18 01:07:51 -02:00
Marcelo Fabri
fedc7bf0ff
Fixing offsets usage
2016-12-17 00:04:08 -02:00
JP Simard
0faf567931
use bridge() rather than explict or implicit casts
...
this is a step in aligning the code to compile on both Darwin and
Linux
2016-12-11 13:47:44 -08:00
Marcelo Fabri
13b0cfe623
Fixing inconsistencies
2016-12-08 18:29:57 -02:00
JP Simard
a57526d639
omit 'self.' references when not ambiguous
2016-12-08 01:25:54 -08:00
JP Simard
19fad01b29
make all enum members lowercase to comply with Swift 3 API Guidelines
2016-12-01 22:16:21 -08:00
Norio Nomura
363bcf5c73
Merge branch 'master' into swift3.0
...
* master:
add empty changelog section
update Releasing.md with `brew bump-formula-pr`
0.13.1: Heavy Cycle
remove unused function dictFromKeyValuePairs
add tests for reporterFromString(_:)
small refactoring of SwitchCaseOnNewlineRule.swift
# Conflicts:
# Source/SwiftLintFramework/Extensions/File+Cache.swift
# Source/SwiftLintFramework/Rules/SwitchCaseOnNewlineRule.swift
2016-11-30 22:33:16 +09:00
Norio Nomura
63a2b207b4
Merge commit 'e65437cd7a7a1e97f68ddb62d572952d74fa3876' into swift3.0
...
* commit 'e65437cd7a7a1e97f68ddb62d572952d74fa3876':
Fixing #878
`switch_case_on_newline` should ignore trailing comments
# Conflicts:
# Source/SwiftLintFramework/Rules/SwitchCaseOnNewlineRule.swift
2016-11-30 19:08:05 +09:00
JP Simard
7d94f2b461
small refactoring of SwitchCaseOnNewlineRule.swift
2016-11-28 22:59:04 -08:00
Marcelo Fabri
b2f16eead5
Fixing #878
2016-11-25 19:41:17 -02:00
Marcelo Fabri
6b50062cd0
switch_case_on_newline should ignore trailing comments
...
Fixes #874
2016-11-25 19:41:17 -02:00
Norio Nomura
3ff76e7ce8
Update SourceKitten
2016-11-04 20:24:21 +09:00
Norio Nomura
47cf2db7a2
Merge branch 'master' into swift3.0
...
* master:
Using character based init
PR feedback
Handling pattern matching cases (if case, for case, etc)
Addressing PR feedback
Add SwitchCaseOnNewline rule
Adding CHANGELOG entry
Validates if "return" in ConditionalReturnsOnNewline is a keyword
Stop `make` if working tree does not have git repository
# Conflicts:
# Source/SwiftLintFramework/Rules/ConditionalReturnsOnNewline.swift
2016-10-18 19:34:43 +09:00
Marcelo Fabri
8ab496d850
PR feedback
2016-10-16 14:16:51 -02:00
Marcelo Fabri
72589c46d2
Handling pattern matching cases (if case, for case, etc)
2016-10-16 03:09:33 -02:00
Marcelo Fabri
8d0f344747
Add SwitchCaseOnNewline rule
...
This fixes https://github.com/realm/SwiftLint/issues/681
2016-10-16 02:39:06 -02:00