Module: SixthSense

Defined in:
lib/sixth_sense.rb,
lib/sixth_sense/cli.rb,
lib/sixth_sense/model.rb,
lib/sixth_sense/config.rb,
lib/sixth_sense/result.rb,
lib/sixth_sense/version.rb,
lib/sixth_sense/analyzer.rb,
lib/sixth_sense/rake_task.rb,
lib/sixth_sense/changed_files.rb,
lib/sixth_sense/adapters/rspec.rb,
lib/sixth_sense/engines/mutant.rb,
lib/sixth_sense/mutation_cache.rb,
lib/sixth_sense/reporters/html.rb,
lib/sixth_sense/reporters/json.rb,
lib/sixth_sense/analysis_runner.rb,
lib/sixth_sense/mutation_engine.rb,
lib/sixth_sense/reporters/sarif.rb,
lib/sixth_sense/source_location.rb,
lib/sixth_sense/analysis_context.rb,
lib/sixth_sense/adapters/minitest.rb,
lib/sixth_sense/framework_adapter.rb,
lib/sixth_sense/reporters/console.rb,
lib/sixth_sense/adapters/test_unit.rb,
lib/sixth_sense/guardrail/baseline.rb,
lib/sixth_sense/reporters/markdown.rb,
lib/sixth_sense/scoring/aggregator.rb,
lib/sixth_sense/guardrail/evaluator.rb,
lib/sixth_sense/runners/coverage_runner.rb,
lib/sixth_sense/mutation_matrix_producer.rb,
lib/sixth_sense/runners/coverage_snapshot.rb,
lib/sixth_sense/analyzers/redundancy_clone.rb,
lib/sixth_sense/analyzers/adequacy_coverage.rb,
lib/sixth_sense/analyzers/adequacy_mutation.rb,
lib/sixth_sense/analyzers/quality_flakiness.rb,
lib/sixth_sense/mutation_score_cache_writer.rb,
lib/sixth_sense/runners/rspec_coverage_probe.rb,
lib/sixth_sense/analyzers/quality_test_smells.rb,
lib/sixth_sense/analyzers/redundancy_coverage.rb,
lib/sixth_sense/analyzers/redundancy_mutation.rb,
lib/sixth_sense/runners/checked_coverage_trace.rb,
lib/sixth_sense/runners/checked_coverage_runner.rb,
lib/sixth_sense/runners/minitest_coverage_probe.rb,
lib/sixth_sense/analyzers/redundancy_requirement.rb,
lib/sixth_sense/mutation_matrix_mutant_generator.rb,
lib/sixth_sense/runners/test_unit_coverage_probe.rb,
lib/sixth_sense/runners/checked_coverage_estimator.rb,
lib/sixth_sense/analyzers/adequacy_checked_coverage.rb,
lib/sixth_sense/analyzers/quality_assertion_density.rb,
lib/sixth_sense/runners/rspec_checked_coverage_probe.rb,
lib/sixth_sense/runners/minitest_checked_coverage_probe.rb,
lib/sixth_sense/runners/test_unit_checked_coverage_probe.rb

Defined Under Namespace

Modules: Adapters, Analyzers, Engines, Guardrail, Model, Reporters, Result, Runners, Scoring Classes: AnalysisContext, AnalysisRunner, Analyzer, AnalyzerResult, Availability, CLI, ChangedFiles, Config, Error, FrameworkAdapter, MatrixMutation, MutationCache, MutationEngine, MutationMatrixMutantGenerator, MutationMatrixProducer, MutationMatrixResult, MutationPlan, MutationRunResult, MutationScoreCacheWriter, Plugin, RakeTask, SourceLocation

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.analyzersObject



19
20
21
# File 'lib/sixth_sense.rb', line 19

def analyzers
  @analyzers ||= []
end

.plugin {|registry| ... } ⇒ Object

Yields:

  • (registry)


29
30
31
32
33
# File 'lib/sixth_sense.rb', line 29

def plugin
  registry = Plugin.new
  yield registry if block_given?
  registry
end

.register_analyzer(analyzer_class) ⇒ Object



23
24
25
26
27
# File 'lib/sixth_sense.rb', line 23

def register_analyzer(analyzer_class)
  return if analyzers.include?(analyzer_class)

  analyzers << analyzer_class
end