nesquena/gitdocs

View on GitHub

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)
Severity: Minor
Found in test/unit/repository_test.rb by rubocop

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' }

Severity: Minor
Found in test/unit/repository_path_test.rb by rubocop

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
Severity: Minor
Found in test/unit/browser_app_test.rb by rubocop

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
Severity: Minor
Found in test/unit/browser_app_test.rb by rubocop

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)
Severity: Major
Found in test/unit/repository_test.rb - About 1 day to fix

    Module has too many lines. [136/100]
    Open

    module Helper
      include MiniTest::Aruba
      include Capybara::DSL
      include Capybara::RSpecMatchers
    
    
    Severity: Minor
    Found in test/integration/test_helper.rb by rubocop

    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
    
    
    Severity: Minor
    Found in lib/gitdocs/browser_app.rb by rubocop

    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)
    
    
    Severity: Minor
    Found in test/unit/browser_app_test.rb by rubocop

    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
    Severity: Minor
    Found in lib/gitdocs/repository/path.rb by rubocop

    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
    Severity: Minor
    Found in test/support/git_factory.rb by rubocop

    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
    
    
    Severity: Minor
    Found in test/unit/share_test.rb by rubocop

    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) }
    
    
    Severity: Minor
    Found in test/unit/repository_test.rb by rubocop

    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')
    
    
    Severity: Minor
    Found in test/integration/web/browse_test.rb by rubocop

    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) }
    Severity: Minor
    Found in test/unit/git_notifier_test.rb by rubocop

    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
    Severity: Minor
    Found in test/unit/manager_test.rb by rubocop

    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

    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) }
    
    
    Severity: Minor
    Found in test/unit/notifier_test.rb by rubocop

    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) }
    
    
    Severity: Minor
    Found in test/unit/repository_test.rb by rubocop

    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)
    Severity: Minor
    Found in test/unit/gitdocs_test.rb by rubocop

    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)
    Severity: Minor
    Found in test/integration/test_helper.rb by rubocop

    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

    Severity
    Category
    Status
    Source
    Language