Skip to content

Commit 5d9bc86

Browse files
committed
add default ignored gem list
1 parent baac83a commit 5d9bc86

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
actioncable
2+
actionmailbox
3+
actionmailer
4+
actionpack
5+
actiontext
6+
actionview
7+
activejob
8+
activemodel
9+
activerecord
10+
activeresource
11+
activestorage
12+
activesupport
13+
rails

lib/problematic_variable_finder/gem_problems.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,14 @@ def in_only_gem_list?(name)
4747
end
4848

4949
def ignore_gem?(name)
50+
return true if ignore_list.include?(name)
5051
options[:ignore] && Array(options[:ignore]).include?(name)
5152
end
5253

54+
def ignore_list
55+
@ignore_list ||= ProblematicVariableFinder.read_file(File.expand_path('DEFAULT_IGNORED_GEMS', __dir__)).map(&:strip)
56+
end
57+
5358
def outdated_gems
5459
@outdated_gems ||= outdated.map{|o| o.gsub(/\s+\*\s+/, '').split(" ").first }
5560
end

0 commit comments

Comments
 (0)