Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions codeclimate_engine.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "bundler", ">= 1.9", "< 3.0"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.3"
spec.add_development_dependency "sorbet"

spec.add_dependency "sorbet-runtime"
spec.add_dependency "virtus", "~> 1.0"
end
# rubocop:enable Metrics/LineLength
1 change: 1 addition & 0 deletions lib/cc_engine/category.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# typed: true
module CCEngine
module Category
def self.bug_risk
Expand Down
1 change: 1 addition & 0 deletions lib/cc_engine/config.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# typed: true
require "json"

module CCEngine
Expand Down
1 change: 1 addition & 0 deletions lib/cc_engine/issue.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# typed: ignore
require "virtus"
require "json"

Expand Down
1 change: 1 addition & 0 deletions lib/cc_engine/location.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# typed: strong
require "cc_engine/location/line_range"
require "cc_engine/location/position"
1 change: 1 addition & 0 deletions lib/cc_engine/location/line_range.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# typed: ignore
require "virtus"

module CCEngine
Expand Down
1 change: 1 addition & 0 deletions lib/cc_engine/location/position.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# typed: ignore
require "virtus"

module CCEngine
Expand Down
1 change: 1 addition & 0 deletions lib/cc_engine/position/grid.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# typed: ignore
require "virtus"

module CCEngine
Expand Down
1 change: 1 addition & 0 deletions lib/cc_engine/position/offset.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# typed: ignore
require "virtus"

module CCEngine
Expand Down
1 change: 1 addition & 0 deletions lib/cc_engine/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# typed: strong
module CCEngine
VERSION = "0.4.1"
end
1 change: 1 addition & 0 deletions lib/codeclimate_engine.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# typed: strong
require "cc_engine/version"
require "cc_engine/issue"
require "cc_engine/location"
Expand Down
2 changes: 2 additions & 0 deletions sorbet/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--dir
.
159 changes: 159 additions & 0 deletions sorbet/rbi/gems/axiom-types.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
# srb rbi gems

# typed: strong
#
# If you would like to make changes to this file, great! Please create the gem's shim here:
#
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/axiom-types/all/axiom-types.rbi
#
# axiom-types-0.1.1
module Axiom
end
module Axiom::Types
def self.finalize; end
def self.infer(object); end
end
module Axiom::Types::Options
def accept_options(*new_options); end
def accepted_options; end
def assert_method_available(name); end
def define_option_method(name); end
def inherited(descendant); end
def options; end
def setup_option(new_option); end
end
class Axiom::Types::Options::ReservedMethodError < ArgumentError
end
class Axiom::Types::Infinity
def <=>(other); end
def coerce(other); end
def inverse; end
def self.allocate; end
def self.instance; end
def self.inverse(*args); end
def self.new(*arg0); end
def self.number(*args); end
def succ; end
extend Axiom::Types::Options
extend Singleton::SingletonClassMethods
include Comparable
end
class Axiom::Types::NegativeInfinity < Axiom::Types::Infinity
def <=>(_other); end
def self.instance; end
end
module Axiom::Types::ValueComparable
def finalize; end
def range; end
def self.extended(descendant); end
def use_value_within_range; end
end
module Axiom::Types::LengthComparable
def finalize; end
def range; end
def self.extended(descendant); end
def use_length_within_range; end
end
module Axiom::Types::Encodable
def ascii_compatible?; end
def finalize; end
def self.extended(descendant); end
def use_ascii_compatible_encoding; end
def use_encoding; end
end
class Axiom::Types::Type
def self.add_constraint(constraint); end
def self.anonymous?; end
def self.base; end
def self.base?; end
def self.constraint(constraint = nil, &block); end
def self.finalize; end
def self.include?(object); end
def self.includes(*members); end
def self.infer(object); end
def self.new(*args, &block); end
extend Axiom::Types::Options
end
class Axiom::Types::Object < Axiom::Types::Type
def self.coercion_method(*args); end
def self.finalize; end
def self.infer(object); end
def self.infer_from_primitive_class(object); end
def self.inherits_from_primitive; end
def self.inspect; end
def self.match_primitive?(object); end
def self.primitive(*args); end
end
class Axiom::Types::Collection < Axiom::Types::Object
def self.base?; end
def self.finalize; end
def self.infer(object); end
def self.infer_from(member_type); end
def self.infer_from_primitive_instance(object); end
def self.match_primitive?(*arg0); end
def self.matches_member_type; end
def self.member_type(*args); end
def self.new_from(member_type); end
end
class Axiom::Types::Numeric < Axiom::Types::Object
def self.maximum(*args); end
def self.minimum(*args); end
extend Axiom::Types::ValueComparable
end
class Axiom::Types::Array < Axiom::Types::Collection
def self.base?; end
end
class Axiom::Types::Boolean < Axiom::Types::Object
def self.infer_from_primitive_class(object); end
end
class Axiom::Types::Class < Axiom::Types::Object
end
class Axiom::Types::Date < Axiom::Types::Object
def self.maximum(*args); end
def self.minimum(*args); end
extend Axiom::Types::ValueComparable
end
class Axiom::Types::DateTime < Axiom::Types::Object
def self.maximum(*args); end
def self.minimum(*args); end
extend Axiom::Types::ValueComparable
end
class Axiom::Types::Decimal < Axiom::Types::Numeric
end
class Axiom::Types::Float < Axiom::Types::Numeric
end
class Axiom::Types::Hash < Axiom::Types::Object
def self.base?; end
def self.finalize; end
def self.infer(object); end
def self.infer_from(key_type, value_type); end
def self.infer_from_primitive_instance(object); end
def self.key_type(*args); end
def self.match_primitive?(*arg0); end
def self.matches_key_and_value_types; end
def self.new_from(key_type, value_type); end
def self.value_type(*args); end
end
class Axiom::Types::Integer < Axiom::Types::Numeric
end
class Axiom::Types::Set < Axiom::Types::Collection
def self.base?; end
end
class Axiom::Types::String < Axiom::Types::Object
def self.encoding(*args); end
def self.maximum_length(*args); end
def self.minimum_length(*args); end
extend Axiom::Types::LengthComparable
end
class Axiom::Types::Symbol < Axiom::Types::Object
def self.encoding(*args); end
def self.maximum_length(*args); end
def self.minimum_length(*args); end
extend Axiom::Types::LengthComparable
end
class Axiom::Types::Time < Axiom::Types::Object
def self.maximum(*args); end
def self.minimum(*args); end
extend Axiom::Types::ValueComparable
end
156 changes: 156 additions & 0 deletions sorbet/rbi/gems/coercible.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
# srb rbi gems

