JP Simard
1a28275891
Migrate to use SourceKitten's new ByteCount/ByteRange types
2020-01-13 21:53:10 -08:00
JP Simard
37167a8a35
Add documentation comments to all public declarations ( #3027 )
2020-01-08 09:47:10 -08:00
Paul Taykalo
73802c285d
Add own wrappers over syntax tokens and syntax map
2019-11-10 22:55:54 +02:00
Paul Taykalo
ac40778cb3
Use SwiftLintFile wrapper over the File
2019-11-07 15:19:17 +02:00
Paul Taykalo
18a3896f97
Update swift structure dictionary
2019-11-07 08:51:16 +02:00
Paul Taykalo
f0ad230e81
fix linting issues
2019-11-07 08:50:50 +02:00
Paul Taykalo
b901c670d4
Cache file structure dictionary
2019-11-07 08:50:50 +02:00
JP Simard
3a0c2b0c05
Migrate LinterCache to use Codable models ( #2799 )
...
* Migrate LinterCache to use Codable models
improving performance and type safety
* Fix Linux
* Avoid creating a Decoder if it won't be used
For example if the file doesn't exist or can't be read.
* Use corelibs plist coder if available
It's available in the Swift 5.1 branch: https://github.com/apple/swift-corelibs-foundation/pull/1849
* Remove unused error case
2019-07-07 00:35:10 -07:00
Marcelo Fabri
0652b323f5
Use new source.request.compiler_version request
2019-07-04 10:59:43 -07:00
Marcelo Fabri
596bf8dbc8
Detect parameter attribute in vertical_parameter_alignment
...
Fixes #2792
2019-07-04 10:42:11 -07:00
JP Simard
2638827965
Add SwiftVersion.five and automatically detect it ( #2602 )
...
Add `SwiftVersion.five` and automatically detect it when computing `SwiftVersion.current`.
2019-01-27 20:26:30 -08:00
Norio Nomura
ea171fbbf2
Add `SWIFTLINT_DISABLE_SOURCEKIT` environment variable ( #2473 )
...
This can be used for avoid "Test::Unit::AssertionFailedError" error in `libxpc.dylib` on calling `sourcekitd_send_request_sync` in sandbox environment.
2018-11-21 17:03:42 -08:00
Norio Nomura
093b99bea7
Fix `LinterCacheTests.testDetectSwiftVersion` for Swift 4.2
2018-07-20 08:30:25 +09:00
Marcelo Fabri
b168296d07
Fix generic_type_rule when using Swift 4.2
2018-06-24 00:20:50 -07:00
Norio Nomura
6bcabfe5f8
Detect `swift-4.1.2`
2018-05-13 21:39:57 +09:00
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
5231f6c9a5
Support min Swift version in Rule description
2018-04-08 21:52:45 -07:00
Norio Nomura
2ab42cdec1
Fix typo
2018-04-05 11:17:35 +09:00
Norio Nomura
c592538856
Add 4.1.0, 4.1.1 and 4.2.0 to Swift version detection
2018-04-05 10:29:54 +09:00
Marcelo Fabri
5d7346b8a2
Don’t validate local vars in let_var_whitespace rule
...
As part of #2021
2018-01-25 20:00:31 -08:00
Norio Nomura
13768b70f6
Stop using numerical comparison in `SwiftVersion`
2017-11-16 11:53:29 +09:00
Norio Nomura
d460c6d124
Invalidate cache when Swift patch version changes
2017-11-16 11:03:08 +09:00
Marcelo Fabri
0a07628d8c
Invalidate cache when Swift version changes
2017-08-21 00:19:04 +02:00
Marcelo Fabri
7c5da2f316
Add four to SwiftVersion
2017-07-27 14:28:40 +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
a01cb69a83
disable docs rules in Swift 2.3 and later
2017-02-03 14:42:11 -08:00
JP Simard
85abab13b9
fix SPM build
2017-01-20 11:17:48 -08:00
JP Simard
3294e5cbab
allow forcing Swift version via SWIFTLINT_SWIFT_VERSION
2017-01-20 10:14:33 -08:00
Marcelo Fabri
aea1fd3538
Fix false positives on closure rules with Swift 2.3
...
Fixes #1019
2016-12-29 18:18:06 -02:00