Skip to content

Conversation

@espinu
Copy link
Owner

@espinu espinu commented Jan 10, 2021

No description provided.

func foo() -> Int {
_ = foo1()
let bla = "unused variable"
return param1+param2
Copy link
Owner Author

@espinu espinu Jan 11, 2021

Choose a reason for hiding this comment

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

⚠️ Operators should be surrounded by a single whitespace when they are being used.
operator_usage_whitespace Foo.swift:17

let bla = "unused variable"
return param1+param2
}
func foo1() -> Int {
Copy link
Owner Author

@espinu espinu Jan 11, 2021

Choose a reason for hiding this comment

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

⚠️ Function should have complexity 5 or less: currently complexity equals 12
cyclomatic_complexity Foo.swift:19

if param1 == 11 {

}
}else if param1 == 11 {
Copy link
Owner Author

@espinu espinu Jan 11, 2021

Choose a reason for hiding this comment

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

⚠️ Else and catch should be on the same line, one space after the previous declaration.
statement_position Foo.swift:31


}
}
}else if param1 == 11 {
Copy link
Owner Author

@espinu espinu Jan 11, 2021

Choose a reason for hiding this comment

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

⚠️ Else and catch should be on the same line, one space after the previous declaration.
statement_position Foo.swift:36

} else if param1 == 11 {

}
return param1+param2
Copy link
Owner Author

@espinu espinu Jan 11, 2021

Choose a reason for hiding this comment

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

⚠️ Operators should be surrounded by a single whitespace when they are being used.
operator_usage_whitespace Foo.swift:45

@espinu
Copy link
Owner Author

espinu commented Jan 11, 2021

1 Error
🚫 CI-test/Foo.swift has less than 60% code coverage
1 Warning
⚠️ Big PR

Code coverage

Total coverage: 41.67%

File Coverage
CI-test/Foo.swift 32.43%

Powered by Slather

Generated by 🚫 Danger

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.

2 participants