diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-21 18:08:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-21 18:08:36 +0300 |
commit | 81884c35b86035f89364db482e4fff91718bb63a (patch) | |
tree | 49090a57dd0e6e49390f593bf24ee49dd8fb7b7f /rubocop | |
parent | 6f3692902c2e5dc690593b8c44f77b86b5c28904 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'rubocop')
-rw-r--r-- | rubocop/cop/rspec/factories_in_migration_specs.rb | 2 | ||||
-rw-r--r-- | rubocop/rubocop-usage-data.yml | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/rubocop/cop/rspec/factories_in_migration_specs.rb b/rubocop/cop/rspec/factories_in_migration_specs.rb index 65c7638a0f4..732e0d92bbd 100644 --- a/rubocop/cop/rspec/factories_in_migration_specs.rb +++ b/rubocop/cop/rspec/factories_in_migration_specs.rb @@ -15,7 +15,7 @@ module RuboCop # let(:user) { users.create!(name: 'User 1', username: 'user1') } class FactoriesInMigrationSpecs < RuboCop::Cop::Cop MESSAGE = "Don't use FactoryBot.%s in migration specs, use `table` instead.".freeze - FORBIDDEN_METHODS = %i[build build_list create create_list].freeze + FORBIDDEN_METHODS = %i[build build_list create create_list attributes_for].freeze def_node_search :forbidden_factory_usage?, <<~PATTERN (send {(const nil? :FactoryBot) nil?} {#{FORBIDDEN_METHODS.map(&:inspect).join(' ')}} ...) diff --git a/rubocop/rubocop-usage-data.yml b/rubocop/rubocop-usage-data.yml index 0e40a5971ee..bbc4d590ddc 100644 --- a/rubocop/rubocop-usage-data.yml +++ b/rubocop/rubocop-usage-data.yml @@ -21,6 +21,8 @@ UsageData/LargeTable: - :Gitaly::Server - :Gitlab::UsageData - :Gitlab::UsageDataCounters + - :Arel::Nodes::NamedFunction + - :Arel - :License - :Rails - :Time |