Showing 15 of 18 total issues
Method load_into
has 122 lines of code (exceeds 25 allowed). Consider refactoring. Open
def self.load_into(configuration)
configuration.load do
fanfare_require 'foreman', 'foreman/procfile'
set(:local_procfile) { ENV['PROCFILE'] || "Procfile" }
Method load_into
has 114 lines of code (exceeds 25 allowed). Consider refactoring. Open
def self.load_into(configuration)
configuration.load do
fanfare_require 'campy'
set(:campfire_yaml_file) do
Method load_into
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
def self.load_into(configuration)
configuration.load do
set :scm, :git
set :use_sudo, false
set :user, "deploy"
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method load_into
has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring. Open
def self.load_into(configuration)
configuration.load do
def _cset(name, *args, &block)
unless exists?(name)
set(name, *args, &block)
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method load_into
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
def self.load_into(configuration)
configuration.load do
set :scm, :git
set :deploy_via, :git_style
set(:release_name) { %{#{Time.now.utc.strftime("%Y%m%d%H%M%S")}-#{real_revision}} }
Method load_into
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
def self.load_into(configuration)
configuration.load do
fanfare_require 'campy'
set(:campfire_yaml_file) do
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method load_into
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
def self.load_into(configuration)
configuration.load do
set :tail_cmd, "tail"
def resolve_logfile
Method load_into
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
def self.load_into(configuration)
configuration.load do
set :bundle_cmd, "bundle"
set :bundle_shebang, "ruby-local-exec"
Method load_into
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
def self.load_into(configuration)
configuration.load do
set :scm, :git
set :use_sudo, false
set :user, "deploy"
Method load_into
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
def self.load_into(configuration)
configuration.load do
def _cset(name, *args, &block)
unless exists?(name)
set(name, *args, &block)
Method load_into
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. Open
def self.load_into(configuration)
configuration.load do
set :scm, :git
set :deploy_via, :git_style
set(:release_name) { %{#{Time.now.utc.strftime("%Y%m%d%H%M%S")}-#{real_revision}} }
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method export
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
def export
svp = configuration[:runit_sv_path]
run [
"svp=#{svp} &&",
Method load_into
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
def self.load_into(configuration)
configuration.load do
fanfare_require 'foreman', 'foreman/procfile'
set(:local_procfile) { ENV['PROCFILE'] || "Procfile" }
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method load_into
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def self.load_into(configuration)
configuration.load do
set :tail_cmd, "tail"
def resolve_logfile
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method load_into
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def self.load_into(configuration)
configuration.load do
set :bundle_cmd, "bundle"
set :bundle_shebang, "ruby-local-exec"
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"