[build] add copyright headers to rbs, pyi, ts, mjs, and erb files - #17720
Conversation
|
Thank you, @titusfortner for this code suggestion. The support packages contain example code that many users find helpful, but they do not necessarily represent After reviewing the change, unless it is a critical fix or a feature that is needed for Selenium We actively encourage people to add the wrapper and helper code that makes sense for them to their own frameworks. |
Code Review by Qodo
Context used✅ Compliance rules (platform):
25 rules 1. Header update drops comments
|
PR Summary by QodoExtend copyright stamping to RBS/PYI/TS/MJS/CJS and rb.erb files Description
Diagram
High-Level Assessment
Files changed (210)
|
🔗 Related Issues
💥 What does this PR do?
Extends the copyright script to cover file types it was silently skipping, so license headers stay enforced instead of drifting.
Newly covered:
.rbs,.pyi,.ts,.mjs,.cjs, and.rb.erb. Third-party RBS stubs (rb/sig/gems/) and generated.d.tsfiles are excluded. Running the script stamps 209 previously-uncovered files; it also corrected an outdated notice already present on the.pyistubs.🔧 Implementation Notes
.rbsuses#comments but does not get the# frozen_string_literal: trueprefix that.rbfiles use — that magic comment is meaningless in a signature file..rb.erbis scoped to that exact suffix (not all.erb) so a future non-Ruby template wouldn't wrongly inherit the Ruby prefix.globskips dotfiles, sojavascript/grid-ui/.eslintrc.cjsremains unstamped — left as-is since it's a lint-config dotfile.🤖 AI assistance
💡 Additional Considerations
🔄 Types of changes