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

Allow disabling the "This file is generated header" with --no-header #389

Merged
merged 1 commit into from
Jul 15, 2021

Conversation

Morriar
Copy link
Collaborator

@Morriar Morriar commented Jul 15, 2021

Motivation

This is useful when the generated file is used in a central repository such as sorbet=-typed
and meant to be augmented manually by a human.

Implementation

Added a config option for file-header and hijacked the rbi_header method.

Tests

See automated tests.

Closes https://github.com/Shopify/sorbet-issues/issues/426.

This is useful when the generated file is used in a central repository such as `sorbet=-typed`
and meant to be augmented manually by a human.

Closes Shopify/team-ruby-dx#426.

Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
@Morriar Morriar requested a review from a team July 15, 2021 16:35
@Morriar Morriar merged commit da998b7 into master Jul 15, 2021
@Morriar Morriar deleted the at-option-header branch July 15, 2021 18:02
@shopify-shipit shopify-shipit bot temporarily deployed to production September 7, 2021 16:35 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants