tasafo/palestras-coletivas

View on GitHub

Showing 86 of 113 total issues

Block has too many lines. [156/25]
Open

FactoryBot.define do
  factory :user do
    password { 'testdrive' }
    password_confirmation { 'testdrive' }
    password_reset_token { SecureRandom.urlsafe_base64 }
Severity: Minor
Found in spec/support/factories.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. [137/100]
Open

class User
  include Mongoid::Document
  include Mongoid::Timestamps
  include Mongoid::Slug
  include UpdateCounter
Severity: Minor
Found in app/models/user.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. [92/25]
Open

describe User, 'validations' do
  let!(:user) { create(:user, :paul) }

  context 'when valid data' do
    it 'accepts valid attribuites' do

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. [89/25]
Open

describe 'Create talk', js: true do
  let!(:user) { create(:user, :paul) }
  let!(:invited_user) do
    create(:user, :luis, name: 'Luis XIV', username: '@user_luis')
  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 'Create event', js: true do
  let!(:user) { create(:user, :paul) }
  let!(:billy) do
    create(:user, :billy, username: '@user_billy', name: 'Billy Boy')
  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. [77/25]
Open

describe ExportSubscribersController do
  let!(:user) { create(:user, :paul) }
  let!(:other_user) { create(:user, :billy) }
  let!(:another_user) { create(:user, :luis) }

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 Event, 'validations' do
  context 'when valid data' do
    let!(:user) { create(:user, :paul) }
    let!(:other_user) { create(:user, :billy) }
    let!(:event) do

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. [69/25]
Open

describe 'Create enrollment', js: true do
  let!(:user) { create(:user, :paul) }
  let!(:other_user) { create(:user, :billy) }
  let!(:another_user) { create(:user, :luis) }
  let!(:event) do

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. [68/25]
Open

shared_examples 'a commentable' do
  let!(:user) { create(:user, :paul) }
  let!(:commentor) { create(:user, :billy) }

  before do

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. [64/25]
Open

describe User, 'talk methods' do
  let!(:user) { create(:user, :paul) }
  let!(:talk) { create(:talk, users: [user], owner: user) }
  let!(:regular_user) { create(:user, :luis) }

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. [60/25]
Open

describe 'Edit user' do
  let!(:user) { create(:user, :paul) }
  let!(:other_user) { create(:user, :billy) }
  let!(:image_path) { "#{Rails.root}/app/assets/images/without_avatar.jpg" }

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. [59/25]
Open

RSpec.configure do |config|
  config.after(:suite) do
    WebMock.disable_net_connect!(allow: 'codeclimate.com')
  end

Severity: Minor
Found in spec/support/webmock.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. [56/25]
Open

describe 'Register presence' do
  let!(:user) { create(:user, :paul) }
  let!(:other_user) { create(:user, :billy) }
  let!(:another_user) { create(:user, :luis) }

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. [55/25]
Open

describe 'Show public talk' do
  let!(:user) { create(:user, :paul) }
  let!(:talk) { create(:talk, users: [user], owner: user) }
  let!(:another_talk) { create(:another_talk, users: [user], owner: user) }
  let!(:spdeck_talk) { create(:speakerdeck_talk, users: [user], owner: user) }

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. [54/25]
Open

  config.before(:each) do
    stub_request(:any, 'www.example.com')

    stub_request(:get, /gravatar.com/)
      .with(headers: { 'Accept' => '*/*', 'User-Agent' => 'Ruby' })
Severity: Minor
Found in spec/support/webmock.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. [53/25]
Open

describe 'Edit talk', js: true do
  let!(:user) { create(:user, :paul) }
  let!(:billy) do
    create(:user, :billy, username: '@user_billy', name: 'Billy Boy')
  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. [49/25]
Open

describe 'Edit event', js: true do
  let!(:user) { create(:user, :paul) }
  let!(:other_user) { create(:user, :billy) }
  let!(:another_user) { create(:user, :luis) }
  let!(:event) do

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. [49/25]
Open

  context 'when the current user owns the account' do
    before do
      login_as user, edit_user_path(user)
    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. [47/25]
Open

describe 'Create schedule', js: true do
  let!(:user) { create(:user, :paul) }

  let!(:event) { create(:event, :tasafoconf, users: [user], owner: user) }

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. [44/25]
Open

describe Rateable do
  class DummyEvent
    include Mongoid::Document
    include Rateable
    embeds_many :ratings, as: :rateable

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.

Severity
Category
Status
Source
Language