Class: Gemfilelint::Parser::Valid
- Inherits:
-
Struct
- Object
- Struct
- Gemfilelint::Parser::Valid
- Defined in:
- lib/gemfilelint.rb
Instance Attribute Summary collapse
-
#dsl ⇒ Object
Returns the value of attribute dsl.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#dsl ⇒ Object
Returns the value of attribute dsl
54 55 56 |
# File 'lib/gemfilelint.rb', line 54 def dsl @dsl end |
#path ⇒ Object
Returns the value of attribute path
54 55 56 |
# File 'lib/gemfilelint.rb', line 54 def path @path end |
Instance Method Details
#each_offense(ignore: []) ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/gemfilelint.rb', line 55 def each_offense(ignore: []) dependencies.each do |dependency| next if ignore.include?(dependency) yield dependency_offense_for(dependency) end remotes.each do |remote| yield remote_offense_for(remote) end end |