laser
laser copied to clipboard
Static analysis and style linter for Ruby code.
Bumps [json](https://github.com/flori/json) from 1.5.3 to 2.3.1. Changelog Sourced from json's changelog. 2020-06-30 (2.3.1) Spelling and grammar fixes for comments. Pull request #191 by Josh Kline. Enhance generic JSON and #generate...
Updates the requirements on [rake](https://github.com/ruby/rake) to permit the latest version. Changelog *Sourced from [rake's changelog](https://github.com/ruby/rake/blob/master/History.rdoc).* > === 12.3.3 > > ==== Bug fixes > > * Use the application's name...
`laser --help` gives the following error when using Ruby 2.2.2. It gives it _3,820 times_. ``` /usr/local/rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/laser-0.7.0.pre2/lib/laser/analysis/control_flow/static_single_assignment.rb:174: warning: Comparable#== will no more rescue exceptions of # in the next release....
ConstantExtraction.constant_value was attempting to evaluate """, which threw a syntax error. Changed it to eval %Q{} or "" depending on what the code under analysis uses.
How are we supposed to use this?
Hi, I was looking for any Ruby static analysis tools that focussed on security. Laser came up as a static analysis tool, but it's not clear how much the tool...
If I try to install this gem on cygwin / windows, I get a compile error (see below). All other gems install fine on my machine. ``` $ gem install...
Reproductible with ``` $ cat c.rb class C send :each do def foo end end end $ laser -d c.rb {:fix=>false, :display=>true, :"report-fixed"=>false, :"line-length"=>nil, :only=>nil, :stdin=>false, :"list-modules"=>false, :profile=>false, :debug=>true, :inline_comment_space=>2,...
Using the test case: a.rb: ``` class A end ``` b.rb: ``` require './a.rb' class B end ``` Then running: laser b.rb I get the following stack trace: `/usr/lib/ruby/gems/1.9.1/gems/laser-0.7.0.pre2/lib/laser/analysis/control_flow/simulation.rb:369:in `simulate_require':...
Maybe just me? ``` shell $ rvm info ruby-1.9.2-p290@laser: system: uname: "Darwin tom-mac-2.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64" bash: "/bin/bash => GNU...