-
Notifications
You must be signed in to change notification settings - Fork 0
WIP #1
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
base: main
Are you sure you want to change the base?
WIP #1
Conversation
| func foo() -> Int { | ||
| _ = foo1() | ||
| let bla = "unused variable" | ||
| return param1+param2 |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 12cyclomatic_complexity Foo.swift:19 |
| if param1 == 11 { | ||
|
|
||
| } | ||
| }else if param1 == 11 { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
No description provided.