Commit Graph

292 Commits

Author SHA1 Message Date
Marcelo Fabri 46a2c25af4 Add notification_center_detachment rule
Fixes #1061
2017-01-24 22:27:45 -02:00
Marcelo Fabri c891efc8d6 Add discarded_notification_center_observer rule
Fixes #1062
2017-01-23 21:38:33 -02:00
JP Simard 85abab13b9 fix SPM build 2017-01-20 11:17:48 -08:00
JP Simard 16ca04905c 0.16.1: Commutative Fabric Sheets 2017-01-20 10:32:33 -08:00
JP Simard 3294e5cbab allow forcing Swift version via SWIFTLINT_SWIFT_VERSION 2017-01-20 10:14:33 -08:00
JP Simard df6cfa4d56 use enableAllRules in Configuration.swift 2017-01-12 14:13:48 -08:00
Marcelo Fabri e6155ea76e Fix excluded configuration not excluding files.
Fixes #1166
2017-01-12 00:36:59 -02:00
JP Simard ed7209cb45 0.16.0: Maximum Energy Efficiency Setting 2017-01-10 17:05:13 -08:00
JP Simard 86214a7758 remove trailing comma from array 2017-01-10 15:31:55 -08:00
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
Marcelo Fabri c28e3080f1 Get hash from parsed dictionary instead of String 2017-01-10 18:14:19 -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
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
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 c06a9a7b02 add empty newline between properties and init 2017-01-09 16:25:18 -08: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
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
Marcelo Fabri b1b9027663 Merge branch 'master' into cache 2017-01-06 21:06:50 -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
Marcelo Fabri 5d6c2ec3e7 Add shorthand_operator rule
Fixes #902
2017-01-06 18:02:02 -02:00
JP Simard 36b1ea0ba4 fix linting directories ending in .swift 2017-01-06 11:33:21 -08:00
rakaramos da071774e0 Add UnusedOptionalBinding rule 2017-01-05 21:13:03 -02:00
Marcelo Fabri 903f43ba39 Merge branch 'master' into cache 2017-01-05 13:07:37 -02:00
Marcelo Fabri 0cf433834e PR feedback 2017-01-05 12:01:47 -02:00
Marcelo Fabri dd59f4e9f9 Add generic_type_name rule
Fixes #51
2017-01-05 00:41:11 -02:00
Marcelo Fabri c5db646115 Add large_tuple rule
Fixes #1065
2017-01-04 18:21:33 -02:00
Marcelo Fabri 66403ec5fa Handle other protocols 2017-01-04 15:34:19 -02:00
Marcelo Fabri c381720d3e Add expressible_by_array_literal_init rule
Fixes #1096
2017-01-04 15:34:19 -02:00
Marcelo Fabri 8af6552b73 Merge branch 'master' into cache 2017-01-04 13:37:24 -02:00
JP Simard cce3505f1b pass function reference rather than create a small closure 2017-01-03 23:30:55 -08:00
JP Simard 6e994776df use guard instead of nested if let 2017-01-03 23:17:28 -08:00
Marcelo Fabri 12a66d4fe1 Remove handleAlias function 2017-01-03 18:04:37 -02:00
Marcelo Fabri 3b682fb116 Remove support to non-deprecated aliases 2017-01-03 16:14:34 -02:00
Marcelo Fabri 3c9d16509b Fix unit tests 2017-01-02 18:27:28 -02:00
JP Simard 4519f463d8 extract Linter.getStyleViolations' parallelFlatMap into Rule.performLint 2017-01-02 12:01:33 -08:00
Marcelo Fabri d9eda655bf PR feedback 2017-01-02 17:49:54 -02:00
Marcelo Fabri e8ead8827b Make LinterCache thread-safe 2017-01-02 16:44:54 -02:00