Skip to content

Conversation

@espinu
Copy link
Owner

@espinu espinu commented Mar 5, 2021

issues #2

@espinu espinu self-assigned this Mar 5, 2021

Background:

What has been done:
Copy link
Owner Author

Choose a reason for hiding this comment

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

some coments

@espinu espinu linked an issue Mar 5, 2021 that may be closed by this pull request
func foo() -> Int {
_ = foo1()
let bla = "unused variable"
return param1+param2
Copy link
Owner Author

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

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

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

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

@espinu
Copy link
Owner Author

espinu commented Mar 5, 2021

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

Code coverage

Total coverage: 41.18%

File Coverage
CI-test/Foo.swift 31.58%

Powered by Slather

Generated by 🚫 Danger

} else if param1 == 11 {

}
return param1+param2
Copy link
Owner Author

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:46

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.

Test issue

2 participants