-
Notifications
You must be signed in to change notification settings - Fork 24
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
TS interpreter observer #268
base: main
Are you sure you want to change the base?
Conversation
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.
detekt found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
@Suppress("unused") | ||
interface TsInterpreterObserver : UInterpreterObserver { | ||
fun onAssignStatement(simpleValueResolver: TsSimpleValueResolver, stmt: EtsAssignStmt, scope: TsStepScope) {} | ||
// TODO on entry point |
Check warning
Code scanning / detekt
Declarations and declarations with comments should have an empty space between. Warning
interface TsInterpreterObserver : UInterpreterObserver { | ||
fun onAssignStatement(simpleValueResolver: TsSimpleValueResolver, stmt: EtsAssignStmt, scope: TsStepScope) {} | ||
// TODO on entry point | ||
fun onCallWithUnresolvedArguments(simpleValueResolver: TsSimpleValueResolver, stmt: EtsCallExpr, scope: TsStepScope) {} |
Check warning
Code scanning / detekt
Reports lines with exceeded length Warning
interface TsInterpreterObserver : UInterpreterObserver { | ||
fun onAssignStatement(simpleValueResolver: TsSimpleValueResolver, stmt: EtsAssignStmt, scope: TsStepScope) {} | ||
// TODO on entry point | ||
fun onCallWithUnresolvedArguments(simpleValueResolver: TsSimpleValueResolver, stmt: EtsCallExpr, scope: TsStepScope) {} |
Check warning
Code scanning / detekt
Line detected, which is longer than the defined maximum line length in the code style. Warning
interface TsInterpreterObserver : UInterpreterObserver { | ||
fun onAssignStatement(simpleValueResolver: TsSimpleValueResolver, stmt: EtsAssignStmt, scope: TsStepScope) {} | ||
// TODO on entry point | ||
fun onCallWithUnresolvedArguments(simpleValueResolver: TsSimpleValueResolver, stmt: EtsCallExpr, scope: TsStepScope) {} |
Check warning
Code scanning / detekt
Detects mis-aligned parameter lists Warning
interface TsInterpreterObserver : UInterpreterObserver { | ||
fun onAssignStatement(simpleValueResolver: TsSimpleValueResolver, stmt: EtsAssignStmt, scope: TsStepScope) {} | ||
// TODO on entry point | ||
fun onCallWithUnresolvedArguments(simpleValueResolver: TsSimpleValueResolver, stmt: EtsCallExpr, scope: TsStepScope) {} |
Check warning
Code scanning / detekt
Detects mis-aligned parameter lists Warning
fun onCallWithUnresolvedArguments(simpleValueResolver: TsSimpleValueResolver, stmt: EtsCallExpr, scope: TsStepScope) {} | ||
// TODO onCallWithResolvedArguments | ||
fun onIfStatement(simpleValueResolver: TsSimpleValueResolver, stmt: EtsIfStmt, scope: TsStepScope) {} | ||
fun onIfStatementWithResolvedCondition(simpleValueResolver: TsSimpleValueResolver, stmt: EtsIfStmt, condition: UBoolExpr, scope: TsStepScope) {} |
Check warning
Code scanning / detekt
Detects mis-aligned parameter lists Warning
fun onCallWithUnresolvedArguments(simpleValueResolver: TsSimpleValueResolver, stmt: EtsCallExpr, scope: TsStepScope) {} | ||
// TODO onCallWithResolvedArguments | ||
fun onIfStatement(simpleValueResolver: TsSimpleValueResolver, stmt: EtsIfStmt, scope: TsStepScope) {} | ||
fun onIfStatementWithResolvedCondition(simpleValueResolver: TsSimpleValueResolver, stmt: EtsIfStmt, condition: UBoolExpr, scope: TsStepScope) {} |
Check warning
Code scanning / detekt
Detects mis-aligned parameter lists Warning
fun onCallWithUnresolvedArguments(simpleValueResolver: TsSimpleValueResolver, stmt: EtsCallExpr, scope: TsStepScope) {} | ||
// TODO onCallWithResolvedArguments | ||
fun onIfStatement(simpleValueResolver: TsSimpleValueResolver, stmt: EtsIfStmt, scope: TsStepScope) {} | ||
fun onIfStatementWithResolvedCondition(simpleValueResolver: TsSimpleValueResolver, stmt: EtsIfStmt, condition: UBoolExpr, scope: TsStepScope) {} |
Check warning
Code scanning / detekt
Detects mis-aligned parameter lists Warning
fun onCallWithUnresolvedArguments(simpleValueResolver: TsSimpleValueResolver, stmt: EtsCallExpr, scope: TsStepScope) {} | ||
// TODO onCallWithResolvedArguments | ||
fun onIfStatement(simpleValueResolver: TsSimpleValueResolver, stmt: EtsIfStmt, scope: TsStepScope) {} | ||
fun onIfStatementWithResolvedCondition(simpleValueResolver: TsSimpleValueResolver, stmt: EtsIfStmt, condition: UBoolExpr, scope: TsStepScope) {} |
Check warning
Code scanning / detekt
Reports missing newlines (e.g. between parentheses of a multi-line function call Warning
scope.doWithState { | ||
with(ctx) { | ||
val resultSort = typeToSort(stmt.expr.method.returnType) | ||
val resultValue = when (resultSort) { |
Check warning
Code scanning / detekt
Braces do not comply with the specified policy Warning
No description provided.