Browse Source

rubocop pending features

pagy
pvincent 10 months ago
parent
commit
ac8255e482
  1. 2
      .rubocop.yml
  2. 3
      .vscode/settings.json
  3. 11
      app/controllers/scores_controller.rb
  4. 1
      app/helpers/application_helper.rb
  5. 2
      app/helpers/scores_helper.rb

2
.rubocop.yml

@ -1,2 +1,4 @@
Style/FrozenStringLiteralComment:
Enabled: false
AllCops:
NewCops: enable

3
.vscode/settings.json

@ -10,5 +10,6 @@
},
"emmet.includeLanguages": {
"erb": "html"
}
},
"rubyLsp.enableExperimentalFeatures": true
}

11
app/controllers/scores_controller.rb

@ -6,14 +6,11 @@ class ScoresController < ApplicationController
def index
@scores = Score.all
logger.debug 'this is a debug message'
logger.debug({ 'one': 1, 'two': 2 })
logger.info 'this is an information', { 'four': 4, 'five': 5 }
logger.info 'this is an object', BigDecimal('0.0001')
logger.warn 'this is a warning'
logger.error 'this is an error', BigDecimal('0.0002')
logger.debug({ one: 1, two: 2 })
logger.info 'this is an information', { four: 4, five: 5 }
logger.debug BigDecimal('0.0003')
logger.debug 'scores are', @scores
logger.debug @scores
# logger.debug 'scores are', @scores
# logger.debug @scores
end
# GET /scores/1

1
app/helpers/application_helper.rb

@ -1,2 +1,3 @@
# global helper
module ApplicationHelper
end

2
app/helpers/scores_helper.rb

@ -1,2 +0,0 @@
module ScoresHelper
end
Loading…
Cancel
Save