Commit Graph

1324 Commits

Author SHA1 Message Date
JP Simard 0530a2303f Merge branch 'master' into cache
* master:
  fix typos in ProjectMock configuration files
  update SourceKitten to 0.17
  build SwiftLint in release mode when running benchmarks
  run Circle CI's Xcode 8.2 image
  don't pass CI if Danger crashes
  Fix triggering example and add couple more
  Use range parameter if exists
  CHANGELOG entries must break at the 80th char
  Fix indentation
  Update CHANGELOG
  Delete extra variable
  Clean up code and improve overall logic
  Add range to avoid whole file lookup
  Clean up regex pattern
  Delete print command
  Fix test case clause
  Ignore tuples
  Append test to allTests array
  Add CHANGELOG entry
  Add UnusedOptionalBinding rule
2017-01-10 15:19:27 -08:00
Marcelo Fabri 2a97a1cd3d PR feedback 2017-01-10 20:53:17 -02:00
Marcelo Fabri 66d0bb2eb8 Update how hash is calculated 2017-01-10 20:49:53 -02:00
JP Simard 92c5a11303 Merge pull request #1119 from rakaramos/master
Add Unused optional binding rule
2017-01-10 14:19:05 -08:00
Marcelo Fabri c28e3080f1 Get hash from parsed dictionary instead of String 2017-01-10 18:14:19 -02:00
Marcelo Fabri b7b905c3e5 Merge branch 'master' into cache 2017-01-10 14:33:04 -02:00
Marcelo Fabri 94f48f4ebd PR feedback 2017-01-10 13:09:18 -02:00
Marcelo Fabri e1e2369c5f Merge branch 'master' into cache 2017-01-10 12:54:30 -02:00
rakaramos 23a0d53424 Merge branch 'master' of github.com:realm/SwiftLint 2017-01-10 10:12:28 -02:00
rakaramos c0a9aa44b7 Fix triggering example and add couple more 2017-01-10 09:36:51 -02:00
JP Simard f0006fe9a3 rename VerticalWhitespaceRule.internalValidate(file:)
to violatingLineSections(in:)
2017-01-09 20:31:06 -08:00
JP Simard c1be9cdd21 use 'guard shouldMakeViolation' 2017-01-09 20:28:06 -08:00
JP Simard 9a0bd3afc2 move extractCallsToSuper to Dictionary extension 2017-01-09 20:24:46 -08:00
JP Simard 40e6272f90 make reduceSwitchComplexity's first argument label more explicity 2017-01-09 19:46:35 -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 00cd61ab17 update SwiftLintFramework/Reporters to follow Swift 3 API Design Guidelines 2017-01-09 19:31:19 -08:00
JP Simard a98b0c0070 address some PR feedback 2017-01-09 19:28:08 -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 1e48ffb8fc address some PR feedback 2017-01-09 19:17:27 -08:00
JP Simard c5c2e21120 update SwiftLintFramework/Models to follow Swift 3 API Design Guidelines 2017-01-09 19:05:29 -08:00
JP Simard dbd50c0f1d address some PR feedback 2017-01-09 18:55:28 -08:00
JP Simard 93bf35824e address some PR feedback 2017-01-09 18:54:11 -08:00
Marcelo Fabri 05d0a31865 Merge branch 'master' into cache 2017-01-09 23:53:59 -02:00
JP Simard a291bb594a update SwiftLintFramework/Extensions to follow Swift 3 API Design Guidelines 2017-01-09 17:53:07 -08:00
JP Simard 7fb1875613 move CommandAction and CommandModifier into Command type
and make Command.modifier private
2017-01-09 16:25:19 -08:00
JP Simard 1c55cc8cf5 don't swallow errors in YamlParser.parse(_:) 2017-01-09 16:25:19 -08:00
JP Simard 3f13da32f0 remove FooTest class 2017-01-09 16:25:19 -08:00
JP Simard c06a9a7b02 add empty newline between properties and init 2017-01-09 16:25:18 -08:00
Marcelo Fabri 0f64ef2992 Fix false positive on vertical_parameter_alignment rule
Fixes #1129
2017-01-09 20:03:12 -02:00
rakaramos 147bfd6d5b Use range parameter if exists 2017-01-09 13:14:21 -02:00
Rafael Machado 4419b047e0 Fix indentation 2017-01-07 19:44:03 -02:00
Rafael Machado 23025cc101 Delete extra variable 2017-01-07 16:54:59 -02:00
Rafael Machado 87ea70f749 Clean up code and improve overall logic 2017-01-07 16:28:29 -02:00
Rafael Machado 14ea8a22d5 Add range to avoid whole file lookup 2017-01-07 16:28:04 -02:00
Rafael Machado da164d72bb Clean up regex pattern 2017-01-07 13:30:13 -02:00
Rafael Machado d20d979243 Delete print command 2017-01-07 13:28:53 -02:00
Rafael Machado fd87bf2a86 Fix test case clause 2017-01-07 13:28:31 -02:00
Marcelo Fabri 20620d5b6e Merge branch 'master' into cache 2017-01-07 12:54:27 -02:00
Rafael Machado 8e5a63d1c0 Merge branch 'master' of github.com:realm/SwiftLint 2017-01-07 09:01:22 -02:00
Rafael Machado 56d9b11ea3 Ignore tuples 2017-01-07 09:00:07 -02:00
JP Simard 9d697bf7a2 add .swiftlintVersion member to validKeys 2017-01-07 00:13:48 -08:00
JP Simard 6979d25733 allow specifying a swiftlint_version configuration key
which will log a warning if the current running version of SwiftLint
is different than this value.
2017-01-07 00:09:29 -08:00
JP Simard a16e77c39e fix swiftlint version with SPM
all done by @marcelofabri, originally in #1073
2017-01-07 00:09:27 -08:00
JP Simard c2a26c37d5 Merge pull request #1133 from dduan/more_ints_in_valid_ibdesignable
Permit more Int types in valid_ibinspectable
2017-01-06 20:03:51 -08:00
Marcelo Fabri f89068e18a Merge branch 'master' into cache 2017-01-07 01:48:08 -02:00
Daniel Duan 63fa98932e Permit more Int types in valid_ibinspectable
Unsigned and/or explicitly-sized integer types are valid with `@IBInspectable`.
SwiftLint should not produce lint warnings againt these.
2017-01-06 18:17:45 -08:00
Marcelo Fabri b1b9027663 Merge branch 'master' into cache 2017-01-06 21:06:50 -02:00
Marcelo Fabri 50535e7e5c Refactor regex functions to accept options
Fixes #1127
2017-01-06 21:04:15 -02:00
Marcelo Fabri 8a6b2d8570 Merge pull request #1123 from marcelofabri/shorthand_operator
Add shorthand_operator rule
2017-01-06 20:56:21 -02:00
Rafael Machado 068b903d1c Merge branch 'master' of github.com:realm/SwiftLint 2017-01-06 19:53:25 -02:00