coc-solargraph
Ruby style guide
coc-solargraph | Ruby style guide | |
---|---|---|
2 | 36 | |
199 | 16,386 | |
1.0% | 0.1% | |
0.0 | 6.0 | |
about 2 years ago | 9 days ago | |
TypeScript | ||
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
coc-solargraph
-
Getting intellisense and code completion in nvim or vscode
I've been using coc.nvim along with the coc-solargraph plugin. These work well for me and provide very good code completion and error highlighting. There are some key intellisense features that aren't available (or I don't use them), but these two plugins do well enough for my purposes.
-
Linting and Auto-formatting Ruby Code With RuboCop
If you use Vim or Neovim, you can display RuboCop's diagnostics through coc.nvim. You need to install the Solargraph language server (gem install solargraph), followed by the coc-solargraph extension (:CocInstall coc-solargraph). Afterwards, configure your coc-settings.json file as shown below:
Ruby style guide
-
An Introduction to RuboCop for Ruby on Rails
By default, RuboCop will enforce the style defined in the Ruby Community Style Guide. We can tailor it to our specific tastes and context, but let's rely on this basic set of rules to learn how to use RuboCop.
-
Code Reviewing a Ruby on Rails application.
RuboCop is a Ruby static code analyzer (a.k.a. linter) and code formatter. Out of the box it will enforce many of the guidelines outlined in the community Ruby Style Guide. Apart from reporting the problems discovered in your code, RuboCop can also automatically fix many of them for you.
- Naming conventions and style guides in programming"
-
Shine bright like a.. Ruby 💎
Read more about Ruby.
-
10 Best Practices for Ruby Programmers: Tips for Efficient, Maintainable, and Bug-Free Code
8. Use a consistent style: Consistency is key when it comes to writing readable code. Use a consistent style throughout your codebase, and follow common Ruby style guides like Ruby Style Guide.
-
It's Official: the Standard Ruby VS Code extension
The real standard is to use default rubocop configuration which is based on https://rubystyle.guide/.
-
Why I think we should adopt and use new Ruby features
It used to, before recently. It literally said, "The and and or keywords are banned."
-
Rubyme: My minimalist Ruby Handbook
rubocop/ruby-style-guide
-
Development guidelines
As you see - there are no reference to any technology or framework. There are a lot of best-practices for almost any framework, so you can choose an appropriate one. For example - if you're a rails developer, then you can check https://github.com/rubocop/ruby-style-guide and https://github.com/rubocop/rails-style-guide but if you're a golang developer - https://github.com/uber-go/guide/blob/master/style.md and https://developers.mattermost.com/contribute/more-info/server/style-guide/
- `and` and `or` control flow operators now allowed in Rubocop
What are some alternatives?
rubocop - A Ruby static code analyzer and formatter, based on the community Ruby style guide.
Rails style guide - A community-driven Ruby on Rails style guide
rubocop-rails - A RuboCop extension focused on enforcing Rails best practices and coding conventions.
RSpec style guide - RSpec Best Practices
plugin-ruby - Prettier Ruby Plugin
fast-ruby - :dash: Writing Fast Ruby :heart_eyes: -- Collect Common Ruby idioms.
rubyfmt - Ruby Autoformatter!
Fundamental Ruby - :books: Fundamental programming with ruby examples and references. It covers threads, SOLID principles, design patterns, data structures, algorithms. Books for reading. Repo for website https://github.com/khusnetdinov/betterdocs
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Best-Ruby - Ruby Tricks, Idiomatic Ruby, Refactoring and Best Practices
prettier - Prettier is an opinionated code formatter.
contracts.ruby - Contracts for Ruby.