Class: JRuby::Lint::Collectors::Rake

Inherits:
JRuby::Lint::Collector show all
Defined in:
lib/jruby/lint/collectors/rake.rb

Instance Attribute Summary

Attributes inherited from JRuby::Lint::Collector

#checkers, #contents, #file, #findings, #project

Class Method Summary collapse

Methods inherited from JRuby::Lint::Collector

all, #ast, inherited, #initialize, #run

Constructor Details

This class inherits a constructor from JRuby::Lint::Collector

Class Method Details

.detect?(f) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/jruby/lint/collectors/rake.rb', line 4

def self.detect?(f)
  File.basename(f) == 'Rakefile' || File.extname(f) == '.rake'
end