Commit Graph

228 Commits

Author SHA1 Message Date
JP Simard ec4cc3e072 fix installation with Yams
By adding Yams.framework to the "Embed Frameworks into
SwiftLintFramework.framework" build phase.
2016-12-18 17:01:38 -08:00
Marcelo Fabri 6577b59cd7 Add unused_enumerated rule 2016-12-18 00:22:33 -02:00
Marcelo Fabri 3d7ce6ae8c Add UnusedClosureParameterRule 2016-12-15 19:32:44 -02:00
Marcelo Fabri 73c7d9a054 Add operator_usage_whitespace
Fixes #626
2016-12-15 10:37:03 -02:00
JP Simard 6665986d3c Merge pull request #965 from marcelofabri/empty-parameters-rule
Add `empty_parameters` rule
2016-12-14 15:32:24 -08:00
Fabian Ehrentraud c88a5d0371 moved expected html reporter result for tests to external file too 2016-12-13 12:33:05 -08:00
Fabian Ehrentraud f8e74137fb moved all expected reporter results for tests to external files - except html reporter output, as that includes parametrized stuff 2016-12-13 12:33:05 -08:00
Fabian Ehrentraud 96aa86b500 moved String+XML.swift to Extensions folder and fixed header comment 2016-12-13 12:33:05 -08:00
Fabian Ehrentraud ea5f3319ca escape characters for xml reporters 2016-12-13 12:32:32 -08:00
Marcelo Fabri d465d7840e Add empty_parameters rule
Fixes #573
2016-12-13 18:05:38 -02:00
Marcelo Fabri e786f676eb Add void_return rule
Fixes #964
2016-12-13 10:41:08 -02:00
JP Simard 11bfa938ae Merge pull request #960 from marcelofabri/closure_parameter_position
Add closure_parameter_position rule
2016-12-13 01:33:00 -08:00
Aaron McTavish f54c9c4d5a Add ProhibitedSuperRule
Resolves #970: `Rule: Methods calling super that should not`
2016-12-13 07:22:11 +00:00
Marcelo Fabri 5359582782 Refactoring SwiftExpressionKind 2016-12-12 22:27:46 -02:00
Marcelo Fabri a48097103a Add closure_parameter_position rule
Fixes #931
2016-12-12 21:12:45 -02:00
Marcelo Fabri 9c43a21fed Merge branch 'master' into attributes-rule 2016-12-11 23:46:18 -02:00
Daniel Duan b9835c3828 Add rule to ban dynamic inline functions
When a class method is marked as both `dynamic` and `@inline(__always)`, its
dispatch behavior is not well defined. Therefore this specific combination
should be discouraged.
2016-12-11 01:52:39 -08: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 0209c461b3 Add empty_parentheses_with_trailing_closure rule
Fixes #885
2016-12-11 02:33:23 -02:00
Marcelo Fabri 09fb1eb93e Fix false negatives in AttributesRule 2016-12-09 19:39:25 -02:00
Marcelo Fabri 2ddf7757d7 Merge branch 'master' into attributes-rule 2016-12-09 14:50:48 -02:00
Marcelo Fabri 205c308100 Merge pull request #904 from marcelofabri/file-header-rule
Add FileHeaderRule
2016-12-09 01:22:58 -02:00
Marcelo Fabri ac0b0824c9 Swift 3 migration 2016-12-08 18:29:57 -02:00
Marcelo Fabri b4a3c17b41 Initial work to support configuration in file header rule 2016-12-08 18:29:57 -02:00
Marcelo Fabri 4abe67c7d7 Add FileHeaderRule
Fixes #844
2016-12-08 18:29:57 -02:00
Marcelo Fabri a7c58c14d4 Add RedundantStringEnumValueRule
Fixes #946
2016-12-08 18:26:45 -02:00
JP Simard 1cbb18a07a reduce long function compile time warning threshold to 150ms 2016-12-08 02:05:30 -08:00
Michał Kałużny d97632e52d Add human readable reporter that’s also funny because emoji. 2016-12-07 23:13:59 -08:00
Marcelo Fabri 27456823e3 Add number_separator opt-in rule
Fixes #924
2016-12-06 00:17:28 -02:00
Marcelo Fabri 1d42d29714 Merge branch 'master' into attributes-rule 2016-12-04 18:36:06 -02:00
Marcelo Fabri 0c018a15c7 Swift 3 migration 2016-12-04 18:19:44 -02:00
JP Simard 39e1001629 make lots of Swift 3 related changes
many of which are to help with otherwise very long compile times
2016-12-01 00:34:29 -08:00
Marcelo Fabri 5c7f015ac8 Splitting tests to a new file to avoid file_length 2016-11-30 23:25:10 -02:00
Marcelo Fabri 12dae9c029 Handling parameters and custom configurations 2016-11-30 11:51:25 -02:00
Marcelo Fabri d94b5d8bd2 Adding attributes rule
Fixes https://github.com/realm/SwiftLint/issues/846
2016-11-30 11:51:25 -02: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 1d7fbe17eb Merge commit '3ce57ba71ac2167d44aae39095475669bb5ec98c' into swift3.0
* commit '3ce57ba71ac2167d44aae39095475669bb5ec98c':
  Add NimbleOperatorRule
