Tuesday, July 23, 2024
HomeRuby On RailsFrom Editor to IDE | Drifting Ruby

From Editor to IDE | Drifting Ruby


# Terminal
gem set up solargraph
gem set up ruby-debug-ide
gem set up rubocop
# take a look at/test_helper.rb
ENV['RAILS_ENV'] ||="take a look at"
require_relative '../config/surroundings'
require 'rails/test_help'

class ActiveSupport::TestCase
  # Run checks in parallel with specified staff
  parallelize(staff: 1)

  # Setup all fixtures in take a look at/fixtures/*.yml for all checks in alphabetical order.
  fixtures :all

  # Add extra helper strategies for use by all checks right here...
finish
# .vscode/launch.json
{
  // Use IntelliSense to study potential attributes.
  // Hover to view descriptions of present attributes.
  // For extra data, go to: https://go.microsoft.com/fwlink/?linkid=830387
  "model": "0.2.0",
  "configurations": [
    {
      "name": "Rails server",
      "type": "Ruby",
      "request": "launch",
      "program": "${workspaceRoot}/bin/rails",
      "args": [
        "server"
      ]
    }
  ]
}
# .rubocop.yml
Type/Documentation:
  Enabled: false
Type/FrozenStringLiteralComment:
  Enabled: false
Type/EmptyMethod:
  Enabled: false
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments