orange-cloudfoundry/cf-ops-automation

View on GitHub
lib/coa/utils/concourse/build.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
94%

Coa::Utils::Concourse has no descriptive comment
Open

    module Concourse
Severity: Minor
Found in lib/coa/utils/concourse/build.rb by reek

Classes and modules are the units of reuse and release. It is therefore considered good practice to annotate every class and module with a brief comment outlining its responsibilities.

Example

Given

class Dummy
  # Do things...
end

Reek would emit the following warning:

test.rb -- 1 warning:
  [1]:Dummy has no descriptive comment (IrresponsibleModule)

Fixing this is simple - just an explaining comment:

# The Dummy class is responsible for ...
class Dummy
  # Do things...
end

Coa::Utils::Concourse::Build#status is a writable attribute
Open

        attr_accessor :status
Severity: Minor
Found in lib/coa/utils/concourse/build.rb by reek

A class that publishes a setter for an instance variable invites client classes to become too intimate with its inner workings, and in particular with its representation of state.

The same holds to a lesser extent for getters, but Reek doesn't flag those.

Example

Given:

class Klass
  attr_accessor :dummy
end

Reek would emit the following warning:

reek test.rb

test.rb -- 1 warning:
  [2]:Klass declares the writable attribute dummy (Attribute)

There are no issues that match your filters.

Category
Status