Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Version struct for danger swift version #588

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

f-meloni
Copy link
Member

@f-meloni f-meloni commented Jul 2, 2023

No description provided.

@f-meloni f-meloni requested a review from 417-72KI July 2, 2023 21:05

struct InlineDependenciesFinder {
let fileReader: FileReading
let config: ScriptManager.Config

init(fileReader: FileReading = FileReader(),
config: ScriptManager.Config) {
config: ScriptManager.Config)
{
Copy link

@github-actions github-actions bot Jul 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Opening braces should be preceded by a single space and on the same line as the declaration. (opening_brace)

self.fileReader = fileReader
self.config = config
}

func resolveInlineDependencies(fromPath path: String,
dangerSwiftVersion: String) throws -> [InlineDependency] {
dangerSwiftVersion: Version) throws -> [InlineDependency]
{
Copy link

@github-actions github-actions bot Jul 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Opening braces should be preceded by a single space and on the same line as the declaration. (opening_brace)

@@ -37,7 +40,8 @@ struct InlineDependenciesFinder {

result.append(InlineDependency(url: url, major: majorVersion))
} else if let firstCharacter = line.unicodeScalars.first,
!CharacterSet.alphanumerics.contains(firstCharacter) {
!CharacterSet.alphanumerics.contains(firstCharacter)
{
Copy link

@github-actions github-actions bot Jul 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Opening braces should be preceded by a single space and on the same line as the declaration. (opening_brace)

@@ -10,7 +11,8 @@ public struct ScriptManager {

public init(prefix: String = "package: ",
file: String = "Dangerplugins",
major: String = "~> ") {
major: String = "~> ")
{
Copy link

@github-actions github-actions bot Jul 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Opening braces should be preceded by a single space and on the same line as the declaration. (opening_brace)

@@ -36,7 +39,8 @@ public struct ScriptManager {
public init(folder: String,
dangerSwiftVersion: String,
packageManager: PackageManager,
logger: Logger) throws {
logger: Logger) throws
{
Copy link

@github-actions github-actions bot Jul 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Opening braces should be preceded by a single space and on the same line as the declaration. (opening_brace)

@@ -215,7 +223,8 @@ public final class Script {
func executeSwiftCommand(_ command: String,
onFolder folder: String? = nil,
arguments: [String] = [],
executor: ShellExecutor) throws -> String {
executor: ShellExecutor) throws -> String
{
Copy link

@github-actions github-actions bot Jul 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ⚠️ Opening braces should be preceded by a single space and on the same line as the declaration. (opening_brace)

@github-actions
Copy link

github-actions bot commented Jul 2, 2023

Warnings
⚠️

Any changes to library code should be reflected in the Changelog.

Please consider adding a note there and adhere to the Changelog Guidelines.

Generated by 🚫 Danger Swift against db1e893

Copy link
Member

@417-72KI 417-72KI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, except lint warnings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants