Marcelo Fabri
28d22765f2
Make mark rule faster
2017-01-23 21:36:59 -02: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
55f7b04a6f
Fixing existing violations
2016-12-26 18:44:37 -02:00
Marcelo Fabri
2b5e52c229
Make mark rule slightly faster
2016-12-21 10:37:33 -02:00
Marcelo Fabri
9e4d464e45
Add violation markers in rules
2016-12-18 01:07:51 -02:00
Marcelo Fabri
cbccb0ec24
Fix violations
2016-12-15 19:32:53 -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
JP Simard
19fad01b29
make all enum members lowercase to comply with Swift 3 API Guidelines
2016-12-01 22:16:21 -08:00
JP Simard
b238438381
Merge branch 'master' into swift3.0
...
* master:
optimize MarkRule.violationRangesInFile() a tiny bit
fix missing variable rename
fix #778
2016-11-30 22:50:30 -08:00
JP Simard
4bb82285d6
optimize MarkRule.violationRangesInFile() a tiny bit
...
instead of allocating a SyntaxKind for all syntax tokens, we just
care about the first one.
2016-11-30 21:55:31 -08:00
JP Simard
98e8c87397
fix missing variable rename
2016-11-30 21:51:39 -08:00
JP Simard
fc2e887315
fix #778
2016-11-30 21:38:14 -08:00
Norio Nomura
b672f27717
Fix build error on SPM
2016-12-01 10:42:01 +09:00
Norio Nomura
b7862b9f6a
Merge commit 'e0cafea80ffba746a103d8d5a25be8fcd0993c81' into swift3.0
...
* commit 'e0cafea80ffba746a103d8d5a25be8fcd0993c81':
remove unnecessary file.invalidateCache()
add changelog entry for #893
fix up indentation in MarkRule.swift
omit self if it can be inferred
Corrections for mark rule
Update regex part to be more precise.
Add autocorrection to MarkRule
# Conflicts:
# Source/SwiftLintFramework/Rules/ConditionalReturnsOnNewline.swift
# Source/SwiftLintFramework/Rules/MarkRule.swift
# Source/SwiftLintFramework/Rules/StatementPositionRule.swift
2016-11-30 22:26:51 +09:00
Norio Nomura
84ca11b6aa
Merge commit 'b22d1a93c93537acde79a2496031012489fe270d' into swift3.0
...
* commit 'b22d1a93c93537acde79a2496031012489fe270d':
Updating CHANGELOG entry
Updates existing code to respect TrailingCommaRule
Add configuration to enforce/forbid trailing comma
Fixing rebase
Addded TrailingCommaRule
2016-11-30 19:38:31 +09:00
Norio Nomura
abecb87672
Merge commit 'aa520f35481c7a83f9c94f217d48919bd37432fa' into swift3.0
...
* commit 'aa520f35481c7a83f9c94f217d48919bd37432fa':
make minor changes to tests for ACL or reusing existing constants
# Conflicts:
# Tests/SwiftLintFrameworkTests/TestHelpers.swift
2016-11-30 13:01:00 +09:00
Norio Nomura
aaf008c527
Merge commit '8f140ffdfe13c4f17398aa2d1256e2ed95bfdfe6' into swift3.0
...
* commit '8f140ffdfe13c4f17398aa2d1256e2ed95bfdfe6':
improve debugging failing tests due to mismatched violation locations
fix MarkRule edge cases
# Conflicts:
# Source/SwiftLintFramework/Rules/MarkRule.swift
2016-11-30 12:54:47 +09:00
JP Simard
ed70259198
remove unnecessary file.invalidateCache()
...
this is already called in Linter.correct() if corrections were applied
2016-11-28 22:43:02 -08:00
JP Simard
0b39dec1b0
fix up indentation in MarkRule.swift
2016-11-28 22:30:31 -08:00
Oleg Kokhtenko
57d8ece116
Corrections for mark rule
2016-11-28 09:40:05 +01:00
Oleg Kokhtenko
92c586e79b
Update regex part to be more precise.
2016-11-28 09:38:36 +01:00
Oleg Kokhtenko
96a9fe398c
Add autocorrection to MarkRule
2016-11-28 09:38:36 +01:00
Marcelo Fabri
d8fd865491
Updates existing code to respect TrailingCommaRule
2016-11-25 23:52:07 -02:00
JP Simard
a2a636d749
fix MarkRule edge cases
...
fixes #805
2016-11-23 15:30:29 -08:00
Norio Nomura
3ff76e7ce8
Update SourceKitten
2016-11-04 20:24:21 +09:00
Norio Nomura
8bf15f1dba
Migrate to Swift 3.0
2016-10-09 01:09:50 +09:00
Ruotger Deecke
c9e09e4190
fix Mark rule case // MARK: -
...
see https://github.com/realm/SwiftLint/issues/778
2016-08-30 17:09:28 +02:00
JP Simard
99efae79a3
use File.matchPattern(_:withSyntaxKinds:) in MarkRule
2016-08-22 13:39:30 -07:00
Krzysztof Rodak
af0add6a22
- Adding new MarkRule
...
- Adding test for new `MarkRule`
- Adding contribution to `CHANGELOG` file
- Adding new `MarkRule` to list of all rules in `MasterRuleList`
2016-08-22 13:33:37 -07:00