Sha256: 180e9ba2a8d57cf813b4ef372ed470e35cd22887bc3376f80c5c1cfd26bf1892

Contents?: true

Size: 706 Bytes

Versions: 33

Compression:

Stored size: 706 Bytes

Contents

# frozen_string_literal: true

require 'rubycritic/analysers/helpers/methods_counter'
require 'rubycritic/analysers/helpers/modules_locator'
require 'rubycritic/colorize'

module RubyCritic
  module Analyser
    class Attributes
      include Colorize
      def initialize(analysed_modules)
        @analysed_modules = analysed_modules
      end

      def run
        @analysed_modules.each do |analysed_module|
          analysed_module.methods_count = MethodsCounter.new(analysed_module).count
          analysed_module.name = ModulesLocator.new(analysed_module).first_name
          print green '.'
        end
        puts ''
      end

      def to_s
        'attributes'
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
rubycritic-4.9.1 lib/rubycritic/analysers/attributes.rb
rubycritic-4.9.0 lib/rubycritic/analysers/attributes.rb
rubycritic-4.8.1 lib/rubycritic/analysers/attributes.rb
rubycritic-4.8.0 lib/rubycritic/analysers/attributes.rb
rubycritic-4.7.0 lib/rubycritic/analysers/attributes.rb
rubycritic-4.6.1 lib/rubycritic/analysers/attributes.rb
rubycritic-4.6.0 lib/rubycritic/analysers/attributes.rb
rubycritic-4.5.2 lib/rubycritic/analysers/attributes.rb
rubycritic-4.5.1 lib/rubycritic/analysers/attributes.rb
rubycritic-4.5.0 lib/rubycritic/analysers/attributes.rb
rubycritic-4.4.1 lib/rubycritic/analysers/attributes.rb
rubycritic-4.4.0 lib/rubycritic/analysers/attributes.rb
rubycritic-4.3.3 lib/rubycritic/analysers/attributes.rb
rubycritic-4.3.2 lib/rubycritic/analysers/attributes.rb
rubycritic-4.3.1 lib/rubycritic/analysers/attributes.rb
rubycritic-4.3.0 lib/rubycritic/analysers/attributes.rb
rubycritic-4.2.2 lib/rubycritic/analysers/attributes.rb
rubycritic-4.2.1 lib/rubycritic/analysers/attributes.rb
rubycritic-4.2.0 lib/rubycritic/analysers/attributes.rb
rubycritic-simplecov-4.1.1 lib/rubycritic/analysers/attributes.rb