orange-cloudfoundry/cf-ops-automation

View on GitHub
lib/coa/reference_dataset_documentation/pipeline_docs_writer.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
95%

Method has too many lines. [11/10]
Open

      def pipelines_credential_list
        @pipelines_credential_list ||=
          begin
            pipe_creds = {}

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Coa::ReferenceDatasetDocumentation::PipelineDocsWriter#credentials_pipeline_list has the variable name 'h'
Open

        creds_pipe_list = Hash.new { |h, k| h[k] = [] }

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

Coa::ReferenceDatasetDocumentation::PipelineDocsWriter#credentials_pipeline_list has the variable name 'k'
Open

        creds_pipe_list = Hash.new { |h, k| h[k] = [] }

An Uncommunicative Variable Name is a variable name that doesn't communicate its intent well enough.

Poor names make it hard for the reader to build a mental picture of what's going on in the code. They can also be mis-interpreted; and they hurt the flow of reading, because the reader must slow down to interpret the names.

There are no issues that match your filters.

Category
Status