theforeman/foreman_remote_execution

View on GitHub
app/models/input_template_renderer.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method render has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def render
    @template_input_values ||= values_from_invocation
    @template.validate_unique_inputs!
    source = Foreman::Renderer.get_source(
      template: template,
Severity: Minor
Found in app/models/input_template_renderer.rb - About 1 hr to fix

    Method initialize has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      def initialize(template, host = nil, invocation = nil, input_values = nil, preview = false, templates_stack = [])
    Severity: Minor
    Found in app/models/input_template_renderer.rb - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status