app/models/package.rb

Summary

Maintainability
A
3 hrs
Test Coverage
B
83%

Class Package has 30 methods (exceeds 20 allowed). Consider refactoring.
Open

class Package < ApplicationRecord
  include PaperTrailed
  delegate :program_id, to: :project

  FREQUENCIES = %w[monthly quarterly yearly].freeze
Severity: Minor
Found in app/models/package.rb - About 3 hrs to fix

    Method has too many lines. [23/10]
    Open

      def to_unified_h
        {
          stable_id:             stable_id,
          name:                  name,
          states:                states.map do |state|
    Severity: Minor
    Found in app/models/package.rb by rubocop

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

    Method has too many lines. [16/10]
    Open

      def create_data_element_group(data_element_ids)
        deg = [
          { name:          name,
            short_name:    name[0..49],
            code:          name[0..49],
    Severity: Minor
    Found in app/models/package.rb by rubocop

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

    Method has too many lines. [11/10]
    Open

      def allowed_rules
        allowed_rules = [
          Rule::RULE_TYPE_PAYMENT,
          Rule::RULE_TYPE_ACTIVITY,
          Rule::RULE_TYPE_PACKAGE,
    Severity: Minor
    Found in app/models/package.rb by rubocop

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

    Method has too many lines. [11/10]
    Open

      def create_package_entity_groups(main_entity_groups_ids, target_entity_groups_ids)
        dhis2 = project.dhis2_connection
        all_group_ids = (main_entity_groups_ids || []) + (target_entity_groups_ids || [])
        organisation_unit_groups = dhis2.organisation_unit_groups.find(all_group_ids)
    
    
    Severity: Minor
    Found in app/models/package.rb by rubocop

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

    Method has too many lines. [11/10]
    Open

      def org_unit_group_sets
        completer = Autocomplete::Dhis2.new(project.project_anchor)
        (groupsets_ext_refs || []).each_with_object([]) do |ref, result|
          data = { id: ref }
          search_results = completer.find(ref, kind: "organisation_unit_group_sets")
    Severity: Minor
    Found in app/models/package.rb by rubocop

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

    Specify a :dependent option.
    Open

      has_many :package_payment_rules
    Severity: Minor
    Found in app/models/package.rb by rubocop

    This cop looks for has_many or has_one associations that don't specify a :dependent option. It doesn't register an offense if :through option was specified.

    Example:

    # bad
    class User < ActiveRecord::Base
      has_many :comments
      has_one :avatar
    end
    
    # good
    class User < ActiveRecord::Base
      has_many :comments, dependent: :restrict_with_exception
      has_one :avatar, dependent: :destroy
      has_many :patients, through: :appointments
    end

    TODO found
    Open

      # TODO: Refactor away the expensiveness
    Severity: Minor
    Found in app/models/package.rb by fixme

    Align the elements of a hash literal if they span more than one line.
    Open

            data.merge!(type:         "organisation_unit_group_set",
    Severity: Minor
    Found in app/models/package.rb by rubocop

    Check that the keys, separators, and values of a multi-line hash literal are aligned according to configuration. The configuration options are:

    - key (left align keys, one space before hash rockets and values)
    - separator (align hash rockets and colons, right align keys)
    - table (left align keys, hash rockets, and values)

    The treatment of hashes passed as the last argument to a method call can also be configured. The options are:

    - always_inspect
    - always_ignore
    - ignore_implicit (without curly braces)

    Alternatively you can specify multiple allowed styles. That's done by passing a list of styles to EnforcedStyles.

    Example: EnforcedHashRocketStyle: key (default)

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
      :ba => baz
    }

    Example: EnforcedHashRocketStyle: separator

    # bad
    {
      :foo => bar,
      :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
       :ba => baz
    }

    Example: EnforcedHashRocketStyle: table

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    
    # good
    {
      :foo => bar,
      :ba  => baz
    }

    Example: EnforcedColonStyle: key (default)

    # bad
    {
      foo: bar,
       ba: baz
    }
    {
      foo: bar,
      ba:  baz
    }
    
    # good
    {
      foo: bar,
      ba: baz
    }

    Example: EnforcedColonStyle: separator

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
       ba: baz
    }

    Example: EnforcedColonStyle: table

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
      ba:  baz
    }

    Example: EnforcedLastArgumentHashStyle: always_inspect (default)

    # Inspect both implicit and explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
                 bar: 2)
    
    # good
    do_something(
      foo: 1,
      bar: 2
    )
    
    # good
    do_something({foo: 1,
                  bar: 2})
    
    # good
    do_something({
      foo: 1,
      bar: 2
    })

    Example: EnforcedLastArgumentHashStyle: always_ignore

    # Ignore both implicit and explicit hashes.
    
    # good
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Example: EnforcedLastArgumentHashStyle: ignore_implicit

    # Ignore only implicit hashes.
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
      bar: 2)

    Example: EnforcedLastArgumentHashStyle: ignore_explicit

    # Ignore only explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Align the elements of a hash literal if they span more than one line.
    Open

            short_name:    name[0..49],
    Severity: Minor
    Found in app/models/package.rb by rubocop

    Check that the keys, separators, and values of a multi-line hash literal are aligned according to configuration. The configuration options are:

    - key (left align keys, one space before hash rockets and values)
    - separator (align hash rockets and colons, right align keys)
    - table (left align keys, hash rockets, and values)

    The treatment of hashes passed as the last argument to a method call can also be configured. The options are:

    - always_inspect
    - always_ignore
    - ignore_implicit (without curly braces)

    Alternatively you can specify multiple allowed styles. That's done by passing a list of styles to EnforcedStyles.

    Example: EnforcedHashRocketStyle: key (default)

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
      :ba => baz
    }

    Example: EnforcedHashRocketStyle: separator

    # bad
    {
      :foo => bar,
      :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
       :ba => baz
    }

    Example: EnforcedHashRocketStyle: table

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    
    # good
    {
      :foo => bar,
      :ba  => baz
    }

    Example: EnforcedColonStyle: key (default)

    # bad
    {
      foo: bar,
       ba: baz
    }
    {
      foo: bar,
      ba:  baz
    }
    
    # good
    {
      foo: bar,
      ba: baz
    }

    Example: EnforcedColonStyle: separator

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
       ba: baz
    }

    Example: EnforcedColonStyle: table

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
      ba:  baz
    }

    Example: EnforcedLastArgumentHashStyle: always_inspect (default)

    # Inspect both implicit and explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
                 bar: 2)
    
    # good
    do_something(
      foo: 1,
      bar: 2
    )
    
    # good
    do_something({foo: 1,
                  bar: 2})
    
    # good
    do_something({
      foo: 1,
      bar: 2
    })

    Example: EnforcedLastArgumentHashStyle: always_ignore

    # Ignore both implicit and explicit hashes.
    
    # good
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Example: EnforcedLastArgumentHashStyle: ignore_implicit

    # Ignore only implicit hashes.
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
      bar: 2)

    Example: EnforcedLastArgumentHashStyle: ignore_explicit

    # Ignore only explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Align the elements of a hash literal if they span more than one line.
    Open

            code:          name[0..49],
    Severity: Minor
    Found in app/models/package.rb by rubocop

    Check that the keys, separators, and values of a multi-line hash literal are aligned according to configuration. The configuration options are:

    - key (left align keys, one space before hash rockets and values)
    - separator (align hash rockets and colons, right align keys)
    - table (left align keys, hash rockets, and values)

    The treatment of hashes passed as the last argument to a method call can also be configured. The options are:

    - always_inspect
    - always_ignore
    - ignore_implicit (without curly braces)

    Alternatively you can specify multiple allowed styles. That's done by passing a list of styles to EnforcedStyles.

    Example: EnforcedHashRocketStyle: key (default)

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
      :ba => baz
    }

    Example: EnforcedHashRocketStyle: separator

    # bad
    {
      :foo => bar,
      :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
       :ba => baz
    }

    Example: EnforcedHashRocketStyle: table

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    
    # good
    {
      :foo => bar,
      :ba  => baz
    }

    Example: EnforcedColonStyle: key (default)

    # bad
    {
      foo: bar,
       ba: baz
    }
    {
      foo: bar,
      ba:  baz
    }
    
    # good
    {
      foo: bar,
      ba: baz
    }

    Example: EnforcedColonStyle: separator

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
       ba: baz
    }

    Example: EnforcedColonStyle: table

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
      ba:  baz
    }

    Example: EnforcedLastArgumentHashStyle: always_inspect (default)

    # Inspect both implicit and explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
                 bar: 2)
    
    # good
    do_something(
      foo: 1,
      bar: 2
    )
    
    # good
    do_something({foo: 1,
                  bar: 2})
    
    # good
    do_something({
      foo: 1,
      bar: 2
    })

    Example: EnforcedLastArgumentHashStyle: always_ignore

    # Ignore both implicit and explicit hashes.
    
    # good
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Example: EnforcedLastArgumentHashStyle: ignore_implicit

    # Ignore only implicit hashes.
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
      bar: 2)

    Example: EnforcedLastArgumentHashStyle: ignore_explicit

    # Ignore only explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Align the elements of a hash literal if they span more than one line.
    Open

          stable_id:             stable_id,
    Severity: Minor
    Found in app/models/package.rb by rubocop

    Check that the keys, separators, and values of a multi-line hash literal are aligned according to configuration. The configuration options are:

    - key (left align keys, one space before hash rockets and values)
    - separator (align hash rockets and colons, right align keys)
    - table (left align keys, hash rockets, and values)

    The treatment of hashes passed as the last argument to a method call can also be configured. The options are:

    - always_inspect
    - always_ignore
    - ignore_implicit (without curly braces)

    Alternatively you can specify multiple allowed styles. That's done by passing a list of styles to EnforcedStyles.

    Example: EnforcedHashRocketStyle: key (default)

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
      :ba => baz
    }

    Example: EnforcedHashRocketStyle: separator

    # bad
    {
      :foo => bar,
      :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
       :ba => baz
    }

    Example: EnforcedHashRocketStyle: table

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    
    # good
    {
      :foo => bar,
      :ba  => baz
    }

    Example: EnforcedColonStyle: key (default)

    # bad
    {
      foo: bar,
       ba: baz
    }
    {
      foo: bar,
      ba:  baz
    }
    
    # good
    {
      foo: bar,
      ba: baz
    }

    Example: EnforcedColonStyle: separator

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
       ba: baz
    }

    Example: EnforcedColonStyle: table

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
      ba:  baz
    }

    Example: EnforcedLastArgumentHashStyle: always_inspect (default)

    # Inspect both implicit and explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
                 bar: 2)
    
    # good
    do_something(
      foo: 1,
      bar: 2
    )
    
    # good
    do_something({foo: 1,
                  bar: 2})
    
    # good
    do_something({
      foo: 1,
      bar: 2
    })

    Example: EnforcedLastArgumentHashStyle: always_ignore

    # Ignore both implicit and explicit hashes.
    
    # good
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Example: EnforcedLastArgumentHashStyle: ignore_implicit

    # Ignore only implicit hashes.
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
      bar: 2)

    Example: EnforcedLastArgumentHashStyle: ignore_explicit

    # Ignore only explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Align the elements of a hash literal if they span more than one line.
    Open

          rules:                 Hash[
            rules.map(&:to_unified_h).map do |rule|
              [rule[:stable_id], rule]
            end
          ]
    Severity: Minor
    Found in app/models/package.rb by rubocop

    Check that the keys, separators, and values of a multi-line hash literal are aligned according to configuration. The configuration options are:

    - key (left align keys, one space before hash rockets and values)
    - separator (align hash rockets and colons, right align keys)
    - table (left align keys, hash rockets, and values)

    The treatment of hashes passed as the last argument to a method call can also be configured. The options are:

    - always_inspect
    - always_ignore
    - ignore_implicit (without curly braces)

    Alternatively you can specify multiple allowed styles. That's done by passing a list of styles to EnforcedStyles.

    Example: EnforcedHashRocketStyle: key (default)

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
      :ba => baz
    }

    Example: EnforcedHashRocketStyle: separator

    # bad
    {
      :foo => bar,
      :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
       :ba => baz
    }

    Example: EnforcedHashRocketStyle: table

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    
    # good
    {
      :foo => bar,
      :ba  => baz
    }

    Example: EnforcedColonStyle: key (default)

    # bad
    {
      foo: bar,
       ba: baz
    }
    {
      foo: bar,
      ba:  baz
    }
    
    # good
    {
      foo: bar,
      ba: baz
    }

    Example: EnforcedColonStyle: separator

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
       ba: baz
    }

    Example: EnforcedColonStyle: table

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
      ba:  baz
    }

    Example: EnforcedLastArgumentHashStyle: always_inspect (default)

    # Inspect both implicit and explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
                 bar: 2)
    
    # good
    do_something(
      foo: 1,
      bar: 2
    )
    
    # good
    do_something({foo: 1,
                  bar: 2})
    
    # good
    do_something({
      foo: 1,
      bar: 2
    })

    Example: EnforcedLastArgumentHashStyle: always_ignore

    # Ignore both implicit and explicit hashes.
    
    # good
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Example: EnforcedLastArgumentHashStyle: ignore_implicit

    # Ignore only implicit hashes.
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
      bar: 2)

    Example: EnforcedLastArgumentHashStyle: ignore_explicit

    # Ignore only explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Align the elements of a hash literal if they span more than one line.
    Open

        in:      FREQUENCIES,
    Severity: Minor
    Found in app/models/package.rb by rubocop

    Check that the keys, separators, and values of a multi-line hash literal are aligned according to configuration. The configuration options are:

    - key (left align keys, one space before hash rockets and values)
    - separator (align hash rockets and colons, right align keys)
    - table (left align keys, hash rockets, and values)

    The treatment of hashes passed as the last argument to a method call can also be configured. The options are:

    - always_inspect
    - always_ignore
    - ignore_implicit (without curly braces)

    Alternatively you can specify multiple allowed styles. That's done by passing a list of styles to EnforcedStyles.

    Example: EnforcedHashRocketStyle: key (default)

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
      :ba => baz
    }

    Example: EnforcedHashRocketStyle: separator

    # bad
    {
      :foo => bar,
      :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
       :ba => baz
    }

    Example: EnforcedHashRocketStyle: table

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    
    # good
    {
      :foo => bar,
      :ba  => baz
    }

    Example: EnforcedColonStyle: key (default)

    # bad
    {
      foo: bar,
       ba: baz
    }
    {
      foo: bar,
      ba:  baz
    }
    
    # good
    {
      foo: bar,
      ba: baz
    }

    Example: EnforcedColonStyle: separator

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
       ba: baz
    }

    Example: EnforcedColonStyle: table

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
      ba:  baz
    }

    Example: EnforcedLastArgumentHashStyle: always_inspect (default)

    # Inspect both implicit and explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
                 bar: 2)
    
    # good
    do_something(
      foo: 1,
      bar: 2
    )
    
    # good
    do_something({foo: 1,
                  bar: 2})
    
    # good
    do_something({
      foo: 1,
      bar: 2
    })

    Example: EnforcedLastArgumentHashStyle: always_ignore

    # Ignore both implicit and explicit hashes.
    
    # good
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Example: EnforcedLastArgumentHashStyle: ignore_implicit

    # Ignore only implicit hashes.
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
      bar: 2)

    Example: EnforcedLastArgumentHashStyle: ignore_explicit

    # Ignore only explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Align the elements of a hash literal if they span more than one line.
    Open

              name:               name
    Severity: Minor
    Found in app/models/package.rb by rubocop

    Check that the keys, separators, and values of a multi-line hash literal are aligned according to configuration. The configuration options are:

    - key (left align keys, one space before hash rockets and values)
    - separator (align hash rockets and colons, right align keys)
    - table (left align keys, hash rockets, and values)

    The treatment of hashes passed as the last argument to a method call can also be configured. The options are:

    - always_inspect
    - always_ignore
    - ignore_implicit (without curly braces)

    Alternatively you can specify multiple allowed styles. That's done by passing a list of styles to EnforcedStyles.

    Example: EnforcedHashRocketStyle: key (default)

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
      :ba => baz
    }

    Example: EnforcedHashRocketStyle: separator

    # bad
    {
      :foo => bar,
      :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
       :ba => baz
    }

    Example: EnforcedHashRocketStyle: table

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    
    # good
    {
      :foo => bar,
      :ba  => baz
    }

    Example: EnforcedColonStyle: key (default)

    # bad
    {
      foo: bar,
       ba: baz
    }
    {
      foo: bar,
      ba:  baz
    }
    
    # good
    {
      foo: bar,
      ba: baz
    }

    Example: EnforcedColonStyle: separator

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
       ba: baz
    }

    Example: EnforcedColonStyle: table

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
      ba:  baz
    }

    Example: EnforcedLastArgumentHashStyle: always_inspect (default)

    # Inspect both implicit and explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
                 bar: 2)
    
    # good
    do_something(
      foo: 1,
      bar: 2
    )
    
    # good
    do_something({foo: 1,
                  bar: 2})
    
    # good
    do_something({
      foo: 1,
      bar: 2
    })

    Example: EnforcedLastArgumentHashStyle: always_ignore

    # Ignore both implicit and explicit hashes.
    
    # good
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Example: EnforcedLastArgumentHashStyle: ignore_implicit

    # Ignore only implicit hashes.
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
      bar: 2)

    Example: EnforcedLastArgumentHashStyle: ignore_explicit

    # Ignore only explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Align the elements of a hash literal if they span more than one line.
    Open

          activity_packages:     Hash[
            activity_packages.flat_map(&:activity).map(&:to_unified_h).map do |activity|
              [activity[:stable_id], activity]
            end
          ],
    Severity: Minor
    Found in app/models/package.rb by rubocop

    Check that the keys, separators, and values of a multi-line hash literal are aligned according to configuration. The configuration options are:

    - key (left align keys, one space before hash rockets and values)
    - separator (align hash rockets and colons, right align keys)
    - table (left align keys, hash rockets, and values)

    The treatment of hashes passed as the last argument to a method call can also be configured. The options are:

    - always_inspect
    - always_ignore
    - ignore_implicit (without curly braces)

    Alternatively you can specify multiple allowed styles. That's done by passing a list of styles to EnforcedStyles.

    Example: EnforcedHashRocketStyle: key (default)

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
      :ba => baz
    }

    Example: EnforcedHashRocketStyle: separator

    # bad
    {
      :foo => bar,
      :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
       :ba => baz
    }

    Example: EnforcedHashRocketStyle: table

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    
    # good
    {
      :foo => bar,
      :ba  => baz
    }

    Example: EnforcedColonStyle: key (default)

    # bad
    {
      foo: bar,
       ba: baz
    }
    {
      foo: bar,
      ba:  baz
    }
    
    # good
    {
      foo: bar,
      ba: baz
    }

    Example: EnforcedColonStyle: separator

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
       ba: baz
    }

    Example: EnforcedColonStyle: table

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
      ba:  baz
    }

    Example: EnforcedLastArgumentHashStyle: always_inspect (default)

    # Inspect both implicit and explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
                 bar: 2)
    
    # good
    do_something(
      foo: 1,
      bar: 2
    )
    
    # good
    do_something({foo: 1,
                  bar: 2})
    
    # good
    do_something({
      foo: 1,
      bar: 2
    })

    Example: EnforcedLastArgumentHashStyle: always_ignore

    # Ignore both implicit and explicit hashes.
    
    # good
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Example: EnforcedLastArgumentHashStyle: ignore_implicit

    # Ignore only implicit hashes.
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
      bar: 2)

    Example: EnforcedLastArgumentHashStyle: ignore_explicit

    # Ignore only explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Align the elements of a hash literal if they span more than one line.
    Open

          states:                states.map do |state|
            { code: state.code }
          end,
    Severity: Minor
    Found in app/models/package.rb by rubocop

    Check that the keys, separators, and values of a multi-line hash literal are aligned according to configuration. The configuration options are:

    - key (left align keys, one space before hash rockets and values)
    - separator (align hash rockets and colons, right align keys)
    - table (left align keys, hash rockets, and values)

    The treatment of hashes passed as the last argument to a method call can also be configured. The options are:

    - always_inspect
    - always_ignore
    - ignore_implicit (without curly braces)

    Alternatively you can specify multiple allowed styles. That's done by passing a list of styles to EnforcedStyles.

    Example: EnforcedHashRocketStyle: key (default)

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
      :ba => baz
    }

    Example: EnforcedHashRocketStyle: separator

    # bad
    {
      :foo => bar,
      :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
       :ba => baz
    }

    Example: EnforcedHashRocketStyle: table

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    
    # good
    {
      :foo => bar,
      :ba  => baz
    }

    Example: EnforcedColonStyle: key (default)

    # bad
    {
      foo: bar,
       ba: baz
    }
    {
      foo: bar,
      ba:  baz
    }
    
    # good
    {
      foo: bar,
      ba: baz
    }

    Example: EnforcedColonStyle: separator

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
       ba: baz
    }

    Example: EnforcedColonStyle: table

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
      ba:  baz
    }

    Example: EnforcedLastArgumentHashStyle: always_inspect (default)

    # Inspect both implicit and explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
                 bar: 2)
    
    # good
    do_something(
      foo: 1,
      bar: 2
    )
    
    # good
    do_something({foo: 1,
                  bar: 2})
    
    # good
    do_something({
      foo: 1,
      bar: 2
    })

    Example: EnforcedLastArgumentHashStyle: always_ignore

    # Ignore both implicit and explicit hashes.
    
    # good
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Example: EnforcedLastArgumentHashStyle: ignore_implicit

    # Ignore only implicit hashes.
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
      bar: 2)

    Example: EnforcedLastArgumentHashStyle: ignore_explicit

    # Ignore only explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Align the elements of a hash literal if they span more than one line.
    Open

        in:      KINDS,
    Severity: Minor
    Found in app/models/package.rb by rubocop

    Check that the keys, separators, and values of a multi-line hash literal are aligned according to configuration. The configuration options are:

    - key (left align keys, one space before hash rockets and values)
    - separator (align hash rockets and colons, right align keys)
    - table (left align keys, hash rockets, and values)

    The treatment of hashes passed as the last argument to a method call can also be configured. The options are:

    - always_inspect
    - always_ignore
    - ignore_implicit (without curly braces)

    Alternatively you can specify multiple allowed styles. That's done by passing a list of styles to EnforcedStyles.

    Example: EnforcedHashRocketStyle: key (default)

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
      :ba => baz
    }

    Example: EnforcedHashRocketStyle: separator

    # bad
    {
      :foo => bar,
      :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
       :ba => baz
    }

    Example: EnforcedHashRocketStyle: table

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    
    # good
    {
      :foo => bar,
      :ba  => baz
    }

    Example: EnforcedColonStyle: key (default)

    # bad
    {
      foo: bar,
       ba: baz
    }
    {
      foo: bar,
      ba:  baz
    }
    
    # good
    {
      foo: bar,
      ba: baz
    }

    Example: EnforcedColonStyle: separator

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
       ba: baz
    }

    Example: EnforcedColonStyle: table

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
      ba:  baz
    }

    Example: EnforcedLastArgumentHashStyle: always_inspect (default)

    # Inspect both implicit and explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
                 bar: 2)
    
    # good
    do_something(
      foo: 1,
      bar: 2
    )
    
    # good
    do_something({foo: 1,
                  bar: 2})
    
    # good
    do_something({
      foo: 1,
      bar: 2
    })

    Example: EnforcedLastArgumentHashStyle: always_ignore

    # Ignore both implicit and explicit hashes.
    
    # good
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Example: EnforcedLastArgumentHashStyle: ignore_implicit

    # Ignore only implicit hashes.
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
      bar: 2)

    Example: EnforcedLastArgumentHashStyle: ignore_explicit

    # Ignore only explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Align the elements of a hash literal if they span more than one line.
    Open

          { name:          name,
    Severity: Minor
    Found in app/models/package.rb by rubocop

    Check that the keys, separators, and values of a multi-line hash literal are aligned according to configuration. The configuration options are:

    - key (left align keys, one space before hash rockets and values)
    - separator (align hash rockets and colons, right align keys)
    - table (left align keys, hash rockets, and values)

    The treatment of hashes passed as the last argument to a method call can also be configured. The options are:

    - always_inspect
    - always_ignore
    - ignore_implicit (without curly braces)

    Alternatively you can specify multiple allowed styles. That's done by passing a list of styles to EnforcedStyles.

    Example: EnforcedHashRocketStyle: key (default)

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
      :ba => baz
    }

    Example: EnforcedHashRocketStyle: separator

    # bad
    {
      :foo => bar,
      :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
       :ba => baz
    }

    Example: EnforcedHashRocketStyle: table

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    
    # good
    {
      :foo => bar,
      :ba  => baz
    }

    Example: EnforcedColonStyle: key (default)

    # bad
    {
      foo: bar,
       ba: baz
    }
    {
      foo: bar,
      ba:  baz
    }
    
    # good
    {
      foo: bar,
      ba: baz
    }

    Example: EnforcedColonStyle: separator

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
       ba: baz
    }

    Example: EnforcedColonStyle: table

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
      ba:  baz
    }

    Example: EnforcedLastArgumentHashStyle: always_inspect (default)

    # Inspect both implicit and explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
                 bar: 2)
    
    # good
    do_something(
      foo: 1,
      bar: 2
    )
    
    # good
    do_something({foo: 1,
                  bar: 2})
    
    # good
    do_something({
      foo: 1,
      bar: 2
    })

    Example: EnforcedLastArgumentHashStyle: always_ignore

    # Ignore both implicit and explicit hashes.
    
    # good
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Example: EnforcedLastArgumentHashStyle: ignore_implicit

    # Ignore only implicit hashes.
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
      bar: 2)

    Example: EnforcedLastArgumentHashStyle: ignore_explicit

    # Ignore only explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Align the elements of a hash literal if they span more than one line.
    Open

          name:                  name,
    Severity: Minor
    Found in app/models/package.rb by rubocop

    Check that the keys, separators, and values of a multi-line hash literal are aligned according to configuration. The configuration options are:

    - key (left align keys, one space before hash rockets and values)
    - separator (align hash rockets and colons, right align keys)
    - table (left align keys, hash rockets, and values)

    The treatment of hashes passed as the last argument to a method call can also be configured. The options are:

    - always_inspect
    - always_ignore
    - ignore_implicit (without curly braces)

    Alternatively you can specify multiple allowed styles. That's done by passing a list of styles to EnforcedStyles.

    Example: EnforcedHashRocketStyle: key (default)

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
      :ba => baz
    }

    Example: EnforcedHashRocketStyle: separator

    # bad
    {
      :foo => bar,
      :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
       :ba => baz
    }

    Example: EnforcedHashRocketStyle: table

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    
    # good
    {
      :foo => bar,
      :ba  => baz
    }

    Example: EnforcedColonStyle: key (default)

    # bad
    {
      foo: bar,
       ba: baz
    }
    {
      foo: bar,
      ba:  baz
    }
    
    # good
    {
      foo: bar,
      ba: baz
    }

    Example: EnforcedColonStyle: separator

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
       ba: baz
    }

    Example: EnforcedColonStyle: table

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
      ba:  baz
    }

    Example: EnforcedLastArgumentHashStyle: always_inspect (default)

    # Inspect both implicit and explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
                 bar: 2)
    
    # good
    do_something(
      foo: 1,
      bar: 2
    )
    
    # good
    do_something({foo: 1,
                  bar: 2})
    
    # good
    do_something({
      foo: 1,
      bar: 2
    })

    Example: EnforcedLastArgumentHashStyle: always_ignore

    # Ignore both implicit and explicit hashes.
    
    # good
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Example: EnforcedLastArgumentHashStyle: ignore_implicit

    # Ignore only implicit hashes.
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
      bar: 2)

    Example: EnforcedLastArgumentHashStyle: ignore_explicit

    # Ignore only explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Align the elements of a hash literal if they span more than one line.
    Open

            display_name:  name,
    Severity: Minor
    Found in app/models/package.rb by rubocop

    Check that the keys, separators, and values of a multi-line hash literal are aligned according to configuration. The configuration options are:

    - key (left align keys, one space before hash rockets and values)
    - separator (align hash rockets and colons, right align keys)
    - table (left align keys, hash rockets, and values)

    The treatment of hashes passed as the last argument to a method call can also be configured. The options are:

    - always_inspect
    - always_ignore
    - ignore_implicit (without curly braces)

    Alternatively you can specify multiple allowed styles. That's done by passing a list of styles to EnforcedStyles.

    Example: EnforcedHashRocketStyle: key (default)

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
      :ba => baz
    }

    Example: EnforcedHashRocketStyle: separator

    # bad
    {
      :foo => bar,
      :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
       :ba => baz
    }

    Example: EnforcedHashRocketStyle: table

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    
    # good
    {
      :foo => bar,
      :ba  => baz
    }

    Example: EnforcedColonStyle: key (default)

    # bad
    {
      foo: bar,
       ba: baz
    }
    {
      foo: bar,
      ba:  baz
    }
    
    # good
    {
      foo: bar,
      ba: baz
    }

    Example: EnforcedColonStyle: separator

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
       ba: baz
    }

    Example: EnforcedColonStyle: table

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
      ba:  baz
    }

    Example: EnforcedLastArgumentHashStyle: always_inspect (default)

    # Inspect both implicit and explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
                 bar: 2)
    
    # good
    do_something(
      foo: 1,
      bar: 2
    )
    
    # good
    do_something({foo: 1,
                  bar: 2})
    
    # good
    do_something({
      foo: 1,
      bar: 2
    })

    Example: EnforcedLastArgumentHashStyle: always_ignore

    # Ignore both implicit and explicit hashes.
    
    # good
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Example: EnforcedLastArgumentHashStyle: ignore_implicit

    # Ignore only implicit hashes.
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
      bar: 2)

    Example: EnforcedLastArgumentHashStyle: ignore_explicit

    # Ignore only explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Align the elements of a hash literal if they span more than one line.
    Open

            kind:                            belong_to_main ? "main" : "target",
    Severity: Minor
    Found in app/models/package.rb by rubocop

    Check that the keys, separators, and values of a multi-line hash literal are aligned according to configuration. The configuration options are:

    - key (left align keys, one space before hash rockets and values)
    - separator (align hash rockets and colons, right align keys)
    - table (left align keys, hash rockets, and values)

    The treatment of hashes passed as the last argument to a method call can also be configured. The options are:

    - always_inspect
    - always_ignore
    - ignore_implicit (without curly braces)

    Alternatively you can specify multiple allowed styles. That's done by passing a list of styles to EnforcedStyles.

    Example: EnforcedHashRocketStyle: key (default)

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
      :ba => baz
    }

    Example: EnforcedHashRocketStyle: separator

    # bad
    {
      :foo => bar,
      :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
       :ba => baz
    }

    Example: EnforcedHashRocketStyle: table

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    
    # good
    {
      :foo => bar,
      :ba  => baz
    }

    Example: EnforcedColonStyle: key (default)

    # bad
    {
      foo: bar,
       ba: baz
    }
    {
      foo: bar,
      ba:  baz
    }
    
    # good
    {
      foo: bar,
      ba: baz
    }

    Example: EnforcedColonStyle: separator

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
       ba: baz
    }

    Example: EnforcedColonStyle: table

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
      ba:  baz
    }

    Example: EnforcedLastArgumentHashStyle: always_inspect (default)

    # Inspect both implicit and explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
                 bar: 2)
    
    # good
    do_something(
      foo: 1,
      bar: 2
    )
    
    # good
    do_something({foo: 1,
                  bar: 2})
    
    # good
    do_something({
      foo: 1,
      bar: 2
    })

    Example: EnforcedLastArgumentHashStyle: always_ignore

    # Ignore both implicit and explicit hashes.
    
    # good
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Example: EnforcedLastArgumentHashStyle: ignore_implicit

    # Ignore only implicit hashes.
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
      bar: 2)

    Example: EnforcedLastArgumentHashStyle: ignore_explicit

    # Ignore only explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Align the elements of a hash literal if they span more than one line.
    Open

            name:                            organisation_unit_group.display_name,
    Severity: Minor
    Found in app/models/package.rb by rubocop

    Check that the keys, separators, and values of a multi-line hash literal are aligned according to configuration. The configuration options are:

    - key (left align keys, one space before hash rockets and values)
    - separator (align hash rockets and colons, right align keys)
    - table (left align keys, hash rockets, and values)

    The treatment of hashes passed as the last argument to a method call can also be configured. The options are:

    - always_inspect
    - always_ignore
    - ignore_implicit (without curly braces)

    Alternatively you can specify multiple allowed styles. That's done by passing a list of styles to EnforcedStyles.

    Example: EnforcedHashRocketStyle: key (default)

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
      :ba => baz
    }

    Example: EnforcedHashRocketStyle: separator

    # bad
    {
      :foo => bar,
      :ba => baz
    }
    {
      :foo => bar,
      :ba  => baz
    }
    
    # good
    {
      :foo => bar,
       :ba => baz
    }

    Example: EnforcedHashRocketStyle: table

    # bad
    {
      :foo => bar,
       :ba => baz
    }
    
    # good
    {
      :foo => bar,
      :ba  => baz
    }

    Example: EnforcedColonStyle: key (default)

    # bad
    {
      foo: bar,
       ba: baz
    }
    {
      foo: bar,
      ba:  baz
    }
    
    # good
    {
      foo: bar,
      ba: baz
    }

    Example: EnforcedColonStyle: separator

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
       ba: baz
    }

    Example: EnforcedColonStyle: table

    # bad
    {
      foo: bar,
      ba: baz
    }
    
    # good
    {
      foo: bar,
      ba:  baz
    }

    Example: EnforcedLastArgumentHashStyle: always_inspect (default)

    # Inspect both implicit and explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
                 bar: 2)
    
    # good
    do_something(
      foo: 1,
      bar: 2
    )
    
    # good
    do_something({foo: 1,
                  bar: 2})
    
    # good
    do_something({
      foo: 1,
      bar: 2
    })

    Example: EnforcedLastArgumentHashStyle: always_ignore

    # Ignore both implicit and explicit hashes.
    
    # good
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    Example: EnforcedLastArgumentHashStyle: ignore_implicit

    # Ignore only implicit hashes.
    
    # bad
    do_something({foo: 1,
      bar: 2})
    
    # good
    do_something(foo: 1,
      bar: 2)

    Example: EnforcedLastArgumentHashStyle: ignore_explicit

    # Ignore only explicit hashes.
    
    # bad
    do_something(foo: 1,
      bar: 2)
    
    # good
    do_something({foo: 1,
      bar: 2})

    There are no issues that match your filters.

    Category
    Status