Showing 4,033 of 4,033 total issues

Percent-encoded cookies can be used to overwrite existing prefixed cookie names
Open

    rack (1.4.7)
Severity: Critical
Found in Gemfile.lock by bundler-audit

Advisory: CVE-2020-8184

Criticality: High

URL: https://groups.google.com/g/rubyonrails-security/c/OWtmozPH9Ak

Solution: upgrade to ~> 2.1.4, >= 2.2.3

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

module ApplicationHelper
  include ExtendedFieldsHelpers
  include ExtendedContentHelpers
  include OaiDcHelpers

Severity: Minor
Found in app/helpers/application_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.

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

module Importer
  unless included_modules.include? Importer
    def self.included(klass)
      klass.send :include, KeteUrlFor
      klass.send :include, OaiDcHelpers
Severity: Minor
Found in lib/importer.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. [610/100]
Open

class ApplicationController < ActionController::Base
  # helper :all # include all helpers, all the time
  protect_from_forgery # See ActionController::RequestForgeryProtection for details

  include DefaultUrlOptions

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

namespace :kete do
  desc 'Do everything that we need done, like adding data to the db, for an upgrade.'
  task upgrade: [
    'kete:upgrade:add_new_baskets',
    'kete:upgrade:add_tech_admin',
Severity: Minor
Found in lib/old_tasks/upgrade.rake 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. [435/25]
Open

  namespace :upgrade do
    desc 'Privacy Controls require that Comment#commentable_private be set.  Update existing comments to have this data.'
    task update_existing_comments_commentable_private: :environment do
      comment_count = 0
      Comment.find(:all, conditions: 'commentable_private is null').each do |comment|
Severity: Minor
Found in lib/old_tasks/upgrade.rake 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.

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

module ExtendedContent
  CLASSES_WITH_SUMMARIES = ['Topic', 'Document']

  unless included_modules.include? ExtendedContent

Severity: Minor
Found in lib/extended_content.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. [404/25]
Open

namespace :kete do
  namespace :tools do
    desc 'Restart application (Passenger specific)'
    task :restart do
      restart_result = system("touch #{RAILS_ROOT}/tmp/restart.txt")
Severity: Minor
Found in lib/old_tasks/tools.rake 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. [402/25]
Open

  namespace :tools do
    desc 'Restart application (Passenger specific)'
    task :restart do
      restart_result = system("touch #{RAILS_ROOT}/tmp/restart.txt")
      if restart_result
Severity: Minor
Found in lib/old_tasks/tools.rake 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. [487/100]
Open

class Basket < ActiveRecord::Base
  scope :except_certain_baskets, lambda { |baskets| where("id not in (?) AND status = 'approved'", baskets) }

  def self.settings
    # * EOIN: we are pretty sure this is not called - raise an exception to be sure
Severity: Minor
Found in app/models/basket.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.

Class has too many lines. [472/100]
Open

class SearchController < ApplicationController
  # Walter McGinnis, 2008-02-07
  # search forms never add anything to db
  # so don't need csrf protection, which is problematic with search forms
  # in kete

This cop checks if the length a class exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

File application_helper.rb has 1379 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require 'avatar/view/action_view_support'

# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  include ExtendedFieldsHelpers
Severity: Major
Found in app/helpers/application_helper.rb - About 3 days to fix

    Class has too many lines. [400/100]
    Open

    class BasketsController < ApplicationController
      permit 'site_admin or admin of :current_basket', only: %i[
        edit update homepage_options destroy
        add_index_topic appearance update_appearance
        set_settings]

    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. [399/100]
    Open

    module ExtendedFieldsHelper
      # Override for ActiveScaffold extended field controller edit view
      # Refer to http://activescaffold.com/docs/form-overrides for details
    
      def topic_type_form_column(record, input_name)

    This cop checks if the length a module exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

    Assignment Branch Condition size for create_new_item_from_record is too high. [217.7/15]
    Open

      def create_new_item_from_record(record, zoom_class, options = {})
        zoom_class_for_params = zoom_class.tableize.singularize
    
        params = options[:params]
    
    

    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

    Class has too many lines. [369/100]
    Open

    class AccountController < ApplicationController
      #####################################################################
      #####################################################################
      ### CONFIGURATION
      #####################################################################

    This cop checks if the length a class exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

    Assignment Branch Condition size for create_new_item_from_record is too high. [203.3/15]
    Open

        def create_new_item_from_record(record, zoom_class, options = {})
          zoom_class_for_params = zoom_class.tableize.singularize
    
          params = options[:params]
    
    
    Severity: Minor
    Found in lib/importer.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

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

    namespace :kete do
      namespace :repair do
        # Run all tasks
        task all: [
          'kete:repair:fix_topic_versions',
    Severity: Minor
    Found in lib/old_tasks/repair.rake 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. [293/25]
    Open

      namespace :repair do
        # Run all tasks
        task all: [
          'kete:repair:fix_topic_versions',
          'kete:repair:set_missing_contributors',
    Severity: Minor
    Found in lib/old_tasks/repair.rake 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. [343/100]
    Open

    class PastPerfect4ImporterWorker < BackgrounDRb::MetaWorker
      set_worker_name :past_perfect4_importer_worker
      set_no_auto_load true
    
      # importer has the version of methods that will work in the context

    This cop checks if the length a class exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

    Severity
    Category
    Status
    Source
    Language