ruby-lint | Static code analysis for Ruby | Code Analyzer library
kandi X-RAY | ruby-lint Summary
kandi X-RAY | ruby-lint Summary
Static code analysis for Ruby (unmaintained).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Processes the node .
- Returns a list of constants that contains the given constants .
- Runs the generator .
- Assigns a variable .
- Creates a definition .
- Builds the list of files that match the given constant .
- Tracks a method call .
- Resolve the scope for a given scope .
- Adds a module to the module definition
- Check if files exists
ruby-lint Key Features
ruby-lint Examples and Code Snippets
class Person
def initialize(name)
# oops, not setting @name
end
def greet
return "Hello, #{@name}"
end
end
user = Person.new('Alice')
greeting = user.greet
user.greet(:foo)
test.rb: error: line 7, column 22: undefined instance
gem install ruby-lint
git clone git://github.com/YorickPeterse/ruby-lint.git
cd ruby-lint
bundle install # you can also install the dependencies manually
rake build
$ sha512sum pkg/ruby-lint-0.9.1.gem
10a51f27c455e5743fff7fefe29512cff20116b805bec148e09d4bade1727e3beab7f7f9ee97b020d290773edcb7bd1685858ccad0bbd1a35cc0282c00c760c6 pkg/ruby-lint-0.9.1.gem
Community Discussions
Trending Discussions on ruby-lint
QUESTION
- vscode Version 1.19.1 (1.19.1)
- rubocop (0.52.1)
- Darwin mbp 16.7.0 Darwin Kernel Version 16.7.0: Wed Oct 4 00:17:00 PDT 2017; root:xnu-3789.71.6~1/RELEASE_X86_64 x86_64
- ruby 2.3.5p376 (2017-09-14 revision 59905) [x86_64-darwin16]
followed https://github.com/rubyide/vscode-ruby#linters and installed all gems and edited the settings.json like this.
...ANSWER
Answered 2019-Nov-22 at 10:28This comment is now thankfully outdated
-- Unfortunately this cannot be done with the current rubocop extension. The primary use case is to lint your ruby and show visual cues in the IDE.
It is currently an open issue/feature request on github. View this issue to see progress until it is resolved.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ruby-lint
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page