JP Simard
35ce34d919
make valid_docs rule opt-in
2017-02-09 15:15:30 -08:00
JP Simard
a01cb69a83
disable docs rules in Swift 2.3 and later
2017-02-03 14:42:11 -08:00
JP Simard
29cdc86185
add some convenience members to SourceKit dictionaries
2017-01-22 11:00:57 -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
8ce031ff5f
add substructure member to Dictionary+SwiftLint.swift
2016-12-23 12:35:01 -08: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
19fad01b29
make all enum members lowercase to comply with Swift 3 API Guidelines
2016-12-01 22:16:21 -08: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
Marcelo Fabri
d8fd865491
Updates existing code to respect TrailingCommaRule
2016-11-25 23:52:07 -02:00
Norio Nomura
3ff76e7ce8
Update SourceKitten
2016-11-04 20:24:21 +09:00
Norio Nomura
ec3f9d0c94
Fix line_length style violations, unused warnings
2016-10-13 22:40:45 +09:00
Norio Nomura
8bf15f1dba
Migrate to Swift 3.0
2016-10-09 01:09:50 +09:00
M. Porooshani
c7d0cf04eb
Fixed returns doc for init methods issue-557
...
Signed-off-by: M. Porooshani <porooshani@gmail.com >
2016-08-23 10:27:37 +04:30
Eric-Paul Lecluse
572d4dfb48
Fix spelling for declarationReturns function (was delcaration)
2016-06-23 11:34:30 +02:00
JP Simard
c66c5c8df0
formatting fixes
...
found running `swiftlint autocorrect --format`
2016-05-29 14:58:28 -07:00
JP Simard
144495306b
rename rule configurations to expand "Config" to "Configuration"
2016-02-12 10:53:36 -08:00
JP Simard
6befe7e5a4
expand many instances of "config" to "configuration"
2016-02-12 10:53:36 -08:00
JP Simard
3f4b993847
rename ConfigProviderRule to ConfigurationProviderRule
2016-02-12 10:53:36 -08:00
Ankit Aggarwal
41f59d6004
Ignore case of keywords for valid_docs
2016-02-07 22:29:19 +05:30
Diogo Guimaraes
e9a2f4acb7
Fix ValidDocs rule
2016-02-02 10:47:51 +00:00
JP Simard
611c4a8558
fix indentation in one ValidDocsRule example
2016-01-28 10:14:17 -08:00
Diogo Guimaraes
232873832b
Fix validDocsRule
2016-01-28 15:29:56 +00:00
JP Simard
eb89b89d4b
make ValidDocsRule a bit more DRY
2016-01-26 09:54:24 -08:00
Diogo Guimaraes
0aaf01417b
Fix ValidDocs rule
2016-01-26 13:54:56 +00:00
Scott Hoyt
f722bcf360
All Rules (with the exception of MissingDocs) now provide some severity configuration.
2016-01-23 17:42:13 -08:00
JP Simard
d5598d4eae
add missing imports needed by SPM
2016-01-22 21:09:28 -08:00
JP Simard
ace0999154
update SourceKitten to 0.8.0
2016-01-22 19:19:15 -08:00
Scott Hoyt
9b6f3070a3
Wrote ConfigurableRule, made ParameterizedRule's conform, moved configuration into rules themselves.
2016-01-11 11:21:49 -08:00
Norio Nomura
8edc234e64
Fix regex for ignoring closure parameter on detecting return value
...
fix #324
2016-01-08 09:12:17 +09:00
Norio Nomura
e1b8a12376
Add failing example
2016-01-08 08:57:49 +09:00
JP Simard
ccdebe9791
Merge pull request #300 from realm/jp-test-violation-locations
...
test violation locations
2015-12-27 22:04:18 -05:00
Norio Nomura
090c061255
Fix #295
2015-12-28 09:23:22 +09:00
Norio Nomura
e120984a81
Add failing test to ValidDocsRule.swift
...
Check for multibyte characters in .swift
2015-12-28 09:23:22 +09:00
JP Simard
85d8c68978
test violation locations
2015-12-27 13:33:42 -05:00
Norio Nomura
5b63b6bfa7
Fix #294
2015-12-27 14:52:22 +09:00
JP Simard
8d529f1804
Fix multibyte handling in many rules
2015-12-24 20:59:15 -05:00
JP Simard
4c770d52c9
fix superfluousOrMissingParameterDocumentation regression
...
where commentParameters.count > labelsAndParams.count
2015-12-23 23:45:03 -05:00
JP Simard
d50a78e85c
don't require documentation for unlabelled parameters
2015-12-23 23:26:49 -05:00
JP Simard
e8a8f4042e
eagerly match parameters in ValidDocsRule
2015-12-23 23:26:19 -05:00
Norio Nomura
abf1968d06
Change guard condition to fails earlier
...
This commit reduces the duration of linting KeychainAccess from:
```
swiftlint lint 5.37s user 0.14s system 93% cpu 5.889 total
```
to:
```
swiftlint lint 3.74s user 0.13s system 91% cpu 4.238 total
```
the duration of linting Carthage is reduced from:
```
swiftlint lint 33.48s user 1.86s system 82% cpu 42.645 total
```
to:
```
swiftlint lint 29.61s user 1.81s system 79% cpu 39.377 total
```
2015-12-23 20:23:38 +09:00
Diogo Guimaraes
90a98dcea4
Fix return validation
2015-12-18 14:18:51 +00:00
JP Simard
6c64b10917
[ValidDocsRule] skip comments with batched parameters
2015-11-30 01:05:33 -08:00
JP Simard
810039bcb3
[ValidDocsRule] trigger a violation when there's superfluous parameter docs
2015-11-29 21:58:21 -08:00
JP Simard
41b75cef97
[ValidDocsRule] simplify multiple checks
2015-11-29 21:58:21 -08:00
JP Simard
0f6cb2f404
[ValidDocsRule] check for missing or superfluous "throws" documentation
2015-11-29 21:58:21 -08:00
JP Simard
00c4de4050
[ValidDocsRule] check for missing or superfluous "return" documentation
2015-11-29 21:58:21 -08:00
JP Simard
3f12970342
[ValidDocsRule] improve variable naming
2015-11-29 21:58:21 -08:00
JP Simard
eb6e52ee1a
[ValidDocsRule] skip :nodoc: & make parameter name detection more flexible
...
by allowing the use of either the parameter name or its label
2015-11-29 21:58:21 -08:00