Showing 676 of 676 total issues
Block has too many lines. [605/25] Open
describe Gitdocs::Repository do
before do
FileUtils.rm_rf(GitFactory.working_directory)
GitFactory.init(:local)
GitFactory.init_bare(:remote)
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Block has too many lines. [311/25] Open
describe Gitdocs::Repository::Path do
let(:path) { Gitdocs::Repository::Path.new(repository, "/#{relative_path}") }
let(:repository) { stub(root: GitFactory.expand_path(:local)) }
let(:relative_path) { 'directory/file' }
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Block has too many lines. [296/25] Open
describe Gitdocs::BrowserApp do
include Rack::Test::Methods
def app
Gitdocs::BrowserApp
end
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Block has too many lines. [222/25] Open
describe 'resource methods' do
let(:repository) { stub(root: 'root_path') }
let(:repository_path) { stub }
before do
Gitdocs::Share
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
File repository_test.rb
has 608 lines of code (exceeds 250 allowed). Consider refactoring. Open
require File.expand_path('../test_helper', __FILE__)
describe Gitdocs::Repository do
before do
FileUtils.rm_rf(GitFactory.working_directory)
Module has too many lines. [136/100] Open
module Helper
include MiniTest::Aruba
include Capybara::DSL
include Capybara::RSpecMatchers
- Read upRead up
- Exclude checks
This cop checks if the length a module exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Class has too many lines. [117/100] Open
class BrowserApp < Sinatra::Base
set :haml, format: :html5
helpers RenderingHelper
- Read upRead up
- Exclude checks
This cop checks if the length a class exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Block has too many lines. [131/25] Open
describe 'get /:id' do
describe 'meta' do
before do
repository_path.stubs(:meta).returns(key: :value)
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Class has too many lines. [110/100] Open
class Path
attr_reader :relative_path
# @param [Gitdocs::Repository] repository
# @param [String] relative_path
- Read upRead up
- Exclude checks
This cop checks if the length a class exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Module has too many lines. [103/100] Open
module GitFactory
class << self
attr_accessor :working_directory
def configure
- Read upRead up
- Exclude checks
This cop checks if the length a module exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Block has too many lines. [109/25] Open
describe Gitdocs::Share do
before do
ShellTools.capture { Gitdocs::Initializer.initialize_database }
end
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Block has too many lines. [108/25] Open
describe '#merge' do
subject { repository.merge }
before { repository.stubs(:author_count).returns(:author_counts) }
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Block has too many lines. [108/25] Open
describe 'browse and edit repository file through the UI' do
before do
gitdocs_add('repo1')
gitdocs_add('local')
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Block has too many lines. [98/25] Open
describe Gitdocs::GitNotifier do
let(:git_notifier) { Gitdocs::GitNotifier.new(:root, :show_notifications) }
describe '.for_merge' do
subject { git_notifier.for_merge(result) }
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Block has too many lines. [95/25] Open
describe 'Gitdocs::Manager' do
describe '.start' do
subject { Gitdocs::Manager.start(:arg1, :arg2, :arg3) }
before do
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Block has too many lines. [85/25] Open
describe Gitdocs::Repository::Committer do
before do
FileUtils.rm_rf('tmp/unit')
GitFactory.init(:local)
end
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Block has too many lines. [81/25] Open
describe Gitdocs::Notifier do
describe 'public methods' do
let(:notifier) { mock }
before { Gitdocs::Notifier.stubs(:instance).returns(notifier) }
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Block has too many lines. [75/25] Open
describe '#push' do
subject { repository.push }
before { repository.stubs(:author_count).returns(:author_counts) }
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Block has too many lines. [71/25] Open
describe 'Gitdocs' do
describe '.log_path' do
subject { Gitdocs.log_path }
before do
Gitdocs::Initializer.stubs(:root_dirname).returns(:root_dirname)
- Read upRead up
- Exclude checks
This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.
Assignment Branch Condition size for after_teardown is too high. [34.77/15] Open
def after_teardown
restore_env
processes.clear
if File.exist?(PID_FILE)
- Read upRead up
- Exclude checks
This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric