Skip to content

Commit 88c4760

Browse files
authored
Merge pull request #308 from plural/enable-rubocop-on-github
Enable rubocop lint checks on Github.
2 parents 5fb74b8 + e9bc483 commit 88c4760

4 files changed

+6
-5
lines changed

.github/workflows/ci.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,8 @@ jobs:
8484
run: bundle exec bundler-audit --update
8585
- name: Security audit application code
8686
run: bundle exec brakeman -q -w2
87-
# TODO(plural): Uncomment when lint errors are clean and we want to block on them.
88-
# - name: Lint Ruby files
89-
# run: bin/rubocop --parallel
87+
- name: Lint Ruby files
88+
run: bundle exec rubocop --parallel
9089

9190
build_and_push:
9291
name: Build docker image

.rubocop.yml

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Metrics/MethodLength:
1414
Max: 100
1515
Metrics/PerceivedComplexity:
1616
Enabled: false
17+
Rails/BulkChangeTable:
18+
Enabled: false
1719
Rails/HasManyOrHasOneDependent:
1820
Enabled: false
1921
RSpec/ExampleLength:

db/migrate/20220917233220_add_detailed_attributes_to_cards.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class AddDetailedAttributesToCards < ActiveRecord::Migration[7.0] # rubocop:disable Style/Documentation
44
def change
5-
add_column :cards, :additional_cost, :bool, default: false # rubocop:disable Rails/BulkChangeTable
5+
add_column :cards, :additional_cost, :bool, default: false
66
add_column :cards, :advanceable, :bool, default: false
77
add_column :cards, :gains_subroutines, :bool, default: false
88
add_column :cards, :interrupt, :bool, default: false

db/migrate/20240512213120_add_pronunciation_to_cards.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class AddPronunciationToCards < ActiveRecord::Migration[7.1] # rubocop:disable Style/Documentation
44
def change
5-
add_column :cards, :pronunciation_approximation, :string # rubocop:disable Rails/BulkChangeTable
5+
add_column :cards, :pronunciation_approximation, :string
66
add_column :cards, :pronunciation_ipa, :string
77
end
88
end

0 commit comments

Comments
 (0)