Skip to content

Commit b6f60cd

Browse files
committed
Fix rubocop violations in FilesystemProject
And re-generate rubocop todo list with current version of rubocop.
1 parent 07a3741 commit b6f60cd

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.rubocop_todo.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2023-02-20 08:27:43 UTC using RuboCop version 1.39.0.
3+
# on 2024-04-17 15:45:30 UTC using RuboCop version 1.47.0.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
8-
9-
# Offense count: 2
10-
Lint/UselessAssignment:
11-
Exclude:
12-
- 'app/models/filesystem_project.rb'

app/models/filesystem_project.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ def self.component(file, dir)
3636
extension = File.extname(file).delete('.')
3737
code = File.read(dir.join(File.basename(file)).to_s)
3838
default = (File.basename(file) == 'main.py')
39-
component = { name:, extension:, content: code, default: }
39+
{ name:, extension:, content: code, default: }
4040
end
4141

4242
def self.image(file, dir)
4343
filename = File.basename(file)
4444
io = File.open(dir.join(filename).to_s)
45-
image = { filename:, io: }
45+
{ filename:, io: }
4646
end
4747
end

0 commit comments

Comments
 (0)