Skip to content

WIP#1

Open
espinu wants to merge 24 commits into
mainfrom
try-ruby-danger
Open

WIP#1
espinu wants to merge 24 commits into
mainfrom
try-ruby-danger

Conversation

@espinu

@espinu espinu commented Jan 10, 2021

Copy link
Copy Markdown
Owner

No description provided.

Comment thread CI-test/Foo.swift
func foo() -> Int {
_ = foo1()
let bla = "unused variable"
return param1+param2

@espinu espinu Jan 11, 2021

Copy link
Copy Markdown
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

Comment thread CI-test/Foo.swift
let bla = "unused variable"
return param1+param2
}
func foo1() -> Int {

@espinu espinu Jan 11, 2021

Copy link
Copy Markdown
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

Comment thread CI-test/Foo.swift
if param1 == 11 {

}
}else if param1 == 11 {

@espinu espinu Jan 11, 2021

Copy link
Copy Markdown
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

Comment thread CI-test/Foo.swift

}
}
}else if param1 == 11 {

@espinu espinu Jan 11, 2021

Copy link
Copy Markdown
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

Comment thread CI-test/Foo.swift
} else if param1 == 11 {

}
return param1+param2

@espinu espinu Jan 11, 2021

Copy link
Copy Markdown
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:45

@espinu

espinu commented Jan 11, 2021

Copy link
Copy Markdown
Owner Author
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.

1 participant