Marcelo Fabri
8aadb802fb
Split RulesTests into several test cases, generating them automatically
2018-07-21 17:23:08 -07:00
Allen Wu
abe3dd01c5
Fix ControlStatement rule failing to apply when clauses contain commas
2018-06-23 15:15:36 -07: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
02792c1a01
Fix false positives in control_statement when methods with keyword names are used
...
Fixes #1946
2017-12-04 23:18:16 -08:00
JP Simard
93ded518a7
Remove uses of String.characters, deprecated in Swift 4.0.2
2017-11-10 14:37:53 -08:00
JP Simard
95f40be8bc
Add catch to the statements checked by the control_statement rule
2017-10-20 12:28:07 -07:00
JP Simard
6367d541b2
Improve compile time by speeding up slow type inference expressions
2017-09-19 17:26:24 -07: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
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
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
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
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
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
61920d2ab7
avoid Swift 2.2 deprecations
2016-01-22 21:09:28 -08:00
Scott Hoyt
9b6f3070a3
Wrote ConfigurableRule, made ParameterizedRule's conform, moved configuration into rules themselves.
2016-01-11 11:21:49 -08:00
JP Simard
85d8c68978
test violation locations
2015-12-27 13:33:42 -05:00
JP Simard
8d529f1804
Fix multibyte handling in many rules
2015-12-24 20:59:15 -05:00
JP Simard
96a4e6cc2f
remove init() from Rule.
2015-11-29 21:43:53 -08:00
JP Simard
80a1068a58
minor syntax fix in ControlStatementRule
2015-11-20 21:56:42 -08:00
JP Simard
989127cbe0
[StyleViolation] use RuleDescription's description when reason is nil
...
Many cases just used a static string that was nearly identical to the rule
description as the `reason` parameter when initializing a StyleViolation.
2015-11-17 10:25:57 -08:00
Mickael Morier
8f1788ad5f
some refactor after code review
2015-11-11 21:20:51 +01:00
Mickael Morier
b18463154c
improve ControlStatementRule especially when several parentheses exists in condition and several bad cases appears
2015-11-11 16:36:47 +01:00
JP Simard
0335f155ab
Perform major refactor of rule description, identifiers and examples
...
Fixes #183 .
2015-11-04 12:24:33 -08:00
JP Simard
5cb80cfd22
All rules now print their identifiers in reports. Fixes #180 .
2015-11-04 10:30:36 -08:00
JP Simard
5b34dabe30
Merge pull request #176 from zippy1978/master
...
Added rule reference on command output to enable batch processing
2015-11-03 11:25:23 -08:00
Gilles Grousset
7feb26ebe2
Refactored Rule reference in StyleViolation
...
Now uses a String with the rule identifier
2015-11-03 13:31:29 +01:00
JP Simard
12f3c345a7
[CHANGELOG] add entry for #167
2015-11-02 15:05:05 -08:00
Gilles Grousset
7328b41da8
Added rule reference to StyleViolation
...
- Added rule reference to StyleViolation
- Added rule_id field on JSONReporter and CSVReporter
2015-11-01 02:00:04 +01:00
David Potter
8748a4f3a2
Add guard statements to nonTriggeringExamples and triggeringExamples and fix tests.
2015-10-23 19:11:44 -07:00
David Potter
94b7ebdf36
Add support for the guard statement to ControlStatementRule.
2015-10-23 18:40:56 -07:00
JP Simard
57177e018d
update RulesCommand to print identifiers but not examples
2015-10-19 12:53:48 -07:00
JP Simard
fe5f1affc9
ViolationSeverity is now only .Warning and .Error
2015-08-30 22:21:59 -07:00
JP Simard
e95625ee79
update for swift 2
2015-08-27 14:20:51 -07:00
Keith Smiley
3f9786a22d
Lint parentheses around switch statements
2015-08-24 11:24:51 -07:00
JP Simard
30ef86b144
[ControlStatementRule] Fixed a few false positives
2015-05-28 14:49:25 -07:00
JP Simard
26075a2d4f
Trailing newline & file length violations are now displayed in Xcode: fixes #43
2015-05-28 12:11:13 -07:00
Andrea Mazzini
8a6c5e7f5d
Remove unused examples
2015-05-26 22:58:45 +02:00
Andrea Mazzini
86f5f85458
Split regex for specific keywords.
2015-05-26 22:54:11 +02:00
Andrea Mazzini
383bd3de43
Add ControlStatementRule
2015-05-26 22:04:19 +02:00