Skip to content

Commit

Permalink
Pronto linter dependencies automatically required
Browse files Browse the repository at this point in the history
Pronto runners (linters) expected to run will be automatically required in the CodeAnalysisMixin based on Gemfile specifications for pronto runners (linters).
  • Loading branch information
europ authored and NickLaMuro committed May 8, 2020
1 parent 7dfcef4 commit 6bd031c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/workers/concerns/code_analysis_mixin.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
require 'pronto/runners'
require 'pronto/rubocop'
require 'pronto/yamllint'
require 'pronto/haml'
require 'pronto/gem_names'
require 'pronto/git/repository'
require 'pronto/git/patches'
require 'pronto/git/patch'
Expand Down Expand Up @@ -32,6 +30,8 @@ def merged_linter_results

# run linters via pronto and return the pronto result
def pronto_result
Pronto::GemNames.new.to_a.each { |gem_name| require "pronto/#{gem_name}" }

p_result = nil

# temporary solution for: download repo, obtain changes, get pronto result about changes
Expand Down

0 comments on commit 6bd031c

Please sign in to comment.