Module: Bugwatch::RubyFileAdapter
- Extended by:
- RubyFileAdapter
- Included in:
- Commit, FlogScore, RubyComplexity, RubyFileAdapter
- Defined in:
- lib/bugwatch/file_adapters/ruby_file_adapter.rb
Instance Method Summary collapse
Instance Method Details
#analyzable_file?(file) ⇒ Boolean
35 36 37 |
# File 'lib/bugwatch/file_adapters/ruby_file_adapter.rb', line 35 def analyzable_file?(file) ruby_file?(file) && !test_file?(file) end |
#ruby_file?(file) ⇒ Boolean
43 44 45 |
# File 'lib/bugwatch/file_adapters/ruby_file_adapter.rb', line 43 def ruby_file?(file) file.match(/\.rb$/) end |
#test_file?(file) ⇒ Boolean
39 40 41 |
# File 'lib/bugwatch/file_adapters/ruby_file_adapter.rb', line 39 def test_file?(file) file.match(/(_spec|_steps|_test)\.rb$/) end |