Module: EagerEye

Defined in:
lib/eager_eye.rb,
lib/eager_eye/cli.rb,
lib/eager_eye/issue.rb,
lib/eager_eye/railtie.rb,
lib/eager_eye/version.rb,
lib/eager_eye/analyzer.rb,
lib/eager_eye/auto_fixer.rb,
lib/eager_eye/fixers/base.rb,
lib/eager_eye/configuration.rb,
lib/eager_eye/comment_parser.rb,
lib/eager_eye/detectors/base.rb,
lib/eager_eye/fixer_registry.rb,
lib/eager_eye/reporters/base.rb,
lib/eager_eye/reporters/json.rb,
lib/eager_eye/rspec/matchers.rb,
lib/eager_eye/reporters/console.rb,
lib/eager_eye/fixers/pluck_to_select.rb,
lib/eager_eye/detectors/callback_query.rb,
lib/eager_eye/detectors/pluck_to_array.rb,
lib/eager_eye/detectors/loop_association.rb,
lib/eager_eye/detectors/count_in_iteration.rb,
lib/eager_eye/detectors/serializer_nesting.rb,
lib/eager_eye/generators/install_generator.rb,
lib/eager_eye/detectors/custom_method_query.rb,
lib/eager_eye/detectors/missing_counter_cache.rb

Defined Under Namespace

Modules: Detectors, Fixers, Generators, RSpec, Reporters Classes: Analyzer, AutoFixer, CLI, CommentParser, Configuration, Error, FixerRegistry, Issue, Railtie

Constant Summary collapse

VERSION =
"1.0.5"

Class Method Summary collapse

Class Method Details

.configurationObject



29
30
31
# File 'lib/eager_eye.rb', line 29

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



33
34
35
# File 'lib/eager_eye.rb', line 33

def configure
  yield(configuration)
end

.reset_configuration!Object



37
38
39
# File 'lib/eager_eye.rb', line 37

def reset_configuration!
  @configuration = Configuration.new
end