-
public final class AsyncAndSyncRule extends DiktatRule
This rule finds if using runBlocking in asynchronous code
-
-
Constructor Summary
Constructors Constructor Description AsyncAndSyncRule(List<RulesConfig> configRules)
-
Method Summary
Modifier and Type Method Description final Boolean
getIsFixMode()
Default value is false final Unit
setIsFixMode(Boolean isFixMode)
Default value is false final Function3<Integer, String, Boolean, Unit>
getEmitWarn()
Will be initialized in visit final Unit
setEmitWarn(Function3<Integer, String, Boolean, Unit> emitWarn)
Will be initialized in visit final List<RulesConfig>
getConfigRules()
final List<Rule>
getInspections()
final String
getId()
Unit
logic(ASTNode node)
Logic of the rule -
-
Constructor Detail
-
AsyncAndSyncRule
AsyncAndSyncRule(List<RulesConfig> configRules)
-
-
Method Detail
-
getIsFixMode
final Boolean getIsFixMode()
Default value is false
-
setIsFixMode
final Unit setIsFixMode(Boolean isFixMode)
Default value is false
-
getEmitWarn
final Function3<Integer, String, Boolean, Unit> getEmitWarn()
Will be initialized in visit
-
setEmitWarn
final Unit setEmitWarn(Function3<Integer, String, Boolean, Unit> emitWarn)
Will be initialized in visit
-
getConfigRules
final List<RulesConfig> getConfigRules()
-
getInspections
final List<Rule> getInspections()
-
-
-
-