No release in over a year
Solargraph DeadEnd reporter tells you where you're missing a closing `end` for your method definitions or blocks
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.39.1
 Project Readme

Solargraph::DeadEnd

This gem is a plugin for the Solargraph language server, to report missing do(s) and end(s) using DeadEnd inside your editor!

Any editor that has a solargraph plugin can use it:

(Space)emacs with LSP mode

emacs shows output from this solargraph plugin. It uses dead_end gem to show you where your code has a broken block

VSCode with solargraph plugin

vscode shows output from this solargraph plugin. It uses dead_end gem to show you where your code has a broken block

The highlighted lines should give you a good clue about where the problem lies. If you hover over the error you'll get even more info:

vscode shows a hover over with even more info from this solargraph plugin. It uses dead_end gem to show you where your code has a broken block

Installation

  1. Install solargraph if you don't have it already.
  2. Add this gem:

gem install solargraph-dead_end

(or include it in your gemfile if you're using solargraph in bundle mode)

  1. Configure your .solargraph.yml:
reporters:
- dead_end
...
plugins:
- solargraph-dead_end