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

xtask: Copyright and license lints for more file types #769

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

romank-msft
Copy link
Contributor

@romank-msft romank-msft commented Feb 3, 2025

Few files turned out to not have the notes, and they were fixed
manually.
Provide a robust solution by updating house rules in xtask.

Additionally this includes an updatex for the automatic fix
mode. I made sure that produces desired results and is
idempotent.

Suggested-by: Daniel Prilik [email protected]
Reported-by: Matt Kurjanowicz [email protected]
Fixes: #766

@romank-msft romank-msft requested a review from a team as a code owner February 3, 2025 20:44
@romank-msft
Copy link
Contributor Author

Likely more fixes might be needed. Not familiar with the code, going to learn empirically, through CI errors.

@daprilik
Copy link
Contributor

daprilik commented Feb 3, 2025

Thanks for sending out a follow-up! See my comments on the issue for some potential pitfalls you might run into here :)

@benhillis
Copy link
Member

Thanks for sending out a follow-up! See my comments on the issue for some potential pitfalls you might run into here :)

Unless anything requires the #! in the .py file, I think we can just remove it...

@benhillis
Copy link
Member

            };

I think we're missing handlers for the new file types here.


Refers to: xtask/src/tasks/fmt/house_rules/copyright.rs:72 in b314ba9. [](commit_id = b314ba9, deletion_comment = False)

@romank-msft romank-msft requested a review from a team as a code owner February 6, 2025 01:35
smalis-msft
smalis-msft previously approved these changes Feb 6, 2025
Copy link
Contributor

@daprilik daprilik left a comment

Choose a reason for hiding this comment

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

you'll need to fix the --fix path as well (i.e: Ben's comment).

aside from that, LGTM! Thanks again for making this robust fix.

Few files turned out to not have the notes, and they were fixed
manually.
Provide a robust solution by updating house rules in xtask.

Additionally this includes an updatex for the automatic fix
mode. I made sure that produces desired results and is
idempotent

Suggested-by: Daniel Prilik  <[email protected]>
Reported-by: Matt Kurjanowicz <[email protected]>
Fixes: microsoft#766
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.

Detect missing copyright and license comments in Python and PowerShell files
4 participants