ruby-lint 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.asc +17 -0
- data.tar.gz.asc +14 -14
- data/.ruby-version +1 -0
- data/.travis.yml +0 -1
- data/.yardopts +1 -0
- data/CONTRIBUTING.md +41 -0
- data/MANIFEST +99 -66
- data/README.md +36 -10
- data/Rakefile +6 -0
- data/checksum/ruby-lint-0.0.4.gem.sha512 +1 -0
- data/doc/changelog.md +94 -0
- data/lib/ruby-lint.rb +18 -1
- data/lib/ruby-lint/analysis/argument_amount.rb +43 -10
- data/lib/ruby-lint/analysis/base.rb +23 -17
- data/lib/ruby-lint/analysis/pedantics.rb +3 -1
- data/lib/ruby-lint/analysis/undefined_methods.rb +48 -10
- data/lib/ruby-lint/analysis/unused_variables.rb +27 -5
- data/lib/ruby-lint/ast/node.rb +10 -0
- data/lib/ruby-lint/cli/analyze.rb +22 -4
- data/lib/ruby-lint/cli/base.rb +8 -2
- data/lib/ruby-lint/configuration.rb +43 -4
- data/lib/ruby-lint/definition/constant_proxy.rb +10 -1
- data/lib/ruby-lint/definition/ruby_method.rb +45 -31
- data/lib/ruby-lint/definition/ruby_object.rb +56 -15
- data/lib/ruby-lint/definition_builder/base.rb +4 -0
- data/lib/ruby-lint/definition_builder/primitive.rb +1 -1
- data/lib/ruby-lint/definition_builder/ruby_array.rb +1 -1
- data/lib/ruby-lint/definition_builder/ruby_block.rb +1 -0
- data/lib/ruby-lint/definition_builder/ruby_class.rb +1 -1
- data/lib/ruby-lint/definition_builder/ruby_hash.rb +1 -1
- data/lib/ruby-lint/definition_builder/ruby_module.rb +3 -1
- data/lib/ruby-lint/definition_generator.rb +15 -7
- data/lib/ruby-lint/definitions/core/arg0.rb +1 -1
- data/lib/ruby-lint/definitions/core/argf.rb +1 -1
- data/lib/ruby-lint/definitions/core/argument_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/argv.rb +1 -1
- data/lib/ruby-lint/definitions/core/array.rb +6 -6
- data/lib/ruby-lint/definitions/core/autoload.rb +2 -2
- data/lib/ruby-lint/definitions/core/basic_object.rb +8 -12
- data/lib/ruby-lint/definitions/core/bignum.rb +2 -2
- data/lib/ruby-lint/definitions/core/binding.rb +2 -2
- data/lib/ruby-lint/definitions/core/class.rb +2 -2
- data/lib/ruby-lint/definitions/core/comparable.rb +1 -1
- data/lib/ruby-lint/definitions/core/complex.rb +4 -4
- data/lib/ruby-lint/definitions/core/condition_variable.rb +2 -2
- data/lib/ruby-lint/definitions/core/continuation.rb +2 -2
- data/lib/ruby-lint/definitions/core/data.rb +2 -2
- data/lib/ruby-lint/definitions/core/date.rb +34 -34
- data/lib/ruby-lint/definitions/core/date_time.rb +26 -26
- data/lib/ruby-lint/definitions/core/default_record_separator.rb +1 -1
- data/lib/ruby-lint/definitions/core/digest.rb +14 -14
- data/lib/ruby-lint/definitions/core/dir.rb +34 -34
- data/lib/ruby-lint/definitions/core/encoding.rb +237 -237
- data/lib/ruby-lint/definitions/core/encoding_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/enumerable.rb +15 -15
- data/lib/ruby-lint/definitions/core/enumerator.rb +2 -2
- data/lib/ruby-lint/definitions/core/env.rb +1 -1
- data/lib/ruby-lint/definitions/core/eoferror.rb +2 -2
- data/lib/ruby-lint/definitions/core/erb.rb +30 -23
- data/lib/ruby-lint/definitions/core/errno.rb +525 -525
- data/lib/ruby-lint/definitions/core/etc.rb +6 -6
- data/lib/ruby-lint/definitions/core/exception.rb +2 -2
- data/lib/ruby-lint/definitions/core/false.rb +1 -1
- data/lib/ruby-lint/definitions/core/false_class.rb +2 -2
- data/lib/ruby-lint/definitions/core/fatal_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/fiber.rb +2 -2
- data/lib/ruby-lint/definitions/core/fiber_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/file.rb +68 -68
- data/lib/ruby-lint/definitions/core/file_list.rb +2 -2
- data/lib/ruby-lint/definitions/core/file_test.rb +1 -1
- data/lib/ruby-lint/definitions/core/file_utils.rb +16 -16
- data/lib/ruby-lint/definitions/core/fixnum.rb +4 -4
- data/lib/ruby-lint/definitions/core/float.rb +16 -16
- data/lib/ruby-lint/definitions/core/float_domain_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/gc.rb +2 -2
- data/lib/ruby-lint/definitions/core/gem.rb +119 -119
- data/lib/ruby-lint/definitions/core/hash.rb +14 -14
- data/lib/ruby-lint/definitions/core/immediate_value.rb +1 -1
- data/lib/ruby-lint/definitions/core/index_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/integer.rb +2 -2
- data/lib/ruby-lint/definitions/core/interrupt.rb +2 -2
- data/lib/ruby-lint/definitions/core/io.rb +38 -38
- data/lib/ruby-lint/definitions/core/ioerror.rb +2 -2
- data/lib/ruby-lint/definitions/core/kernel.rb +113 -60
- data/lib/ruby-lint/definitions/core/key_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/load_error.rb +6 -6
- data/lib/ruby-lint/definitions/core/local_jump_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/marshal.rb +35 -35
- data/lib/ruby-lint/definitions/core/match_data.rb +2 -2
- data/lib/ruby-lint/definitions/core/math.rb +7 -7
- data/lib/ruby-lint/definitions/core/memory_segmention_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/method.rb +2 -2
- data/lib/ruby-lint/definitions/core/module.rb +39 -3
- data/lib/ruby-lint/definitions/core/monitor.rb +4 -4
- data/lib/ruby-lint/definitions/core/monitor_mixin.rb +5 -5
- data/lib/ruby-lint/definitions/core/mutex.rb +2 -2
- data/lib/ruby-lint/definitions/core/name_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/nil.rb +1 -1
- data/lib/ruby-lint/definitions/core/nil_class.rb +2 -2
- data/lib/ruby-lint/definitions/core/no_memory_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/no_method_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/not_implemented_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/numeric.rb +2 -2
- data/lib/ruby-lint/definitions/core/object.rb +2 -2
- data/lib/ruby-lint/definitions/core/object_space.rb +1 -1
- data/lib/ruby-lint/definitions/core/open_struct.rb +3 -3
- data/lib/ruby-lint/definitions/core/option_parser.rb +83 -83
- data/lib/ruby-lint/definitions/core/precision.rb +1 -1
- data/lib/ruby-lint/definitions/core/primitive_failure.rb +2 -2
- data/lib/ruby-lint/definitions/core/proc.rb +2 -2
- data/lib/ruby-lint/definitions/core/process.rb +29 -29
- data/lib/ruby-lint/definitions/core/queue.rb +2 -2
- data/lib/ruby-lint/definitions/core/rake.rb +117 -117
- data/lib/ruby-lint/definitions/core/rake_file_utils.rb +1 -1
- data/lib/ruby-lint/definitions/core/rakeversion.rb +1 -1
- data/lib/ruby-lint/definitions/core/random.rb +2 -2
- data/lib/ruby-lint/definitions/core/range.rb +4 -4
- data/lib/ruby-lint/definitions/core/range_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/rational.rb +2 -2
- data/lib/ruby-lint/definitions/core/rb_config.rb +3 -3
- data/lib/ruby-lint/definitions/core/regexp.rb +28 -28
- data/lib/ruby-lint/definitions/core/regexp_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/ruby_copyright.rb +1 -1
- data/lib/ruby-lint/definitions/core/ruby_description.rb +1 -1
- data/lib/ruby-lint/definitions/core/ruby_engine.rb +1 -1
- data/lib/ruby-lint/definitions/core/ruby_patchlevel.rb +1 -1
- data/lib/ruby-lint/definitions/core/ruby_platform.rb +1 -1
- data/lib/ruby-lint/definitions/core/ruby_release_date.rb +1 -1
- data/lib/ruby-lint/definitions/core/ruby_version.rb +1 -1
- data/lib/ruby-lint/definitions/core/runtime_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/scan_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/script_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/security_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/shellwords.rb +1 -1
- data/lib/ruby-lint/definitions/core/signal.rb +3 -3
- data/lib/ruby-lint/definitions/core/signal_exception.rb +2 -2
- data/lib/ruby-lint/definitions/core/singleton.rb +2 -2
- data/lib/ruby-lint/definitions/core/sized_queue.rb +2 -2
- data/lib/ruby-lint/definitions/core/standard_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/stderr.rb +3 -2
- data/lib/ruby-lint/definitions/core/stdin.rb +3 -2
- data/lib/ruby-lint/definitions/core/stdout.rb +3 -2
- data/lib/ruby-lint/definitions/core/stop_iteration.rb +2 -2
- data/lib/ruby-lint/definitions/core/string.rb +21 -21
- data/lib/ruby-lint/definitions/core/string_io.rb +7 -7
- data/lib/ruby-lint/definitions/core/string_scanner.rb +4 -4
- data/lib/ruby-lint/definitions/core/struct.rb +20 -20
- data/lib/ruby-lint/definitions/core/syck.rb +4 -4
- data/lib/ruby-lint/definitions/core/symbol.rb +2 -2
- data/lib/ruby-lint/definitions/core/syntax_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/system_call_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/system_exit.rb +2 -2
- data/lib/ruby-lint/definitions/core/system_stack_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/thread.rb +6 -6
- data/lib/ruby-lint/definitions/core/thread_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/thread_group.rb +2 -2
- data/lib/ruby-lint/definitions/core/time.rb +3 -3
- data/lib/ruby-lint/definitions/core/toplevel_binding.rb +1 -1
- data/lib/ruby-lint/definitions/core/true.rb +1 -1
- data/lib/ruby-lint/definitions/core/true_class.rb +2 -2
- data/lib/ruby-lint/definitions/core/type_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/unbound_method.rb +2 -2
- data/lib/ruby-lint/definitions/core/unmarshalable.rb +1 -1
- data/lib/ruby-lint/definitions/core/unsupported_library_error.rb +2 -2
- data/lib/ruby-lint/definitions/core/weak_ref.rb +4 -4
- data/lib/ruby-lint/definitions/core/yaml.rb +2361 -0
- data/lib/ruby-lint/definitions/core/zero_division_error.rb +2 -2
- data/lib/ruby-lint/definitions/global_variables.rb +9 -0
- data/lib/ruby-lint/definitions/rails/abstract_controller.rb +174 -28
- data/lib/ruby-lint/definitions/rails/action_controller.rb +4959 -550
- data/lib/ruby-lint/definitions/rails/action_dispatch.rb +2489 -292
- data/lib/ruby-lint/definitions/rails/action_mailer.rb +1285 -42
- data/lib/ruby-lint/definitions/rails/action_pack.rb +14 -6
- data/lib/ruby-lint/definitions/rails/action_view.rb +6941 -445
- data/lib/ruby-lint/definitions/rails/active_model.rb +1212 -69
- data/lib/ruby-lint/definitions/rails/active_record.rb +10344 -1450
- data/lib/ruby-lint/definitions/rails/active_support.rb +4631 -573
- data/lib/ruby-lint/definitions/rails/arel.rb +3211 -319
- data/lib/ruby-lint/definitions/rails/rails.rb +2922 -84
- data/lib/ruby-lint/definitions/rails/sprockets.rb +3048 -277
- data/lib/ruby-lint/docstring/mapping.rb +55 -0
- data/lib/ruby-lint/docstring/param_tag.rb +29 -0
- data/lib/ruby-lint/docstring/parser.rb +133 -0
- data/lib/ruby-lint/docstring/return_tag.rb +24 -0
- data/lib/ruby-lint/file_loader.rb +96 -0
- data/lib/ruby-lint/file_scanner.rb +91 -0
- data/lib/ruby-lint/global_scope.rb +56 -0
- data/lib/ruby-lint/helper/constant_paths.rb +1 -1
- data/lib/ruby-lint/inspector.rb +11 -33
- data/lib/ruby-lint/iterator.rb +31 -4
- data/lib/ruby-lint/method_call/alias.rb +46 -0
- data/lib/ruby-lint/method_call/assign_member.rb +55 -0
- data/lib/ruby-lint/method_call/attribute.rb +102 -0
- data/lib/ruby-lint/method_call/base.rb +37 -0
- data/lib/ruby-lint/method_call/define_method.rb +17 -0
- data/lib/ruby-lint/method_call/include.rb +39 -0
- data/lib/ruby-lint/parser.rb +9 -4
- data/lib/ruby-lint/presenter/text.rb +2 -1
- data/lib/ruby-lint/report.rb +19 -42
- data/lib/ruby-lint/report/entry.rb +20 -17
- data/lib/ruby-lint/runner.rb +92 -11
- data/lib/ruby-lint/template/definition.erb +2 -2
- data/lib/ruby-lint/variable_predicates.rb +7 -10
- data/lib/ruby-lint/version.rb +1 -1
- data/lib/ruby-lint/virtual_machine.rb +265 -188
- data/ruby-lint.gemspec +4 -4
- data/ruby-lint.yml +7 -0
- data/spec/fixtures/associating.rb +7 -0
- data/spec/fixtures/file_scanner/lib/example/recursive/source.rb +6 -0
- data/spec/fixtures/file_scanner/lib/example/recursive/target.rb +8 -0
- data/spec/fixtures/file_scanner/lib/example/user.rb +6 -0
- data/spec/fixtures/file_scanner/lib/test-dashes/foo.rb +4 -0
- data/spec/fixtures/file_scanner/rails/app/models/example/user.rb +6 -0
- data/spec/fixtures/file_scanner/rails/app/models/user.rb +4 -0
- data/spec/fixtures/uses_external.rb +1 -0
- data/spec/fixtures/uses_external_invalid.rb +3 -0
- data/spec/fixtures/uses_external_namespace.rb +1 -0
- data/spec/ruby-lint/analysis/{argument_amount.rb → argument_amount_spec.rb} +33 -7
- data/spec/ruby-lint/analysis/base_spec.rb +12 -0
- data/spec/ruby-lint/analysis/{pedantics.rb → pedantics_spec.rb} +24 -4
- data/spec/ruby-lint/analysis/{shadowing_variables.rb → shadowing_variables_spec.rb} +6 -6
- data/spec/ruby-lint/analysis/undefined_methods_spec.rb +320 -0
- data/spec/ruby-lint/analysis/{undefined_variables.rb → undefined_variables_spec.rb} +33 -10
- data/spec/ruby-lint/analysis/{unused_variables.rb → unused_variables_spec.rb} +36 -9
- data/spec/ruby-lint/ast/{node.rb → node_spec.rb} +12 -6
- data/spec/ruby-lint/cli/{analyze.rb → analyze_spec.rb} +16 -5
- data/spec/ruby-lint/cli/{ast.rb → ast_spec.rb} +3 -3
- data/spec/ruby-lint/configuration_spec.rb +106 -0
- data/spec/ruby-lint/definition/constant_proxy_spec.rb +54 -0
- data/spec/ruby-lint/definition/{dsl.rb → dsl_spec.rb} +15 -15
- data/spec/ruby-lint/definition/{ruby_method.rb → ruby_method_spec.rb} +31 -17
- data/spec/ruby-lint/definition/{ruby_object.rb → ruby_object_spec.rb} +28 -23
- data/spec/ruby-lint/definition_builder/{primitive.rb → primitive_spec.rb} +9 -9
- data/spec/ruby-lint/definition_builder/{ruby_class.rb → ruby_class_spec.rb} +13 -13
- data/spec/ruby-lint/definition_builder/{ruby_method.rb → ruby_method_spec.rb} +9 -9
- data/spec/ruby-lint/definition_builder/{ruby_module.rb → ruby_module_spec.rb} +12 -10
- data/spec/ruby-lint/docstring/mapping.rb +27 -0
- data/spec/ruby-lint/docstring/parser_spec.rb +88 -0
- data/spec/ruby-lint/extensions/{string.rb → string_spec.rb} +3 -3
- data/spec/ruby-lint/file_loader_spec.rb +69 -0
- data/spec/ruby-lint/file_scanner_spec.rb +51 -0
- data/spec/ruby-lint/inspector_spec.rb +44 -0
- data/spec/ruby-lint/{iterator.rb → iterator_spec.rb} +39 -4
- data/spec/ruby-lint/{nested_stack.rb → nested_stack_spec.rb} +4 -4
- data/spec/ruby-lint/parser_spec.rb +31 -0
- data/spec/ruby-lint/presenter/json_spec.rb +58 -0
- data/spec/ruby-lint/presenter/text_spec.rb +49 -0
- data/spec/ruby-lint/report/entry_spec.rb +58 -0
- data/spec/ruby-lint/report_spec.rb +39 -0
- data/spec/ruby-lint/runner_spec.rb +52 -0
- data/spec/ruby-lint/virtual_machine/alias_spec.rb +55 -0
- data/spec/ruby-lint/virtual_machine/assignments/{arrays.rb → arrays_spec.rb} +7 -7
- data/spec/ruby-lint/virtual_machine/assignments/{hashes.rb → hashes_spec.rb} +6 -6
- data/spec/ruby-lint/virtual_machine/assignments/{optional.rb → optional_spec.rb} +6 -6
- data/spec/ruby-lint/virtual_machine/assignments/{return_values.rb → return_values_spec.rb} +11 -11
- data/spec/ruby-lint/virtual_machine/assignments/{variables.rb → variables_spec.rb} +38 -7
- data/spec/ruby-lint/virtual_machine/associate_nodes_spec.rb +59 -0
- data/spec/ruby-lint/virtual_machine/{autoloading.rb → autoloading_spec.rb} +6 -6
- data/spec/ruby-lint/virtual_machine/{blocks.rb → blocks_spec.rb} +30 -4
- data/spec/ruby-lint/virtual_machine/classes/{class_methods.rb → class_methods_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/classes/{extending.rb → extending_spec.rb} +20 -15
- data/spec/ruby-lint/virtual_machine/classes/{redefining.rb → redefining_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/classes/{sclass.rb → sclass_spec.rb} +7 -7
- data/spec/ruby-lint/virtual_machine/classes/{scoping.rb → scoping_spec.rb} +5 -5
- data/spec/ruby-lint/virtual_machine/complex/{rails.rb → rails_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/complex/{rcap.rb → rcap_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/complex/{slop.rb → slop_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/constants_spec.rb +31 -0
- data/spec/ruby-lint/virtual_machine/{for.rb → for_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/{freeze.rb → freeze_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/global_variables_spec.rb +12 -0
- data/spec/ruby-lint/virtual_machine/inherit_kernel_spec.rb +15 -0
- data/spec/ruby-lint/virtual_machine/{interpolation.rb → interpolation_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/methods/attr_spec.rb +116 -0
- data/spec/ruby-lint/virtual_machine/methods/define_method_spec.rb +41 -0
- data/spec/ruby-lint/virtual_machine/methods/{defining.rb → defining_spec.rb} +4 -4
- data/spec/ruby-lint/virtual_machine/methods/docstrings_spec.rb +69 -0
- data/spec/ruby-lint/virtual_machine/methods/{exporting.rb → exporting_spec.rb} +3 -3
- data/spec/ruby-lint/virtual_machine/methods/{parameters.rb → parameters_spec.rb} +17 -5
- data/spec/ruby-lint/virtual_machine/methods/{patching.rb → patching_spec.rb} +4 -4
- data/spec/ruby-lint/virtual_machine/methods/{scoping.rb → scoping_spec.rb} +5 -5
- data/spec/ruby-lint/virtual_machine/methods/{visibility.rb → visibility_spec.rb} +6 -6
- data/spec/ruby-lint/virtual_machine/{modules.rb → modules_spec.rb} +39 -9
- data/spec/ruby-lint/virtual_machine/reference_amount_spec.rb +61 -0
- data/spec/ruby-lint/virtual_machine/{unused.rb → unused_spec.rb} +4 -4
- data/spec/{helper.rb → spec_helper.rb} +6 -4
- data/spec/support/building.rb +10 -6
- data/spec/support/coveralls.rb +1 -1
- data/spec/support/parsing.rb +10 -1
- data/spec/support/simplecov.rb +1 -1
- data/spec/support/versions.rb +9 -0
- data/task/test.rake +2 -4
- data/task/travis.rake +1 -0
- metadata +144 -143
- metadata.gz.asc +14 -14
- data/.rubocop.yml +0 -59
- data/doc/contributing.md +0 -16
- data/lib/ruby-lint/analysis/confusing_variables.rb +0 -26
- data/lib/ruby-lint/definitions/core/main.rb +0 -25
- data/lib/ruby-lint/definitions/core/psych.rb +0 -2231
- data/lib/ruby-lint/definitions/core/rubinius.rb +0 -16637
- data/lib/ruby-lint/definitions/core/ruby_lint.rb +0 -93
- data/spec/ruby-lint/analysis/confusing_variables.rb +0 -46
- data/spec/ruby-lint/analysis/undefined_methods.rb +0 -174
- data/spec/ruby-lint/configuration.rb +0 -54
- data/spec/ruby-lint/definition/constant_proxy.rb +0 -31
- data/spec/ruby-lint/parser.rb +0 -14
- data/spec/ruby-lint/presenter/json.rb +0 -31
- data/spec/ruby-lint/presenter/text.rb +0 -22
- data/spec/ruby-lint/report.rb +0 -50
- data/spec/ruby-lint/report/entry.rb +0 -28
- data/spec/ruby-lint/runner.rb +0 -32
- data/spec/ruby-lint/virtual_machine/associate_nodes.rb +0 -17
- data/spec/ruby-lint/virtual_machine/reference_amount.rb +0 -33
- data/spec/support/bacon.rb +0 -33
- data/task/cop.rake +0 -11
@@ -3,6 +3,6 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:54 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('KeyError') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('IndexError'))
|
8
8
|
end
|
@@ -3,8 +3,8 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:54 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('LoadError') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('ScriptError'))
|
8
8
|
|
9
9
|
klass.define_method('__class_init__')
|
10
10
|
end
|
@@ -14,8 +14,8 @@ end
|
|
14
14
|
# Created: 2013-04-01 18:33:54 +0200
|
15
15
|
# Platform: rbx 2.0.0.rc1
|
16
16
|
#
|
17
|
-
RubyLint::
|
18
|
-
klass.inherits(RubyLint::
|
17
|
+
RubyLint::GlobalScope.definitions.define_constant('LoadError::InvalidExtensionError') do |klass|
|
18
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('LoadError'))
|
19
19
|
end
|
20
20
|
|
21
21
|
##
|
@@ -23,6 +23,6 @@ end
|
|
23
23
|
# Created: 2013-04-01 18:33:54 +0200
|
24
24
|
# Platform: rbx 2.0.0.rc1
|
25
25
|
#
|
26
|
-
RubyLint::
|
27
|
-
klass.inherits(RubyLint::
|
26
|
+
RubyLint::GlobalScope.definitions.define_constant('LoadError::MRIExtensionError') do |klass|
|
27
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('LoadError::InvalidExtensionError'))
|
28
28
|
end
|
@@ -3,6 +3,6 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:54 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('LocalJumpError') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('StandardError'))
|
8
8
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:54 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal') do |klass|
|
7
7
|
|
8
8
|
klass.define_method('__module_init__')
|
9
9
|
|
@@ -29,8 +29,8 @@ end
|
|
29
29
|
# Created: 2013-04-01 18:33:54 +0200
|
30
30
|
# Platform: rbx 2.0.0.rc1
|
31
31
|
#
|
32
|
-
RubyLint::
|
33
|
-
klass.inherits(RubyLint::
|
32
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::IOState') do |klass|
|
33
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Marshal::State'))
|
34
34
|
|
35
35
|
klass.define_method('__class_init__')
|
36
36
|
|
@@ -46,7 +46,7 @@ end
|
|
46
46
|
# Created: 2013-04-01 18:33:54 +0200
|
47
47
|
# Platform: rbx 2.0.0.rc1
|
48
48
|
#
|
49
|
-
RubyLint::
|
49
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::MAJOR_VERSION') do |klass|
|
50
50
|
end
|
51
51
|
|
52
52
|
##
|
@@ -54,7 +54,7 @@ end
|
|
54
54
|
# Created: 2013-04-01 18:33:54 +0200
|
55
55
|
# Platform: rbx 2.0.0.rc1
|
56
56
|
#
|
57
|
-
RubyLint::
|
57
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::MINOR_VERSION') do |klass|
|
58
58
|
end
|
59
59
|
|
60
60
|
##
|
@@ -62,8 +62,8 @@ end
|
|
62
62
|
# Created: 2013-04-01 18:33:54 +0200
|
63
63
|
# Platform: rbx 2.0.0.rc1
|
64
64
|
#
|
65
|
-
RubyLint::
|
66
|
-
klass.inherits(RubyLint::
|
65
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::State') do |klass|
|
66
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
67
67
|
|
68
68
|
klass.define_method('__class_init__')
|
69
69
|
|
@@ -239,8 +239,8 @@ end
|
|
239
239
|
# Created: 2013-04-01 18:33:54 +0200
|
240
240
|
# Platform: rbx 2.0.0.rc1
|
241
241
|
#
|
242
|
-
RubyLint::
|
243
|
-
klass.inherits(RubyLint::
|
242
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::StringState') do |klass|
|
243
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Marshal::State'))
|
244
244
|
|
245
245
|
klass.define_method('__class_init__')
|
246
246
|
|
@@ -262,7 +262,7 @@ end
|
|
262
262
|
# Created: 2013-04-01 18:33:54 +0200
|
263
263
|
# Platform: rbx 2.0.0.rc1
|
264
264
|
#
|
265
|
-
RubyLint::
|
265
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_ARRAY') do |klass|
|
266
266
|
end
|
267
267
|
|
268
268
|
##
|
@@ -270,7 +270,7 @@ end
|
|
270
270
|
# Created: 2013-04-01 18:33:54 +0200
|
271
271
|
# Platform: rbx 2.0.0.rc1
|
272
272
|
#
|
273
|
-
RubyLint::
|
273
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_BIGNUM') do |klass|
|
274
274
|
end
|
275
275
|
|
276
276
|
##
|
@@ -278,7 +278,7 @@ end
|
|
278
278
|
# Created: 2013-04-01 18:33:54 +0200
|
279
279
|
# Platform: rbx 2.0.0.rc1
|
280
280
|
#
|
281
|
-
RubyLint::
|
281
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_CLASS') do |klass|
|
282
282
|
end
|
283
283
|
|
284
284
|
##
|
@@ -286,7 +286,7 @@ end
|
|
286
286
|
# Created: 2013-04-01 18:33:54 +0200
|
287
287
|
# Platform: rbx 2.0.0.rc1
|
288
288
|
#
|
289
|
-
RubyLint::
|
289
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_DATA') do |klass|
|
290
290
|
end
|
291
291
|
|
292
292
|
##
|
@@ -294,7 +294,7 @@ end
|
|
294
294
|
# Created: 2013-04-01 18:33:54 +0200
|
295
295
|
# Platform: rbx 2.0.0.rc1
|
296
296
|
#
|
297
|
-
RubyLint::
|
297
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_EXTENDED') do |klass|
|
298
298
|
end
|
299
299
|
|
300
300
|
##
|
@@ -302,7 +302,7 @@ end
|
|
302
302
|
# Created: 2013-04-01 18:33:54 +0200
|
303
303
|
# Platform: rbx 2.0.0.rc1
|
304
304
|
#
|
305
|
-
RubyLint::
|
305
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_FALSE') do |klass|
|
306
306
|
end
|
307
307
|
|
308
308
|
##
|
@@ -310,7 +310,7 @@ end
|
|
310
310
|
# Created: 2013-04-01 18:33:54 +0200
|
311
311
|
# Platform: rbx 2.0.0.rc1
|
312
312
|
#
|
313
|
-
RubyLint::
|
313
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_FIXNUM') do |klass|
|
314
314
|
end
|
315
315
|
|
316
316
|
##
|
@@ -318,7 +318,7 @@ end
|
|
318
318
|
# Created: 2013-04-01 18:33:54 +0200
|
319
319
|
# Platform: rbx 2.0.0.rc1
|
320
320
|
#
|
321
|
-
RubyLint::
|
321
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_FLOAT') do |klass|
|
322
322
|
end
|
323
323
|
|
324
324
|
##
|
@@ -326,7 +326,7 @@ end
|
|
326
326
|
# Created: 2013-04-01 18:33:54 +0200
|
327
327
|
# Platform: rbx 2.0.0.rc1
|
328
328
|
#
|
329
|
-
RubyLint::
|
329
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_HASH') do |klass|
|
330
330
|
end
|
331
331
|
|
332
332
|
##
|
@@ -334,7 +334,7 @@ end
|
|
334
334
|
# Created: 2013-04-01 18:33:54 +0200
|
335
335
|
# Platform: rbx 2.0.0.rc1
|
336
336
|
#
|
337
|
-
RubyLint::
|
337
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_HASH_DEF') do |klass|
|
338
338
|
end
|
339
339
|
|
340
340
|
##
|
@@ -342,7 +342,7 @@ end
|
|
342
342
|
# Created: 2013-04-01 18:33:54 +0200
|
343
343
|
# Platform: rbx 2.0.0.rc1
|
344
344
|
#
|
345
|
-
RubyLint::
|
345
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_IVAR') do |klass|
|
346
346
|
end
|
347
347
|
|
348
348
|
##
|
@@ -350,7 +350,7 @@ end
|
|
350
350
|
# Created: 2013-04-01 18:33:54 +0200
|
351
351
|
# Platform: rbx 2.0.0.rc1
|
352
352
|
#
|
353
|
-
RubyLint::
|
353
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_LINK') do |klass|
|
354
354
|
end
|
355
355
|
|
356
356
|
##
|
@@ -358,7 +358,7 @@ end
|
|
358
358
|
# Created: 2013-04-01 18:33:54 +0200
|
359
359
|
# Platform: rbx 2.0.0.rc1
|
360
360
|
#
|
361
|
-
RubyLint::
|
361
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_MODULE') do |klass|
|
362
362
|
end
|
363
363
|
|
364
364
|
##
|
@@ -366,7 +366,7 @@ end
|
|
366
366
|
# Created: 2013-04-01 18:33:54 +0200
|
367
367
|
# Platform: rbx 2.0.0.rc1
|
368
368
|
#
|
369
|
-
RubyLint::
|
369
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_MODULE_OLD') do |klass|
|
370
370
|
end
|
371
371
|
|
372
372
|
##
|
@@ -374,7 +374,7 @@ end
|
|
374
374
|
# Created: 2013-04-01 18:33:54 +0200
|
375
375
|
# Platform: rbx 2.0.0.rc1
|
376
376
|
#
|
377
|
-
RubyLint::
|
377
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_NIL') do |klass|
|
378
378
|
end
|
379
379
|
|
380
380
|
##
|
@@ -382,7 +382,7 @@ end
|
|
382
382
|
# Created: 2013-04-01 18:33:54 +0200
|
383
383
|
# Platform: rbx 2.0.0.rc1
|
384
384
|
#
|
385
|
-
RubyLint::
|
385
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_OBJECT') do |klass|
|
386
386
|
end
|
387
387
|
|
388
388
|
##
|
@@ -390,7 +390,7 @@ end
|
|
390
390
|
# Created: 2013-04-01 18:33:54 +0200
|
391
391
|
# Platform: rbx 2.0.0.rc1
|
392
392
|
#
|
393
|
-
RubyLint::
|
393
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_REGEXP') do |klass|
|
394
394
|
end
|
395
395
|
|
396
396
|
##
|
@@ -398,7 +398,7 @@ end
|
|
398
398
|
# Created: 2013-04-01 18:33:54 +0200
|
399
399
|
# Platform: rbx 2.0.0.rc1
|
400
400
|
#
|
401
|
-
RubyLint::
|
401
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_STRING') do |klass|
|
402
402
|
end
|
403
403
|
|
404
404
|
##
|
@@ -406,7 +406,7 @@ end
|
|
406
406
|
# Created: 2013-04-01 18:33:54 +0200
|
407
407
|
# Platform: rbx 2.0.0.rc1
|
408
408
|
#
|
409
|
-
RubyLint::
|
409
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_STRUCT') do |klass|
|
410
410
|
end
|
411
411
|
|
412
412
|
##
|
@@ -414,7 +414,7 @@ end
|
|
414
414
|
# Created: 2013-04-01 18:33:54 +0200
|
415
415
|
# Platform: rbx 2.0.0.rc1
|
416
416
|
#
|
417
|
-
RubyLint::
|
417
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_SYMBOL') do |klass|
|
418
418
|
end
|
419
419
|
|
420
420
|
##
|
@@ -422,7 +422,7 @@ end
|
|
422
422
|
# Created: 2013-04-01 18:33:54 +0200
|
423
423
|
# Platform: rbx 2.0.0.rc1
|
424
424
|
#
|
425
|
-
RubyLint::
|
425
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_SYMLINK') do |klass|
|
426
426
|
end
|
427
427
|
|
428
428
|
##
|
@@ -430,7 +430,7 @@ end
|
|
430
430
|
# Created: 2013-04-01 18:33:54 +0200
|
431
431
|
# Platform: rbx 2.0.0.rc1
|
432
432
|
#
|
433
|
-
RubyLint::
|
433
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_TRUE') do |klass|
|
434
434
|
end
|
435
435
|
|
436
436
|
##
|
@@ -438,7 +438,7 @@ end
|
|
438
438
|
# Created: 2013-04-01 18:33:54 +0200
|
439
439
|
# Platform: rbx 2.0.0.rc1
|
440
440
|
#
|
441
|
-
RubyLint::
|
441
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_UCLASS') do |klass|
|
442
442
|
end
|
443
443
|
|
444
444
|
##
|
@@ -446,7 +446,7 @@ end
|
|
446
446
|
# Created: 2013-04-01 18:33:54 +0200
|
447
447
|
# Platform: rbx 2.0.0.rc1
|
448
448
|
#
|
449
|
-
RubyLint::
|
449
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_USERDEF') do |klass|
|
450
450
|
end
|
451
451
|
|
452
452
|
##
|
@@ -454,7 +454,7 @@ end
|
|
454
454
|
# Created: 2013-04-01 18:33:54 +0200
|
455
455
|
# Platform: rbx 2.0.0.rc1
|
456
456
|
#
|
457
|
-
RubyLint::
|
457
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::TYPE_USRMARSHAL') do |klass|
|
458
458
|
end
|
459
459
|
|
460
460
|
##
|
@@ -462,5 +462,5 @@ end
|
|
462
462
|
# Created: 2013-04-01 18:33:54 +0200
|
463
463
|
# Platform: rbx 2.0.0.rc1
|
464
464
|
#
|
465
|
-
RubyLint::
|
465
|
+
RubyLint::GlobalScope.definitions.define_constant('Marshal::VERSION_STRING') do |klass|
|
466
466
|
end
|
@@ -3,8 +3,8 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:54 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('MatchData') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
8
8
|
|
9
9
|
klass.define_method('__class_init__')
|
10
10
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:54 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('Math') do |klass|
|
7
7
|
|
8
8
|
klass.define_method('__module_init__')
|
9
9
|
|
@@ -125,8 +125,8 @@ end
|
|
125
125
|
# Created: 2013-04-01 18:33:54 +0200
|
126
126
|
# Platform: rbx 2.0.0.rc1
|
127
127
|
#
|
128
|
-
RubyLint::
|
129
|
-
klass.inherits(RubyLint::
|
128
|
+
RubyLint::GlobalScope.definitions.define_constant('Math::DomainError') do |klass|
|
129
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('SystemCallError'))
|
130
130
|
end
|
131
131
|
|
132
132
|
##
|
@@ -134,7 +134,7 @@ end
|
|
134
134
|
# Created: 2013-04-01 18:33:54 +0200
|
135
135
|
# Platform: rbx 2.0.0.rc1
|
136
136
|
#
|
137
|
-
RubyLint::
|
137
|
+
RubyLint::GlobalScope.definitions.define_constant('Math::E') do |klass|
|
138
138
|
end
|
139
139
|
|
140
140
|
##
|
@@ -142,7 +142,7 @@ end
|
|
142
142
|
# Created: 2013-04-01 18:33:54 +0200
|
143
143
|
# Platform: rbx 2.0.0.rc1
|
144
144
|
#
|
145
|
-
RubyLint::
|
145
|
+
RubyLint::GlobalScope.definitions.define_constant('Math::FFI') do |klass|
|
146
146
|
|
147
147
|
klass.define_method('__module_init__')
|
148
148
|
|
@@ -193,7 +193,7 @@ end
|
|
193
193
|
# Created: 2013-04-01 18:33:54 +0200
|
194
194
|
# Platform: rbx 2.0.0.rc1
|
195
195
|
#
|
196
|
-
RubyLint::
|
196
|
+
RubyLint::GlobalScope.definitions.define_constant('Math::FactorialTable') do |klass|
|
197
197
|
end
|
198
198
|
|
199
199
|
##
|
@@ -201,5 +201,5 @@ end
|
|
201
201
|
# Created: 2013-04-01 18:33:54 +0200
|
202
202
|
# Platform: rbx 2.0.0.rc1
|
203
203
|
#
|
204
|
-
RubyLint::
|
204
|
+
RubyLint::GlobalScope.definitions.define_constant('Math::PI') do |klass|
|
205
205
|
end
|
@@ -3,6 +3,6 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:54 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('MemorySegmentionError') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Exception'))
|
8
8
|
end
|
@@ -3,8 +3,8 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:54 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.inherits(RubyLint::
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('Method') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Object'))
|
8
8
|
|
9
9
|
klass.define_method('__class_init__')
|
10
10
|
|
@@ -3,13 +3,33 @@
|
|
3
3
|
# Created: 2013-04-01 18:33:54 +0200
|
4
4
|
# Platform: rbx 2.0.0.rc1
|
5
5
|
#
|
6
|
-
RubyLint::
|
7
|
-
klass.
|
6
|
+
RubyLint::GlobalScope.definitions.define_constant('Module') do |klass|
|
7
|
+
klass.inherits(RubyLint::GlobalScope.constant_proxy('Kernel'))
|
8
8
|
|
9
9
|
klass.define_method('allocate')
|
10
|
-
|
11
10
|
klass.define_method('nesting')
|
12
11
|
|
12
|
+
# Define the various attr_* methods. These methods are defined as private
|
13
|
+
# instance methods in Module and thus aren't available to
|
14
|
+
# RubyLint::Inspector.
|
15
|
+
klass.define_method('attr') do |method|
|
16
|
+
method.define_optional_argument('attribute')
|
17
|
+
method.define_optional_argument('writer')
|
18
|
+
end
|
19
|
+
|
20
|
+
['attr_reader', 'attr_writer', 'attr_accessor'].each do |name|
|
21
|
+
klass.define_method(name) do |method|
|
22
|
+
method.define_rest_argument('attributes')
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
klass.define_method('define_method') do |method|
|
27
|
+
method.define_argument('name')
|
28
|
+
method.define_optional_argument('method')
|
29
|
+
|
30
|
+
method.define_block_argument('block')
|
31
|
+
end
|
32
|
+
|
13
33
|
klass.define_instance_method('<') do |method|
|
14
34
|
method.define_argument('other')
|
15
35
|
end
|
@@ -34,6 +54,16 @@ RubyLint::VirtualMachine.global_scope.define_constant('Module') do |klass|
|
|
34
54
|
method.define_argument('other')
|
35
55
|
end
|
36
56
|
|
57
|
+
klass.define_instance_method('!')
|
58
|
+
|
59
|
+
klass.define_instance_method('!=') do |method|
|
60
|
+
method.define_argument('other')
|
61
|
+
end
|
62
|
+
|
63
|
+
klass.define_instance_method('==') do |method|
|
64
|
+
method.define_argument('other')
|
65
|
+
end
|
66
|
+
|
37
67
|
klass.define_instance_method('__class_variables__')
|
38
68
|
|
39
69
|
klass.define_instance_method('__marshal__') do |method|
|
@@ -260,3 +290,9 @@ RubyLint::VirtualMachine.global_scope.define_constant('Module') do |klass|
|
|
260
290
|
method.define_argument('url')
|
261
291
|
end
|
262
292
|
end
|
293
|
+
|
294
|
+
RubyLint::GlobalScope.definitions.copy(
|
295
|
+
RubyLint::GlobalScope.global_constant('Module'),
|
296
|
+
:instance_method,
|
297
|
+
:method
|
298
|
+
)
|