Skip to content

Conversation

@pysojic
Copy link

@pysojic pysojic commented Dec 25, 2025

This pull request removes support for the MIT license from the beman-tidy repository.

Changes included:

  • Removed MIT from the list of supported/recognized licenses in the codebase and any associated configuration.
  • Updated documentation and/or help text to no longer mention MIT as a supported option.
  • Adjusted validation, tests, and fixtures accordingly (removing MIT-related test cases and ensuring remaining license paths still behave as expected).

@JeffGarland
Copy link
Member

@pysojic welcome and thanks for the PR! Most of this looks fine to me, but there's a couple stray changes as noted that don't seem right. We'll see what others think.

@ednolan
Copy link
Member

ednolan commented Dec 26, 2025

Approved. @JeffGarland -- ignore those apparent stray changes -- this repository includes copies of exemplar's README.md file as unit test data, and the "changes" git is picking up are mostly just caused by differences in the version of exemplar from which the README.md was copied.

@neatudarius
Copy link
Member

Hello! Thanks @pysojic and welcome to Beman!

As a context for @bemanproject/project-leads , Pierre is a student and I will mentor him to contribute to Beman. Things might not be perfect or expected from first PRs, I will handle the onboard.

TLDR: You can ignore this PR for the moment. CC: @ednolan @JeffGarland

@neatudarius
Copy link
Member

Approved. @JeffGarland -- ignore those apparent stray changes -- this repository includes copies of exemplar's README.md file as unit test data, and the "changes" git is picking up are mostly just caused by differences in the version of exemplar from which the README.md was copied.

Agree, we don't need to update these copies. And we definitely don't need to update them in this PR (expect the license related ones).

CC: @ednolan @JeffGarland

Copy link
Member

@neatudarius neatudarius left a comment

Choose a reason for hiding this comment

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

Thanks again @pysojic for contributing in Beman!

Your core implementation (inside beman_tidy/lib) it's 100% complete and correct. The updates in the tests/ directory also have changes which are at least out of scope for this PR (and also I think they will decrease our coverage).

Please check my comments:

## Other

This is a valid README.md file that follows the Beman Standard: the license is properly formatted - MIT License.
This project is licensed under the Apache License 2.0 with LLVM Exceptions.
Copy link
Member

Choose a reason for hiding this comment

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

@JeffGarland , here is a valid and required update for this PR.

CC: @pysojic , please keep this change.

This is a valid README.md file that follows the Beman Standard: the library status is properly formatted.

This is a valid README.md file that follows the Beman Standard: the license is properly formatted - MIT License.
This is a valid README.md file that follows the Beman Standard: the license is properly formatted.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
This is a valid README.md file that follows the Beman Standard: the license is properly formatted.
This is a valid README.md file that follows the Beman Standard: the license is properly formatted - Apache License.

Please be consistent with previous wording

Path(f"{valid_prefix}/README-v1.md"),
Path(f"{valid_prefix}/README-v2.md"),
Path(f"{valid_prefix}/README-v3.md"),
Path(f"{valid_prefix}/README-v4.md"),
Copy link
Member

Choose a reason for hiding this comment

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

We should not delete this. Check the comment for updating README-v4 to be still relevant readme.

Path(f"{valid_prefix}/README-v1.md"),
Path(f"{valid_prefix}/README-v2.md"),
Path(f"{valid_prefix}/README-v3.md"),
Path(f"{valid_prefix}/README-v4.md"),
Copy link
Member

Choose a reason for hiding this comment

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

We should not delete this. Check the comment for updating README-v4 to be still relevant readme.

# License: Apache License 2.0 with LLVM Exceptions
Path(f"{valid_prefix}/README-v3.md"),
# License: Apache License 2.0 with LLVM Exceptions and MIT License
Path(f"{valid_prefix}/README-v4.md"),
Copy link
Member

Choose a reason for hiding this comment

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

We should not delete this. Check the comment for updating README-v4 to be still relevant readme.

Copy link
Member

Choose a reason for hiding this comment

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

I don't see a reason to delete this file!

Again, it's used to increase coverage for multiple rules

  • license
  • badges
  • status lines
  • implement lines

The removal of files v4 and v5 are out of scope for current issue (MIT license). Please put v5 back

Path(f"{valid_prefix}/README-v2.md"),
Path(f"{valid_prefix}/README-v3.md"),
Path(f"{valid_prefix}/README-v4.md"),
Path(f"{valid_prefix}/README-v5.md"),
Copy link
Member

Choose a reason for hiding this comment

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

Similarly, we should revert this line (keep v5 in tests).

Copy link
Author

Choose a reason for hiding this comment

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

Sounds good! Will make the changes you mentioned over the weekend!

@JeffGarland
Copy link
Member

TLDR: You can ignore this PR for the moment. CC: @ednolan @JeffGarland

Approving -- we'll let you handle it :) Thx for the context

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