Lint pass (#8876)
This commit is contained in:
parent
928102284a
commit
1f98eae1cf
@ -62,5 +62,4 @@ Devise.setup do |config|
|
|||||||
saml_options[:uid_attribute] = ENV['SAML_UID_ATTRIBUTE'] if ENV['SAML_UID_ATTRIBUTE']
|
saml_options[:uid_attribute] = ENV['SAML_UID_ATTRIBUTE'] if ENV['SAML_UID_ATTRIBUTE']
|
||||||
config.omniauth :saml, saml_options
|
config.omniauth :saml, saml_options
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
module Twitter
|
module Twitter
|
||||||
class Regex
|
class Regex
|
||||||
|
|
||||||
REGEXEN[:valid_general_url_path_chars] = /[^\p{White_Space}\(\)\?]/iou
|
REGEXEN[:valid_general_url_path_chars] = /[^\p{White_Space}\(\)\?]/iou
|
||||||
REGEXEN[:valid_url_path_ending_chars] = /[^\p{White_Space}\(\)\?!\*';:=\,\.\$%\[\]~&\|@]|(?:#{REGEXEN[:valid_url_balanced_parens]})/iou
|
REGEXEN[:valid_url_path_ending_chars] = /[^\p{White_Space}\(\)\?!\*';:=\,\.\$%\[\]~&\|@]|(?:#{REGEXEN[:valid_url_balanced_parens]})/iou
|
||||||
REGEXEN[:valid_url_balanced_parens] = /
|
REGEXEN[:valid_url_balanced_parens] = /
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
Rails.application.configure do
|
Rails.application.configure do
|
||||||
|
|
||||||
# You can generate the keys using the following command (first is the private key, second is the public one)
|
# You can generate the keys using the following command (first is the private key, second is the public one)
|
||||||
# You should only generate this once per instance. If you later decide to change it, all push subscription will
|
# You should only generate this once per instance. If you later decide to change it, all push subscription will
|
||||||
# be invalidated, requiring the users to access the website again to resubscribe.
|
# be invalidated, requiring the users to access the website again to resubscribe.
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
class ChangeTagSearchIndexToBtree < ActiveRecord::Migration[5.1]
|
class ChangeTagSearchIndexToBtree < ActiveRecord::Migration[5.1]
|
||||||
|
|
||||||
def up
|
def up
|
||||||
remove_index :tags, name: :hashtag_search_index
|
remove_index :tags, name: :hashtag_search_index
|
||||||
execute 'CREATE INDEX hashtag_search_index ON tags (name text_pattern_ops);'
|
execute 'CREATE INDEX hashtag_search_index ON tags (name text_pattern_ops);'
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 2018_08_20_232245) do
|
ActiveRecord::Schema.define(version: 2018_08_20_232245) do
|
||||||
|
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
|
||||||
|
@ -75,7 +75,6 @@ RSpec.describe Admin::AccountsController, type: :controller do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
describe 'POST #subscribe' do
|
describe 'POST #subscribe' do
|
||||||
subject { post :subscribe, params: { id: account.id } }
|
subject { post :subscribe, params: { id: account.id } }
|
||||||
|
|
||||||
|
@ -15,7 +15,6 @@ describe Admin::ReportNotesController do
|
|||||||
let(:report) { Fabricate(:report, action_taken: action_taken, action_taken_by_account_id: account_id) }
|
let(:report) { Fabricate(:report, action_taken: action_taken, action_taken_by_account_id: account_id) }
|
||||||
|
|
||||||
context 'when parameter is valid' do
|
context 'when parameter is valid' do
|
||||||
|
|
||||||
context 'when report is unsolved' do
|
context 'when report is unsolved' do
|
||||||
let(:action_taken) { false }
|
let(:action_taken) { false }
|
||||||
let(:account_id) { nil }
|
let(:account_id) { nil }
|
||||||
|
@ -25,7 +25,6 @@ RSpec.describe Api::V1::Statuses::FavouritedByAccountsController, type: :control
|
|||||||
expect(response.headers['Link'].links.size).to eq(2)
|
expect(response.headers['Link'].links.size).to eq(2)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'without an oauth token' do
|
context 'without an oauth token' do
|
||||||
|
@ -42,5 +42,4 @@ describe Api::V1::StreamingController do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -21,7 +21,6 @@ describe Settings::ApplicationsController do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
describe 'GET #show' do
|
describe 'GET #show' do
|
||||||
it 'returns http success' do
|
it 'returns http success' do
|
||||||
get :show, params: { id: app.id }
|
get :show, params: { id: app.id }
|
||||||
|
@ -10,7 +10,6 @@ describe Settings::MigrationsController do
|
|||||||
end
|
end
|
||||||
|
|
||||||
describe 'GET #show' do
|
describe 'GET #show' do
|
||||||
|
|
||||||
context 'when user is not sign in' do
|
context 'when user is not sign in' do
|
||||||
subject { get :show }
|
subject { get :show }
|
||||||
|
|
||||||
@ -45,7 +44,6 @@ describe Settings::MigrationsController do
|
|||||||
end
|
end
|
||||||
|
|
||||||
describe 'PUT #update' do
|
describe 'PUT #update' do
|
||||||
|
|
||||||
context 'when user is not sign in' do
|
context 'when user is not sign in' do
|
||||||
subject { put :update }
|
subject { put :update }
|
||||||
|
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
Fabricator(:site_upload) do
|
Fabricator(:site_upload) do
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -170,7 +170,6 @@ RSpec.describe Formatter do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
describe '#format_spoiler' do
|
describe '#format_spoiler' do
|
||||||
subject { Formatter.instance.format_spoiler(status) }
|
subject { Formatter.instance.format_spoiler(status) }
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe AccountModerationNote, type: :model do
|
RSpec.describe AccountModerationNote, type: :model do
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe Admin::ActionLog, type: :model do
|
RSpec.describe Admin::ActionLog, type: :model do
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe Backup, type: :model do
|
RSpec.describe Backup, type: :model do
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe ConversationMute, type: :model do
|
RSpec.describe ConversationMute, type: :model do
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe CustomFilter, type: :model do
|
RSpec.describe CustomFilter, type: :model do
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe ListAccount, type: :model do
|
RSpec.describe ListAccount, type: :model do
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe List, type: :model do
|
RSpec.describe List, type: :model do
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe Mute, type: :model do
|
RSpec.describe Mute, type: :model do
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe PreviewCard, type: :model do
|
RSpec.describe PreviewCard, type: :model do
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
require 'rails_helper'
|
require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe Web::Setting, type: :model do
|
RSpec.describe Web::Setting, type: :model do
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user