14 files inspected, 25 offenses detected:

 

Gemfile - 1 offense

Line #3convention: Layout/SpaceInsideBlockBraces: Space between { and | missing.
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }

 

Rakefile - 2 offenses

Line #6convention: Style/HashSyntax: Use the new Ruby 1.9 hash syntax. (https://github.com/rubocop-hq/ruby-style-guide#hash-literals)
task :default => :spec
Line #7convention: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. (https://github.com/rubocop-hq/ruby-style-guide#consistent-string-literals)
Rake::Task.send :load, 'tasks/code_quality.rake'

 

lib/code_quality/railtie.rb - 2 offenses

Line #3convention: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. (https://github.com/rubocop-hq/ruby-style-guide#consistent-string-literals)
    load 'tasks/code_quality.rake'
Line #5convention: Layout/TrailingBlankLines: Final newline missing. (https://github.com/rubocop-hq/ruby-style-guide#newline-eof)
end

 

lib/tasks/code_quality.rake - 1 offense

Line #293error: Lint/Syntax: unexpected token error (Using Ruby 2.2 parser; configure using TargetRubyVersion parameter, under AllCops)
        @audit_tasks[task_name][:report_path] = @report_path&.sub("tmp/code_quality/", "")

 

spec/cli_spec.rb - 1 offense

Line #1convention: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. (https://github.com/rubocop-hq/ruby-style-guide#consistent-string-literals)
require 'spec_helper'

 

spec/code_quality_spec.rb - 14 offenses

Line #1convention: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. (https://github.com/rubocop-hq/ruby-style-guide#consistent-string-literals)
require 'spec_helper'
Line #2convention: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. (https://github.com/rubocop-hq/ruby-style-guide#consistent-string-literals)
require 'rake'
Line #11convention: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. (https://github.com/rubocop-hq/ruby-style-guide#consistent-string-literals)
    Rake::Task.send :load, 'tasks/code_quality.rake'
Line #27convention: Layout/SpaceBeforeBlockBraces: Space missing to the left of {.
    expect{ Rake::Task['code_quality'] }.to raise_error(RuntimeError) # "Don't know how to build task 'code_quality'"
Line #27convention: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. (https://github.com/rubocop-hq/ruby-style-guide#consistent-string-literals)
    expect{ Rake::Task['code_quality'] }.to raise_error(RuntimeError) # "Don't know how to build task 'code_quality'"
Line #31convention: Layout/SpaceBeforeBlockBraces: Space missing to the left of {.
    expect{ Rake::Task['code_quality'] }.not_to raise_error
Line #31convention: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. (https://github.com/rubocop-hq/ruby-style-guide#consistent-string-literals)
    expect{ Rake::Task['code_quality'] }.not_to raise_error
Line #35convention: Style/Semicolon: Do not use semicolons to terminate expressions. (https://github.com/rubocop-hq/ruby-style-guide#no-semicolon)
    before { Rake::Task.clear; load_rake_tasks }
Line #40convention: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. (https://github.com/rubocop-hq/ruby-style-guide#consistent-string-literals)
        expect { run_rake 'code_quality' }.not_to raise_error
Line #45convention: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. (https://github.com/rubocop-hq/ruby-style-guide#consistent-string-literals)
      expect { run_rake 'code_quality:quality_audit:rubycritic' }.to output(/## Rubycritic/).to_stdout
Line #49convention: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. (https://github.com/rubocop-hq/ruby-style-guide#consistent-string-literals)
      expect { run_rake 'code_quality:quality_audit:rubocop' }.to output(/## rubocop/).to_stdout
Line #53convention: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. (https://github.com/rubocop-hq/ruby-style-guide#consistent-string-literals)
      expect { run_rake 'code_quality:quality_audit:metric_fu' }.to output(/## metric_fu/).to_stdout
Line #61convention: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. (https://github.com/rubocop-hq/ruby-style-guide#consistent-string-literals)
    context 'security_audit with option' do
Line #74convention: Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping. (https://github.com/rubocop-hq/ruby-style-guide#consistent-string-literals)
    context 'quality_audit with option' do

 

spec/env_helper.rb - 4 offenses

Line #8convention: Layout/SpaceBeforeBlockBraces: Space missing to the left of {.
    original_envs = ENV.select{ |k, _| envs.has_key? k }
Line #9convention: Layout/SpaceBeforeBlockBraces: Space missing to the left of {.
    envs.each{ |k, v| ENV[k] = v }
Line #13convention: Layout/SpaceBeforeBlockBraces: Space missing to the left of {.
    envs.each{ |k, _| ENV.delete k }
Line #14convention: Layout/SpaceBeforeBlockBraces: Space missing to the left of {.
    original_envs.each{ |k, v| ENV[k] = v }