JP Simard
b83e0991b9
Remove all file headers
...
The MIT license doesn't require that all files be prepended with this
licensing or copyright information. Realm confirmed that they're ok with this
change. This will enable some companies to contribute to SwiftLint and the
date & authorship information will remain accessible via git source control.
2018-05-04 13:42:02 -07:00
Marcelo Fabri
e2b195a4e2
Use SwiftDeclarationAttributeKind instead of string constants
2018-04-24 22:23:36 -07:00
JP Simard
cf59e0c771
Merge pull request #2038 from realm/nn-swift-4.1
...
Support building with Swift 4.1
2018-04-08 10:28:51 -07:00
Norio Nomura
2a0ac455bc
'flatMap' is deprecated: renamed to 'compactMap(_:)'
2018-04-08 13:28:09 +09:00
Marcelo Fabri
d4321762a5
Fix false positives in attributes rule with Swift 4.1
...
Fixes #2125 and #2141
2018-04-06 16:50:09 -07:00
Marcelo Fabri
0be8c855d2
Move functions to properties and Sets instead of Arrays
2017-10-04 14:34:00 -07:00
JP Simard
2c94e54bd6
Fix 'is_disjoint' violations in SwiftLint itself
2017-08-21 16:00:34 -07:00
Marcelo Fabri
0bd0b8f263
Fix existing violations
2017-07-18 23:22:30 +02:00
Marcelo Fabri
e86763739f
Move kind to RuleDescription
2017-07-02 15:50:16 +02:00
Marcelo Fabri
5012211d3d
Add RuleKind
2017-07-02 15:50:16 +02:00
Marcelo Fabri
fd231b607d
Fix existing violations
2017-06-13 16:12:58 +02:00
Marcelo Fabri
d73ee8d3d9
Remove Swift 2 support
...
Also removes `missing_docs` and `valid_docs` rules.
Fixes #1453 .
2017-04-23 13:43:41 +02:00
JP Simard
29cdc86185
add some convenience members to SourceKit dictionaries
2017-01-22 11:00:57 -08:00
JP Simard
3599723a65
simplify equality check in AttributesRule
2017-01-22 09:40:23 -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
50535e7e5c
Refactor regex functions to accept options
...
Fixes #1127
2017-01-06 21:04:15 -02:00
Marcelo Fabri
f9a639715f
Fix out of range exception in AttributesRule
...
Fixes #1105
2017-01-01 17:54:31 -02:00
Marcelo Fabri
5625b50f88
Avoid using Set(arrayLiteral:)
2016-12-30 23:54:25 -02:00
Marcelo Fabri
6bd9bec6d7
PR feedback
2016-12-30 01:46:05 -02:00
Marcelo Fabri
b599dc49cb
Make AttributesRule opt-in
2016-12-12 23:42:18 -02:00
Marcelo Fabri
e4a556dea5
Handle consecutive lines with attributes
2016-12-12 23:02:04 -02:00
Marcelo Fabri
7a4325220e
Using character offset for regex result
2016-12-12 02:26:21 -02:00
Marcelo Fabri
6752739dac
Using .bridge() to run on Linux
2016-12-12 00:27:43 -02:00
Marcelo Fabri
09fb1eb93e
Fix false negatives in AttributesRule
2016-12-09 19:39:25 -02:00
Marcelo Fabri
2ddf7757d7
Merge branch 'master' into attributes-rule
2016-12-09 14:50:48 -02:00
Marcelo Fabri
0c018a15c7
Swift 3 migration
2016-12-04 18:19:44 -02:00
Marcelo Fabri
1794a26aa7
Small refactoring
2016-11-30 11:51:25 -02:00
Marcelo Fabri
5e9095a1e3
PR feedback
2016-11-30 11:51:25 -02:00
Marcelo Fabri
12dae9c029
Handling parameters and custom configurations
2016-11-30 11:51:25 -02:00
Marcelo Fabri
508f2842d5
Handling cases with multiple attributes
2016-11-30 11:51:25 -02:00
Marcelo Fabri
7f259d26f7
Adding Swift 2.2 attributes
2016-11-30 11:51:25 -02:00
Marcelo Fabri
17c1464d3e
Making tests green on Swift 2.2 ✅
2016-11-30 11:51:25 -02:00
Marcelo Fabri
a85171770f
Handling attributes that don’t start with @
2016-11-30 11:51:25 -02:00
Marcelo Fabri
4e3a0b01a1
Using byte range
2016-11-30 11:51:25 -02:00
Marcelo Fabri
d94b5d8bd2
Adding attributes rule
...
Fixes https://github.com/realm/SwiftLint/issues/846
2016-11-30 11:51:25 -02:00