We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent baac83a commit 5d9bc86Copy full SHA for 5d9bc86
2 files changed
lib/problematic_variable_finder/DEFAULT_IGNORED_GEMS
@@ -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
@@ -47,9 +47,14 @@ def in_only_gem_list?(name)
47
end
48
49
def ignore_gem?(name)
50
+ return true if ignore_list.include?(name)
51
options[:ignore] && Array(options[:ignore]).include?(name)
52
53
54
+ def ignore_list
55
+ @ignore_list ||= ProblematicVariableFinder.read_file(File.expand_path('DEFAULT_IGNORED_GEMS', __dir__)).map(&:strip)
56
+ end
57
+
58
def outdated_gems
59
@outdated_gems ||= outdated.map{|o| o.gsub(/\s+\*\s+/, '').split(" ").first }
60
0 commit comments