Ruby

Rails is our framework to the main applications.

Rails

We are constantly updating the Rails Framework. At this moment we are using Rails 5.2, waiting for Rails 6 stable release to upgrade.

Rubocop

Is a Ruby static code analyzer and code formatter. Out of the box it will enforce many of the guidelines outlined in the community Ruby Style Guide. Rubocop Project

Template

We consider Rubocop default template very strict, for that reason, we have a custom template that look it like that:

Style/RescueModifier:
  Enabled: false

Style/IfUnlessModifier:
  Enabled: false

Style/NegatedIf:
  Enabled: false

Style/NegatedWhile:
  Enabled: false

Metrics/BlockLength:
  Exclude:
    - 'spec/**/*.rb'

Metrics/AbcSize:
  Enabled: false

Metrics/ClassLength:
  Enabled: false

Metrics/LineLength:
  Max: 150

Metrics/MethodLength:
  Max: 30

Layout/SpaceAroundOperators:
  Enabled: false

Layout/MultilineOperationIndentation:
  Enabled: false

Layout/MultilineBlockLayout:
  Enabled: false

Layout/SpaceInsideHashLiteralBraces:
  Enabled: false

Layout/SpaceInsideBlockBraces:
  Enabled: false

Layout/SpaceBeforeBlockBraces:
  Enabled: false

Last updated

Was this helpful?