2016-11-30 18:50:24 +09:00
Norio Nomura 636efb5b14 Merge commit 'aeb5d7ae442d6b590e7693a7214098a9328f951a' into swift3.0
* commit 'aeb5d7ae442d6b590e7693a7214098a9328f951a':
  Updating changelog
  Updating regex after PR feedback
  Adding SyntacticSugar rule

# Conflicts:
#	Source/SwiftLintFramework/Extensions/File+Cache.swift
2016-11-30 18:10:10 +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
Norio Nomura 7593deff3f Merge commit 'b591ec71085572825616e9ac0ed15450198b52bb' into swift3.0
* commit 'b591ec71085572825616e9ac0ed15450198b52bb':
  minor Tests comment formatting
  ValidIBInspectableRule formatting
  fix typo in OverriddenSuperCallRule file name

# Conflicts:
#	Source/SwiftLintFramework/Rules/ValidIBInspectableRule.swift
2016-11-30 17:14:40 +09:00
Norio Nomura 397b3ad8fc Merge commit '1151c1883100fc2c65450a9266a06e0c9a4c83b3' into swift3.0
* commit '1151c1883100fc2c65450a9266a06e0c9a4c83b3':
  Updating changelog
  Rewriting rule to deal with nested structures
  Add ImplicitGetterRule
2016-11-30 14:14:24 +09:00
Marcelo Fabri 3bacc80fc7 Add configuration to enforce/forbid trailing comma 2016-11-25 23:51:25 -02:00
Marcelo Fabri 53b924e8c8 Fixing rebase 2016-11-25 20:56:46 -02:00
Marcelo Fabri 8464a71095 Addded TrailingCommaRule 2016-11-25 20:56:46 -02:00
Marcelo Fabri 0c5ff7f7b5 Add NimbleOperatorRule
Fixes #881
2016-11-25 13:31:06 -08:00
Marcelo Fabri c4b960000d Adding SyntacticSugar rule 2016-11-25 12:25:10 -08:00
Olivier Halligon 71b475d9d7 [New Rule] weak_delegate 2016-11-25 12:04:18 -08:00
JP Simard 5dbffd3b26 fix typo in OverriddenSuperCallRule file name 2016-11-25 11:47:35 -08:00
Marcelo Fabri 4e1d0d02f3 Add ImplicitGetterRule 2016-11-13 22:22:49 -02:00
Norio Nomura 121d19b941 Support Swift Package Manager on macOS 2016-11-08 20:35:30 +09:00