Skip to content
Snippets Groups Projects
  • Eugen Rochko's avatar
    27965ce5
    Add trending statuses (#17431) · 27965ce5
    Eugen Rochko authored
    * Add trending statuses
    
    * Fix dangling items with stale scores in localized sets
    
    * Various fixes and improvements
    
    - Change approve_all/reject_all to approve_accounts/reject_accounts
    - Change Trends::Query methods to not mutate the original query
    - Change Trends::Query#skip to offset
    - Change follow recommendations to be refreshed in a transaction
    
    * Add tests for trending statuses filtering behaviour
    
    * Fix not applying filtering scope in controller
    Add trending statuses (#17431)
    Eugen Rochko authored
    * Add trending statuses
    
    * Fix dangling items with stale scores in localized sets
    
    * Various fixes and improvements
    
    - Change approve_all/reject_all to approve_accounts/reject_accounts
    - Change Trends::Query methods to not mutate the original query
    - Change Trends::Query#skip to offset
    - Change follow recommendations to be refreshed in a transaction
    
    * Add tests for trending statuses filtering behaviour
    
    * Fix not applying filtering scope in controller
.rubocop.yml 4.49 KiB
require:
  - rubocop-rails

AllCops:
  TargetRubyVersion: 2.5
  NewCops: disable
  Exclude:
  - 'spec/**/*'
  - 'db/**/*'
  - 'app/views/**/*'
  - 'config/**/*'
  - 'bin/*'
  - 'Rakefile'
  - 'node_modules/**/*'
  - 'Vagrantfile'
  - 'vendor/**/*'
  - 'lib/json_ld/*'
  - 'lib/templates/**/*'

Bundler/OrderedGems:
  Enabled: false

Layout/AccessModifierIndentation:
  EnforcedStyle: indent

Layout/EmptyLineAfterMagicComment:
  Enabled: false

Layout/EmptyLineAfterGuardClause:
  Enabled: false

Layout/EmptyLinesAroundAttributeAccessor:
  Enabled: true

Layout/FirstHashElementIndentation:
  EnforcedStyle: consistent

Layout/HashAlignment:
  Enabled: false

Layout/SpaceAroundMethodCallOperator:
  Enabled: true

Layout/SpaceInsideHashLiteralBraces:
  EnforcedStyle: space

Lint/DeprecatedOpenSSLConstant:
  Enabled: true

Lint/DuplicateElsifCondition:
  Enabled: true

Lint/MixedRegexpCaptureTypes:
  Enabled: true

Lint/RaiseException:
  Enabled: true

Lint/StructNewOverride:
  Enabled: true

Lint/UselessAccessModifier:
  ContextCreatingMethods:
    - class_methods

Metrics/AbcSize:
  Max: 100
  Exclude:
    - 'lib/mastodon/*_cli.rb'