proper_super_dispose

SeverityQuick FixOptions
Error

Details

DO call super.dispose() at the end of the dispose method.

Bad
@override
void dispose() {
  super.dispose();
  _dispose();
}
Good
@override
void dispose() {
  _dispose();
  super.dispose();
}

Usage

To enable the proper_super_dispose rule, add proper_super_dispose under plugins > pyramid_lint > diagnostics in your analysis_options.yaml file:

plugins:
  pyramid_lint: <version>
    diagnostics:
      proper_super_dispose: true