Module: RepoAnalyzer

Extended by:
RepoAnalyzer
Included in:
RepoAnalyzer
Defined in:
lib/repo_analyzer.rb,
lib/repo_analyzer/engine.rb,
lib/repo_analyzer/version.rb,
lib/repo_analyzer/example_class.rb,
app/jobs/repo_analyzer/application_job.rb,
app/clients/repo_analyzer/github_client.rb,
app/models/repo_analyzer/application_record.rb,
app/helpers/repo_analyzer/application_helper.rb,
app/mailers/repo_analyzer/application_mailer.rb,
app/values/repo_analyzer/project_data_bridge.rb,
app/extractors/repo_analyzer/github_extractor.rb,
app/extractors/repo_analyzer/rubocop_extractor.rb,
app/jobs/repo_analyzer/post_extracted_info_job.rb,
app/extractors/repo_analyzer/brakeman_extractor.rb,
app/extractors/repo_analyzer/circleci_extractor.rb,
app/jobs/repo_analyzer/extract_project_info_job.rb,
app/extractors/repo_analyzer/tests_info_extractor.rb,
app/extractors/repo_analyzer/power_types_extractor.rb,
app/extractors/repo_analyzer/project_info_extractor.rb,
app/controllers/repo_analyzer/application_controller.rb,
app/extractors/repo_analyzer/project_config_extractor.rb,
app/extractors/repo_analyzer/project_versions_extractor.rb,
app/extractors/repo_analyzer/rails_best_practices_extractor.rb

Defined Under Namespace

Modules: ApplicationHelper Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, BrakemanExtractor, CircleciExtractor, Engine, ExampleClass, ExtractProjectInfoJob, GithubClient, GithubExtractor, InstallGenerator, PostExtractedInfoJob, PowerTypesExtractor, ProjectConfigExtractor, ProjectDataBridge, ProjectInfoExtractor, ProjectVersionsExtractor, RailsBestPracticesExtractor, RubocopExtractor, TestsInfoExtractor

Constant Summary collapse

VERSION =
'1.3.0'

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#github_personal_tokenObject



32
33
34
35
36
# File 'lib/repo_analyzer.rb', line 32

def github_personal_token
  return ENV["GITHUB_PERSONAL_TOKEN"] if @github_personal_token.blank?

  @github_personal_token
end

#post_extracted_info_endpointObject



38
39
40
41
42
# File 'lib/repo_analyzer.rb', line 38

def post_extracted_info_endpoint
  return ENV["REPO_ANALYZER_URL"] if @post_extracted_info_endpoint.blank?

  @post_extracted_info_endpoint
end

Instance Method Details

#setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (RepoAnalyzer)

    the object that the method was called on



44
45
46
47
# File 'lib/repo_analyzer.rb', line 44

def setup
  yield self
  require "repo_analyzer"
end