# typed: strong
#
# If you would like to make changes to this file, great! Please create the gem's shim here:
#
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/coercible/all/coercible.rbi
#
# coercible-1.0.0
module Coercible
def self.rbx?; end
end
module Coercible::Options
def accept_options(*new_options); end
def accepted_options; end
def add_accepted_options(new_options); end
def define_option_method(option); end
def inherited(descendant); end
def options; end
def self.extended(descendant); end
def set_options(new_options); end
end
class Coercible::Options::Undefined
end
module Coercible::TypeLookup
def determine_type(class_or_name); end
def determine_type_and_cache(class_or_name); end
def determine_type_from_descendant(descendant); end
def determine_type_from_primitive(primitive); end
def determine_type_from_string(string); end
def primitive; end
def self.extended(model); end
end
class Coercible::Configuration
def self.build(keys, &block); end
end
class Coercible::Coercer
def [](klass); end
def coercers; end
def config; end
def config_for(coercer); end
def initialize(config, coercers = nil); end
def initialize_coercer(klass); end
def self.config_keys; end
def self.configurable_coercers(&block); end
def self.new(&block); end
end
module Coercible::Coercer::Configurable
def config(&block); end
def config_name; end
def configuration_class; end
def self.extended(coercer); end
end
class Coercible::Coercer::Object
def coerce_with_method(value, method, ref_method); end
def coerced?(value); end
def coercers; end
def initialize(coercers = nil); end
def inspect; end
def method_missing(method, *args); end
def raise_unsupported_coercion(value, method); end
def self.primitive(value = nil); end
def to_array(value); end
def to_hash(value); end
def to_integer(value); end
def to_string(value); end
extend Coercible::TypeLookup
extend DescendantsTracker
end
class Coercible::Coercer::Numeric < Coercible::Coercer::Object
def to_decimal(value); end
def to_float(value); end
def to_integer(value); end
def to_string(value); end
end
class Coercible::Coercer::Float < Coercible::Coercer::Numeric
def to_datetime(value); end
def to_float(value); end
end
class Coercible::Coercer::Integer < Coercible::Coercer::Numeric
def boolean_map; end
def datetime_format; end
def datetime_proc; end
def initialize(coercer = nil, config = nil); end
def self.config; end
def self.config_keys(value = nil); end
def to_boolean(value); end
def to_datetime(value); end
def to_integer(value); end
def to_string(value); end
extend Coercible::Coercer::Configurable
end
class Coercible::Coercer::Decimal < Coercible::Coercer::Numeric
def to_decimal(value); end
def to_string(value); end
end
class Coercible::Coercer::String < Coercible::Coercer::Object
def boolean_map; end
def constant_lookup(mod, name); end
def initialize(coercer = nil, config = nil); end
def parse_value(parser, value, method); end
def self.config; end
def self.config_keys(value = nil); end
def to_boolean(value); end
def to_constant(value); end
def to_date(value); end
def to_datetime(value); end
def to_decimal(value); end
def to_float(value); end
def to_integer(value); end
def to_numeric(value, method); end
def to_symbol(value); end
def to_time(value); end
extend Coercible::Coercer::Configurable
end
class Coercible::Coercer::Symbol < Coercible::Coercer::Object
def to_string(value); end
end
module Coercible::Coercer::TimeCoercions
def coerce_with_method(value, method); end
def to_date(value); end
def to_datetime(value); end
def to_string(value); end
def to_time(value); end
end
class Coercible::Coercer::Date < Coercible::Coercer::Object
def to_date(value); end
include Coercible::Coercer::TimeCoercions
end
class Coercible::Coercer::DateTime < Coercible::Coercer::Object
def to_datetime(value); end
include Coercible::Coercer::TimeCoercions
end
class Coercible::Coercer::Time < Coercible::Coercer::Object
def to_integer(value); end
def to_time(value); end
include Coercible::Coercer::TimeCoercions
end
class Coercible::Coercer::FalseClass < Coercible::Coercer::Object
def to_string(value); end
end
class Coercible::Coercer::TrueClass < Coercible::Coercer::Object
def to_string(value); end
end
class Coercible::Coercer::Array < Coercible::Coercer::Object
def to_set(value); end
end
class Coercible::Coercer::Hash < Coercible::Coercer::Object
def extract(value); end
def to_date(value); end
def to_datetime(value); end
def to_time(value); end
end
class Coercible::UnsupportedCoercion < StandardError
end
17 changes: 17 additions & 0 deletions sorbet/rbi/gems/descendants_tracker.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
# srb rbi gems

# typed: strong
#
# If you would like to make changes to this file, great! Please create the gem's shim here:
#
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/descendants_tracker/all/descendants_tracker.rbi
#
# descendants_tracker-0.0.4
module DescendantsTracker
def add_descendant(descendant); end
def descendants; end
def inherited(descendant); end
def self.extended(descendant); end
def self.setup(descendant); end
end
Loading