Skip to content

Commit 39e2eaa

Browse files
committed
chore: Enable Rubocop for migrations
Rubocop gives valuable information about issues in migration. New migrations should be checked by the linter.
1 parent 86d6c17 commit 39e2eaa

File tree

210 files changed

+418
-20
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+418
-20
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,6 @@ Metrics/CyclomaticComplexity:
2222
Metrics/PerceivedComplexity:
2323
Max: 25
2424

25-
# We don't want to change previous migrations...
26-
#
27-
Rails/CreateTableWithTimestamps:
28-
Enabled: false
29-
30-
Rails/BulkChangeTable:
31-
Enabled: false
32-
33-
Rails/ReversibleMigration:
34-
Enabled: false
35-
36-
Rails/NotNullColumn:
37-
Enabled: false
38-
39-
Rails/ThreeStateBooleanColumn:
40-
Enabled: false
41-
4225
# The models need to be fixed anyway
4326
#
4427
Rails/UniqueValidationWithoutIndex:

db/migrate/20140625134118_create_exercises.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# rubocop:disable all
2+
13
# frozen_string_literal: true
24

35
class CreateExercises < ActiveRecord::Migration[4.2]

db/migrate/20140626143132_create_execution_environments.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# rubocop:disable all
2+
13
# frozen_string_literal: true
24

35
class CreateExecutionEnvironments < ActiveRecord::Migration[4.2]

db/migrate/20140626144036_create_submissions.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# rubocop:disable all
2+
13
# frozen_string_literal: true
24

35
class CreateSubmissions < ActiveRecord::Migration[4.2]

db/migrate/20140630093736_add_reference_implementation_to_exercises.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# rubocop:disable all
2+
13
# frozen_string_literal: true
24

35
class AddReferenceImplementationToExercises < ActiveRecord::Migration[4.2]

db/migrate/20140630111215_add_indent_size_to_execution_environments.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# rubocop:disable all
2+
13
# frozen_string_literal: true
24

35
class AddIndentSizeToExecutionEnvironments < ActiveRecord::Migration[4.2]

db/migrate/20140701120126_create_consumers.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# rubocop:disable all
2+
13
# frozen_string_literal: true
24

35
class CreateConsumers < ActiveRecord::Migration[4.2]

db/migrate/20140701122345_create_users.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# rubocop:disable all
2+
13
# frozen_string_literal: true
24

35
class CreateUsers < ActiveRecord::Migration[4.2]

db/migrate/20140702100130_add_oauth_key_to_consumers.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# rubocop:disable all
2+
13
# frozen_string_literal: true
24

35
class AddOauthKeyToConsumers < ActiveRecord::Migration[4.2]

db/migrate/20140703070749_add_oauth_secret_to_consumers.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# rubocop:disable all
2+
13
# frozen_string_literal: true
24

35
class AddOauthSecretToConsumers < ActiveRecord::Migration[4.2]

0 commit comments

Comments
 (0)