Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce apply_default_exclude config to separate default and user excluding patterns #1251

Merged
merged 1 commit into from
Dec 25, 2024

Conversation

nobu
Copy link
Member

@nobu nobu commented Dec 23, 2024

@@ -355,18 +355,24 @@ class RDoc::Options
# +--[no-]embed-mixins+ (Default is +false+.)
attr_accessor :embed_mixins

##
# Exclude default pattersn to exclude.
attr_reader :default_exclude
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the set of excluded patterns is called @exclude now, @default_exclude feels like would contain the value of DEFAULT_EXCLUDE. I think maybe apply_default_exclude expresses what this value does better?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@nobu nobu requested a review from st0012 December 24, 2024 09:13
@st0012 st0012 changed the title Separate patterns by --exclude option from defaults Introduce apply_default_exclude config to separate default and user excluding patterns Dec 25, 2024
Copy link
Member

@st0012 st0012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. Thank you 👍

@st0012 st0012 merged commit a7fdc73 into ruby:master Dec 25, 2024
22 checks passed
@nobu nobu deleted the default_exclude branch December 29, 2024 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants