Skip to content

Commit

Permalink
[build] update copyright task to skip files and include formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Dec 19, 2023
1 parent e58fd53 commit c75b7f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 10 additions & 2 deletions Rakefile
Expand Up @@ -481,6 +481,7 @@ task :authors do
end

namespace :copyright do
desc 'Update Copyright notices on all files in repo'
task :update do
Copyright.new.update(
FileList['javascript/**/*.js'].exclude(
Expand All @@ -497,11 +498,18 @@ namespace :copyright do
)
)
Copyright.new.update(FileList['javascript/**/*.tsx'])
Copyright.new(comment_characters: '#').update(FileList['py/**/*.py'])
Copyright.new(comment_characters: '#').update(FileList['py/**/*.py'].exclude(
'py/selenium/webdriver/common/bidi/cdp.py',
'py/generate.py',
'py/selenium/webdriver/common/devtools/**/*',
'py/venv/**/*')
)
Copyright.new(comment_characters: '#', prefix: ["# frozen_string_literal: true\n", "\n"])
.update(FileList['rb/**/*.rb'])
.update(FileList['rb/**/*.rb'])
Copyright.new.update(FileList['java/**/*.java'])
Copyright.new.update(FileList['rust/**/*.rs'])

sh './scripts/format.sh'
end
end

Expand Down
1 change: 0 additions & 1 deletion java/src/org/openqa/selenium/bidi/script/RealmType.java
Expand Up @@ -15,7 +15,6 @@
// specific language governing permissions and limitations
// under the License.


package org.openqa.selenium.bidi.script;

public enum RealmType {
Expand Down

0 comments on commit c75b7f0

Please sign in to comment.