Commit Graph

38 Commits

Author SHA1 Message Date
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