Skip to content

Commit

Permalink
Disable RuboCop warning in Lucide icon components
Browse files Browse the repository at this point in the history
  • Loading branch information
AliOsm committed Aug 30, 2024
1 parent 9790d6a commit 7cd61d9
Show file tree
Hide file tree
Showing 72 changed files with 146 additions and 18 deletions.
6 changes: 4 additions & 2 deletions generators/lucide_icons.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
TEMPLATE = ERB.new <<~TEMPLATE
# frozen_string_literal: true
# rubocop:disable Layout/LineLength
# rubocop:disable Layout/LineLength,Metrics/AbcSize,Metrics/BlockLength,Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand All @@ -22,7 +22,7 @@ def view_template
end
end
end
# rubocop:enable Layout/LineLength
# rubocop:enable Layout/LineLength,Metrics/AbcSize,Metrics/BlockLength,Metrics/MethodLength
TEMPLATE

def run
Expand Down Expand Up @@ -80,6 +80,8 @@ def create_icon_component(icon_file_path)
)

system("rubocop -A #{component_file_path}", out: File::NULL, err: File::NULL)

File.write(component_file_path, File.read(component_file_path).gsub('rubocop:enable ,', 'rubocop:enable '))
end

def read_and_convert_icon(icon_file_path)
Expand Down
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/biohazard.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -31,3 +32,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/book_dashed.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -32,3 +33,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/box_select.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -33,3 +34,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
4 changes: 2 additions & 2 deletions lib/phlex/icons/lucide/boxes.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Layout/LineLength
# rubocop:disable Layout/LineLength,Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -43,4 +43,4 @@ def view_template
end
end
end
# rubocop:enable Layout/LineLength
# rubocop:enable Layout/LineLength,Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/brain.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -36,3 +37,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/brain_circuit.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -37,3 +38,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
4 changes: 2 additions & 2 deletions lib/phlex/icons/lucide/brain_cog.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Layout/LineLength
# rubocop:disable Layout/LineLength,Metrics/AbcSize,Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -41,4 +41,4 @@ def view_template
end
end
end
# rubocop:enable Layout/LineLength
# rubocop:enable Layout/LineLength,Metrics/AbcSize,Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/bug.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -35,3 +36,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/bug_off.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -30,3 +31,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/bug_play.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -33,3 +34,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/building.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -32,3 +33,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/bus_front.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -30,3 +31,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/cake.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -30,3 +31,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/calculator.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -31,3 +32,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/calendar_cog.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -34,3 +35,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/calendar_days.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -31,3 +32,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/castle.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -30,3 +31,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/circle_dot_dashed.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -30,3 +31,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/cloud_cog.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -31,3 +32,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/cog.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -35,3 +36,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/cpu.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -31,3 +32,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/dna.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -32,3 +33,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/dna_off.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -31,3 +32,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/ferris_wheel.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -30,3 +31,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/file_cog.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -35,3 +36,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/fingerprint.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -30,3 +31,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/flower.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -34,3 +35,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
4 changes: 2 additions & 2 deletions lib/phlex/icons/lucide/folder_cog.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Layout/LineLength
# rubocop:disable Layout/LineLength,Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -35,4 +35,4 @@ def view_template
end
end
end
# rubocop:enable Layout/LineLength
# rubocop:enable Layout/LineLength,Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/grape.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -30,3 +31,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
2 changes: 2 additions & 0 deletions lib/phlex/icons/lucide/grip.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

# rubocop:disable Metrics/MethodLength
module Phlex
module Icons
module Lucide
Expand Down Expand Up @@ -30,3 +31,4 @@ def view_template
end
end
end
# rubocop:enable Metrics/MethodLength
Loading

0 comments on commit 7cd61d9

Please sign in to comment.