Permalink
Browse files

Catch up with changes to libTooling options

  • Loading branch information...
ryuichis committed Aug 14, 2017
1 parent cf3dbc6 commit b995acb4d2cb800570e95019c304f643ec404926
Showing with 68 additions and 69 deletions.
  1. +1 −1 Package.resolved
  2. +1 −1 Package.swift
  3. +1 −1 Sources/Lint/AST+Format.swift
  4. +1 −1 Sources/Lint/ASTContext.swift
  5. +1 −1 Sources/Lint/ASTVisitorRule.swift
  6. +1 −1 Sources/Lint/Constant.swift
  7. +1 −1 Sources/Lint/Correction.swift
  8. +1 −2 Sources/Lint/Driver.swift
  9. +1 −1 Sources/Lint/Issue.swift
  10. +1 −1 Sources/Lint/IssuePool.swift
  11. +1 −1 Sources/Lint/Reporter.swift
  12. +1 −1 Sources/Lint/Reporter/Date+Reporter.swift
  13. +1 −1 Sources/Lint/Reporter/HTMLReporter.swift
  14. +1 −1 Sources/Lint/Reporter/JSONReporter.swift
  15. +1 −1 Sources/Lint/Reporter/PMDReporter.swift
  16. +1 −1 Sources/Lint/Reporter/TextReporter.swift
  17. +1 −1 Sources/Lint/Reporter/XcodeReporter.swift
  18. +1 −1 Sources/Lint/Rule+RuleBase.swift
  19. +1 −1 Sources/Lint/Rule.swift
  20. +1 −1 Sources/Lint/Rule/CollapsibleIfStatementsRule.swift
  21. +1 −1 Sources/Lint/Rule/ConstantConditionalOperatorConditionRule.swift
  22. +1 −1 Sources/Lint/Rule/ConstantGuardStatementConditionRule.swift
  23. +1 −1 Sources/Lint/Rule/ConstantIfStatementConditionRule.swift
  24. +1 −1 Sources/Lint/Rule/CyclomaticComplexityRule.swift
  25. +1 −1 Sources/Lint/Rule/DeadCodeRule.swift
  26. +1 −1 Sources/Lint/Rule/DoubleNegativeRule.swift
  27. +1 −1 Sources/Lint/Rule/InvertedLogicRule.swift
  28. +1 −1 Sources/Lint/Rule/LongLineRule.swift
  29. +1 −1 Sources/Lint/Rule/MustCallSuperRule.swift
  30. +1 −1 Sources/Lint/Rule/NCSSRule.swift
  31. +1 −1 Sources/Lint/Rule/NPathComplexityRule.swift
  32. +1 −1 Sources/Lint/Rule/NestedCodeBlockDepthRule.swift
  33. +1 −1 Sources/Lint/Rule/NoForceCastRule.swift
  34. +1 −1 Sources/Lint/Rule/NoForcedTryRule.swift
  35. +1 −1 Sources/Lint/Rule/RedundantBreakInSwitchCaseRule.swift
  36. +1 −1 Sources/Lint/Rule/RedundantConditionalOperatorRule.swift
  37. +1 −1 Sources/Lint/Rule/RedundantEnumCaseStringValueRule.swift
  38. +1 −1 Sources/Lint/Rule/RedundantIfStatementRule.swift
  39. +1 −1 Sources/Lint/Rule/RedundantInitializationToNilRule.swift
  40. +1 −1 Sources/Lint/Rule/RedundantReturnVoidTypeRule.swift
  41. +1 −1 Sources/Lint/Rule/RedundantVariableDeclarationKeywordRule.swift
  42. +1 −1 Sources/Lint/Rule/RemoveGetForReadOnlyComputedPropertyRule.swift
  43. +1 −1 Sources/Lint/Rule/RuleBase+Util.swift
  44. +1 −1 Sources/Lint/Rule/TooManyParametersRule.swift
  45. +1 −1 Sources/Lint/RuleBase+Configurations.swift
  46. +1 −1 Sources/Lint/RuleBase+Suppression.swift
  47. +1 −1 Sources/Lint/RuleBase.swift
  48. +1 −1 Sources/Lint/RuleSet.swift
  49. +1 −1 Sources/Metric/AST+Metric.swift
  50. +1 −1 Sources/Metric/CodeBlockDepth.swift
  51. +1 −1 Sources/Metric/CyclomaticComplexity.swift
  52. +1 −1 Sources/Metric/NPathComplexity.swift
  53. +1 −1 Sources/Metric/NonCommentingSourceStatements.swift
  54. +1 −1 Sources/swift-lint-docgen/main.swift
  55. +1 −1 Tests/CrithagraTests/CrithagraTests.swift
  56. +1 −1 Tests/CrithagraTests/XCTestManifests.swift
  57. +1 −1 Tests/LintTests/CorrectionTests.swift
  58. +1 −1 Tests/LintTests/ReporterProtocolTests.swift
  59. +1 −1 Tests/LintTests/RuleBaseTests.swift
  60. +1 −1 Tests/LintTests/RuleProtocolTests.swift
  61. +1 −1 Tests/LintTests/RuleSetTests.swift
  62. +1 −1 Tests/LintTests/XCTestManifests.swift
  63. +1 −1 Tests/LinuxMain.swift
  64. +1 −1 Tests/MetricTests/CodeBlockDepthTests.swift
  65. +1 −1 Tests/MetricTests/CyclomaticComplexityTests.swift
  66. +1 −1 Tests/MetricTests/NPathComplexityTests.swift
  67. +1 −1 Tests/MetricTests/NonCommentingSourceStatementsTests.swift
  68. +1 −1 Tests/MetricTests/XCTestManifests.swift
View
@@ -15,7 +15,7 @@
"repositoryURL": "https://github.com/yanagiba/swift-ast",
"state": {
"branch": null,
"revision": "af3edc8e3301dfc846efc1375949391dbbcd6ed1",
"revision": "875d28b94ec6f063da9fb6fa2353f3b06ecdc538",
"version": null
}
}
View
@@ -43,7 +43,7 @@ let package = Package(
dependencies: [
.package(
url: "https://github.com/yanagiba/swift-ast",
.revision("af3edc8e3301dfc846efc1375949391dbbcd6ed1")
.revision("875d28b94ec6f063da9fb6fa2353f3b06ecdc538")
),
.package(
url: "https://github.com/yanagiba/bocho",
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2015-2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2015-2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2015 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2015 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2015 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2015 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -88,12 +88,11 @@ public class Driver {
IssuePool.shared.clearIssues()
let diagnosticConsumer = SilentDiagnosticConsumer()
let toolingOption = ToolActionOption(sequenceExpressionFoldingEnabled: true)
let tooling = ToolAction()
let result = tooling.run(
sourceFiles: sourceFiles,
diagnosticConsumer: diagnosticConsumer,
option: toolingOption)
options: [.foldSequenceExpression])
guard result.exitCode == ToolActionResult.success else {
return .failedInParsingFile
View
@@ -1,5 +1,5 @@
/*
Copyright 2015-2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2015-2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2015 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2015 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2015-2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2015-2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
View
@@ -1,5 +1,5 @@
/*
Copyright 2015 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2015 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2015 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2015 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2015 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2015 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2017 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2017 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
Copyright 2016 Ryuichi Saito, LLC and the Yanagiba project contributors
Copyright 2016 Ryuichi Laboratories and the Yanagiba project contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Oops, something went wrong.

0 comments on commit b995acb

Please sign in to comment.