Commit Graph

22 Commits

Author SHA1 Message Date
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 5f4203ad37 remove unnecessary flatMap Int64 conversion introduced in #1092 2016-12-30 11:23:35 -08:00
Rafael Machado 1056e7300f Ignore computed delegates 2016-12-30 16:20:59 -02:00
JP Simard 8ce031ff5f add substructure member to Dictionary+SwiftLint.swift 2016-12-23 12:35:01 -08:00
Marcelo Fabri 9e4d464e45 Add violation markers in rules 2016-12-18 01:07:51 -02:00
Daniel Duan 00bfe3c77e abstract attribute retrieval from SourceKit
Extracting attribute values enclosed in SourcKit dictionary is common enough to
warrant a utility function.
2016-12-11 01:51:33 -08:00
Marcelo Fabri 13b0cfe623 Fixing inconsistencies 2016-12-08 18:29:57 -02:00
Marcelo Fabri 7e4d30bf38 Skip declarations in protocols in weak_delegate rule 2016-12-07 00:42:44 -02:00
Philip Webster 340f78c6b3 omit trailing commas 2016-12-03 14:41:22 -08:00
Philip Webster 0c6674186c delegate suffix example 2016-12-02 11:13:53 -08:00
Philip Webster e08f6d6f54 match strong delegate suffix 2016-12-01 22:49:40 -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 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
Norio Nomura b9426fb78e Merge commit '487f8cccdfe27771f6cd9ec46470a3b3578eaec4' into swift3.0
* commit '487f8cccdfe27771f6cd9ec46470a3b3578eaec4':
  fix changelog entry: weak rule isn't opt-in
  minor WeakDelegateRule formatting
  fix up changelog entry
  [weak_delegate] Better code style for testing string matching
  Thinking back about it, WeakDelegate rule should in fact maybe not be Opt-In, but rather enabled by default
  Additional code comments
  [New Rule] weak_delegate
2016-11-30 17:27:44 +09:00
Marcelo Fabri d8fd865491 Updates existing code to respect TrailingCommaRule 2016-11-25 23:52:07 -02:00
JP Simard a4bc57ad98 minor WeakDelegateRule formatting 2016-11-25 12:06:43 -08:00
Olivier Halligon 56878180df [weak_delegate] Better code style for testing string matching 2016-11-25 12:04:43 -08:00
Olivier Halligon b3322c34f1 Thinking back about it, WeakDelegate rule should in fact maybe not be Opt-In, but rather enabled by default
(people can still disable it if needs be, but I find it very rare and not that debatable that all delegates should always be weak)
2016-11-25 12:04:43 -08:00
Olivier Halligon dd75f3135a Additional code comments
(Re-triggering the Travis build to check if SourceKit errors are deterministic)
2016-11-25 12:04:18 -08:00
Olivier Halligon 71b475d9d7 [New Rule] weak_delegate 2016-11-25 12:04:18 -08:00