Sha256: 136bf9f10c442b462f3d5ae20e79d745d026b679b88948aa6c3e57cef9587362
Contents?: true
Size: 669 Bytes
Versions: 1
Compression:
Stored size: 669 Bytes
Contents
# frozen_string_literal: true require_relative "offense_to_corrector/version" require "rubocop" require "erb" require "offense_to_corrector/atom_node" require "offense_to_corrector/ast_tools" require "offense_to_corrector/offense" require "offense_to_corrector/offense_parser" require "offense_to_corrector/offense_template" module OffenseToCorrector module_function def load_template(name) File.join(File.dirname(__FILE__), "offense_to_corrector/templates", name) end module_function def node_offense_data(code) OffenseParser.new(code).node_offense_info end module_function def offense_to_cop(code) OffenseParser.new(code).render end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
offense_to_corrector-0.0.2 | lib/offense_to_corrector.rb |