Skip to content

Investigate useCategories option #4046

Open
@jonasfj

Description

@jonasfj

It appears to me that useCategories defaults to true, and that nobody reads it.

    DartdocOptionArgOnly<bool>('useCategories', true, resourceProvider,
        help: 'Display categories in the sidebar of packages'),
   bool get useCategories => optionSet['useCategories'].valueAt(context);

I certainly can't find any references of it in the templates or repository at large.

Perhaps, we should:

  • Allow the option to be passed, but ignore it.
  • Print a warning that it is deprecated when the option is passed.
  • Remove useCategories => optionSet['useCategories'].valueAt(context);

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueA good starting issue for contributors (issues with this label will appear in /contribute)type-code-healthInternal changes to our tools and workflows to make them cleaner, simpler, or more maintainable

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions