mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-30 03:50:13 -05:00
Fix rubocop Layout/ArgumentAlignment
cop (#26060)
This commit is contained in:
parent
e6b903b21e
commit
56c0babc0b
@ -13,14 +13,6 @@ Bundler/OrderedGems:
|
|||||||
Exclude:
|
Exclude:
|
||||||
- 'Gemfile'
|
- 'Gemfile'
|
||||||
|
|
||||||
# This cop supports safe autocorrection (--autocorrect).
|
|
||||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
||||||
# SupportedStyles: with_first_argument, with_fixed_indentation
|
|
||||||
Layout/ArgumentAlignment:
|
|
||||||
Exclude:
|
|
||||||
- 'config/initializers/cors.rb'
|
|
||||||
- 'config/initializers/session_store.rb'
|
|
||||||
|
|
||||||
# This cop supports safe autocorrection (--autocorrect).
|
# This cop supports safe autocorrection (--autocorrect).
|
||||||
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
||||||
# SupportedHashRocketStyles: key, separator, table
|
# SupportedHashRocketStyles: key, separator, table
|
||||||
@ -841,6 +833,5 @@ Style/TrailingCommaInHashLiteral:
|
|||||||
Style/WordArray:
|
Style/WordArray:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/helpers/languages_helper.rb'
|
- 'app/helpers/languages_helper.rb'
|
||||||
- 'config/initializers/cors.rb'
|
|
||||||
- 'spec/controllers/settings/imports_controller_spec.rb'
|
- 'spec/controllers/settings/imports_controller_spec.rb'
|
||||||
- 'spec/models/form/import_spec.rb'
|
- 'spec/models/form/import_spec.rb'
|
||||||
|
@ -11,26 +11,16 @@ Rails.application.config.middleware.insert_before 0, Rack::Cors do
|
|||||||
allow do
|
allow do
|
||||||
origins '*'
|
origins '*'
|
||||||
|
|
||||||
resource '/.well-known/*',
|
with_options headers: :any, credentials: false do
|
||||||
headers: :any,
|
with_options methods: [:get] do
|
||||||
methods: [:get],
|
resource '/.well-known/*'
|
||||||
credentials: false
|
resource '/@:username'
|
||||||
resource '/@:username',
|
resource '/users/:username'
|
||||||
headers: :any,
|
end
|
||||||
methods: [:get],
|
resource '/api/*',
|
||||||
credentials: false
|
expose: %w(Link X-RateLimit-Reset X-RateLimit-Limit X-RateLimit-Remaining X-Request-Id),
|
||||||
resource '/users/:username',
|
methods: %i(post put delete get patch options)
|
||||||
headers: :any,
|
resource '/oauth/token', methods: [:post]
|
||||||
methods: [:get],
|
end
|
||||||
credentials: false
|
|
||||||
resource '/api/*',
|
|
||||||
headers: :any,
|
|
||||||
methods: [:post, :put, :delete, :get, :patch, :options],
|
|
||||||
credentials: false,
|
|
||||||
expose: ['Link', 'X-RateLimit-Reset', 'X-RateLimit-Limit', 'X-RateLimit-Remaining', 'X-Request-Id']
|
|
||||||
resource '/oauth/token',
|
|
||||||
headers: :any,
|
|
||||||
methods: [:post],
|
|
||||||
credentials: false
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -2,7 +2,10 @@
|
|||||||
|
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
Rails.application.config.session_store :cookie_store,
|
Rails
|
||||||
key: '_mastodon_session',
|
.application
|
||||||
secure: false, # All cookies have their secure flag set by the force_ssl option in production
|
.config
|
||||||
same_site: :lax
|
.session_store :cookie_store,
|
||||||
|
key: '_mastodon_session',
|
||||||
|
secure: false, # All cookies have their secure flag set by the force_ssl option in production
|
||||||
|
same_site: :lax
|
||||||
|
Loading…
Reference in New Issue
Block a user