Browse Source

Enable all new cops

develop
Bèr Kessels 2 months ago
parent
commit
a5f9d55ee7
4 changed files with 4 additions and 2 deletions
  1. 2
    0
      .rubocop.yml
  2. 1
    1
      config.ru
  3. 0
    0
      config/deploy/staging.rb
  4. 1
    1
      lib/contact.rb

+ 2
- 0
.rubocop.yml View File

@@ -1,3 +1,5 @@
AllCops:
NewCops: enable
Metrics/BlockLength:
Exclude:
- test/**/*_test.rb # We define specs in blocks, which by nature get large.

+ 1
- 1
config.ru View File

@@ -2,6 +2,6 @@

$LOAD_PATH << '.'

require 'lib/contact.rb'
require 'lib/contact'

run Sinatra::Application

+ 0
- 0
config/deploy/staging.rb View File


+ 1
- 1
lib/contact.rb View File

@@ -81,7 +81,7 @@ module Contact
end
end

require_relative '../config/environment.rb'
require_relative '../config/environment'

Pony.options = {
to: Contact.config.mail_to,

Loading…
Cancel
Save