Skip to content

[discussion]: Naming of Exclude and Rule #103

@signekb

Description

@signekb

Description

In Config, we currently have Exclude and Rule(s), but I think we can find some better/clearer/more intuitive names for them, especially for Rule 🌱

They are described as so:

@DataClass
class Config:
"""Configuration for checking a Data Package descriptor.

Attributes:
exclude (list[Exclude]): Any issues matching any of these exclusions will be
ignored (i.e., removed from the output of the check function).
rules (list[Rule]): Custom checks listed here will be done in addition
to checks defined in the Data Package standard.

And in the classes themselves:

@DataClass
class Exclude:
"""Exclude issues when checking a Data Package descriptor.

@DataClass
class Rule:
"""A custom check to be done on a Data Package descriptor.

So, as far as I understand, Exclude actually defines which checks to "ignore" or exclude from (the output of) the checks that are already in the schema, while Rule defines a custom check to be done, a check that is added

So, I think there might be something here with the words ignore, exclude, custom, and add.
Could we rename Exclude and Rule to something like in the table below?

Exclude Rule
ExcludeCheck CustomCheck
Ignore Add
Exclude Custom

As we all know, naming is difficult, so let's discuss! What do you think?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions