Skip to content

Commit c75b7f0

Browse files
committed
[build] update copyright task to skip files and include formatting
1 parent e58fd53 commit c75b7f0

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Rakefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ task :authors do
481481
end
482482

483483
namespace :copyright do
484+
desc 'Update Copyright notices on all files in repo'
484485
task :update do
485486
Copyright.new.update(
486487
FileList['javascript/**/*.js'].exclude(
@@ -497,11 +498,18 @@ namespace :copyright do
497498
)
498499
)
499500
Copyright.new.update(FileList['javascript/**/*.tsx'])
500-
Copyright.new(comment_characters: '#').update(FileList['py/**/*.py'])
501+
Copyright.new(comment_characters: '#').update(FileList['py/**/*.py'].exclude(
502+
'py/selenium/webdriver/common/bidi/cdp.py',
503+
'py/generate.py',
504+
'py/selenium/webdriver/common/devtools/**/*',
505+
'py/venv/**/*')
506+
)
501507
Copyright.new(comment_characters: '#', prefix: ["# frozen_string_literal: true\n", "\n"])
502-
.update(FileList['rb/**/*.rb'])
508+
.update(FileList['rb/**/*.rb'])
503509
Copyright.new.update(FileList['java/**/*.java'])
504510
Copyright.new.update(FileList['rust/**/*.rs'])
511+
512+
sh './scripts/format.sh'
505513
end
506514
end
507515

java/src/org/openqa/selenium/bidi/script/RealmType.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18-
1918
package org.openqa.selenium.bidi.script;
2019

2120
public enum RealmType {

0 commit comments

Comments
 (0)