Skip to content

Commit 9ceed81

Browse files
committed
rubocop fixes
1 parent 33760d7 commit 9ceed81

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ source 'https://rubygems.org'
22

33
gemspec
44

5-
gem 'rake-compiler', '~> 1.3.0'
5+
gem 'rake-compiler', '~> 1.3.0'

lib/code_ownership.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
# typed: strict
44

5-
require 'set'
65
require 'code_teams'
76
require 'sorbet-runtime'
87
require 'json'

lib/code_ownership/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def self.validate!(argv)
6565
files = if !specified_files.empty?
6666
# Files explicitly provided on command line
6767
if options[:diff]
68-
$stderr.puts "Warning: Ignoring --diff flag because explicit files were provided"
68+
warn 'Warning: Ignoring --diff flag because explicit files were provided'
6969
end
7070
specified_files.select { |file| File.exist?(file) }
7171
elsif options[:diff]

lib/code_ownership/private/for_file_output_builder.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module CodeOwnership
66
module Private
77
class ForFileOutputBuilder
88
extend T::Sig
9+
910
private_class_method :new
1011

1112
sig { params(file_path: String, json: T::Boolean, verbose: T::Boolean).void }

spec/lib/code_ownership/cli_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
end
8080

8181
it 'prioritizes explicit files over git diff and warns the user' do
82-
expect($stderr).to receive(:puts).with("Warning: Ignoring --diff flag because explicit files were provided")
82+
expect($stderr).to receive(:puts).with('Warning: Ignoring --diff flag because explicit files were provided')
8383
expect(CodeOwnership).to receive(:validate!) do |args|
8484
expect(args[:files]).to eq(['app/services/my_file.rb'])
8585
end

0 commit comments

Comments
 (0)