15
6
DO avoid empty blocks as they are usually a sign of missing implementation.
void doSomething() {}
void doSomething() { actuallyDoSomething(); } void doSomething() { // TODO: implement doSomething }
To enable the avoid_empty_blocks rule, add avoid_empty_blocks under custom_lint > rules in your analysis_options.yaml file:
avoid_empty_blocks
analysis_options.yaml
custom_lint: rules: - avoid_empty_blocks