RuboCop Spinel ci

Custom cop for Spinel, warns on Ruby code that is not (yet) supported by Spinel.

Installation

# add to Gemfile
gem "rubocop_spinel"
# add to rubocop.yml
plugins:
  - rubocop_spinel

Example Errors

class Example
  class << self
    def bad
      42
    end
  end
end

Thread.new { puts Example.bad }
sample.rb:2:3: C: Spinel/Unsupported: Spinel does not support singleton classes.
class << self ...
^^^^^^^^^^^^^
sample.rb:9:1: C: Spinel/Unsupported: Spinel does not support threads or mutexes.
Thread.new { puts Example.bad }
^^^^^^

Changelog

0.0.1 (unreleased)