RnD-Soft/lusnoc

View on GitHub
lib/lusnoc/configuration.rb

Summary

Maintainability
A
0 mins
Test Coverage

Lusnoc::Configuration#logger is a writable attribute
Open

    attr_accessor :url, :acl_token, :logger, :http_timeout
Severity: Minor
Found in lib/lusnoc/configuration.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)

Lusnoc::Configuration#url is a writable attribute
Open

    attr_accessor :url, :acl_token, :logger, :http_timeout
Severity: Minor
Found in lib/lusnoc/configuration.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)

Lusnoc::Configuration#http_timeout is a writable attribute
Open

    attr_accessor :url, :acl_token, :logger, :http_timeout
Severity: Minor
Found in lib/lusnoc/configuration.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)

Lusnoc::Configuration#acl_token is a writable attribute
Open

    attr_accessor :url, :acl_token, :logger, :http_timeout
Severity: Minor
Found in lib/lusnoc/configuration.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