rigortype 0.4.8 → 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/docs/handbook/01-getting-started.md +1 -1
- data/docs/handbook/04-tuples-and-shapes.md +6 -1
- data/docs/handbook/12-lightweight-hkt.md +1 -1
- data/docs/handbook/appendix-typescript.md +28 -17
- data/docs/manual/02-cli-reference.md +10 -0
- data/docs/manual/03-configuration.md +1 -1
- data/docs/manual/04-diagnostics.md +1 -1
- data/docs/manual/10-mcp-server.md +122 -10
- data/docs/manual/plugins/rigor-activerecord.md +7 -0
- data/lib/rigor/analysis/check_rules/always_raises.rb +95 -0
- data/lib/rigor/analysis/check_rules/always_truthy_condition_collector.rb +32 -2
- data/lib/rigor/analysis/check_rules/argument_type.rb +802 -0
- data/lib/rigor/analysis/check_rules/call_facts.rb +2 -2
- data/lib/rigor/analysis/check_rules/dead_assignment_collector.rb +30 -1
- data/lib/rigor/analysis/check_rules/declaration_sourced_guard.rb +4 -5
- data/lib/rigor/analysis/check_rules/duplicate_hash_key_collector.rb +34 -0
- data/lib/rigor/analysis/check_rules/ivar_write_collector.rb +131 -4
- data/lib/rigor/analysis/check_rules/nil_receiver.rb +195 -0
- data/lib/rigor/analysis/check_rules/override_param_narrowed.rb +111 -0
- data/lib/rigor/analysis/check_rules/override_return_widened.rb +88 -0
- data/lib/rigor/analysis/check_rules/override_support.rb +246 -0
- data/lib/rigor/analysis/check_rules/override_visibility.rb +135 -0
- data/lib/rigor/analysis/check_rules/published_constant_guard.rb +75 -31
- data/lib/rigor/analysis/check_rules/raise_non_exception.rb +198 -0
- data/lib/rigor/analysis/check_rules/receiver_predicates.rb +576 -0
- data/lib/rigor/analysis/check_rules/return_in_ensure_collector.rb +52 -4
- data/lib/rigor/analysis/check_rules/return_type.rb +225 -0
- data/lib/rigor/analysis/check_rules/rigor_testing.rb +119 -0
- data/lib/rigor/analysis/check_rules/rule_ids.rb +7 -7
- data/lib/rigor/analysis/check_rules/rule_walk.rb +4 -3
- data/lib/rigor/analysis/check_rules/self_closedness_scanner.rb +2 -0
- data/lib/rigor/analysis/check_rules/self_undefined_method.rb +165 -0
- data/lib/rigor/analysis/check_rules/shadowed_rescue_collector.rb +34 -0
- data/lib/rigor/analysis/check_rules/source_arity.rb +2 -2
- data/lib/rigor/analysis/check_rules/special_global_write.rb +256 -0
- data/lib/rigor/analysis/check_rules/suppression.rb +275 -0
- data/lib/rigor/analysis/check_rules/undefined_method.rb +882 -0
- data/lib/rigor/analysis/check_rules/unreachable_branch.rb +97 -0
- data/lib/rigor/analysis/check_rules/unreachable_clause_collector.rb +42 -0
- data/lib/rigor/analysis/check_rules/unresolved_toplevel.rb +140 -0
- data/lib/rigor/analysis/check_rules/visibility_mismatch.rb +252 -0
- data/lib/rigor/analysis/check_rules/void_value_use_collector.rb +27 -0
- data/lib/rigor/analysis/check_rules/wrong_arity.rb +303 -0
- data/lib/rigor/analysis/check_rules.rb +66 -4931
- data/lib/rigor/analysis/dependency_recorder.rb +1 -1
- data/lib/rigor/analysis/dependency_source_inference/builder.rb +2 -4
- data/lib/rigor/analysis/dependency_source_inference/gem_resolver.rb +1 -2
- data/lib/rigor/analysis/dependency_source_inference/walker.rb +15 -15
- data/lib/rigor/analysis/incremental_session.rb +4 -4
- data/lib/rigor/analysis/path_expansion.rb +1 -1
- data/lib/rigor/analysis/plugin_fact_fingerprint.rb +5 -5
- data/lib/rigor/analysis/reachability/graph.rb +2 -3
- data/lib/rigor/analysis/reachability/plugin_roots.rb +2 -2
- data/lib/rigor/analysis/reachability/scan.rb +2 -2
- data/lib/rigor/analysis/rule_catalog.rb +2 -1
- data/lib/rigor/analysis/run_cache_key.rb +9 -8
- data/lib/rigor/analysis/runner/buffer_pool_dispatcher.rb +2 -2
- data/lib/rigor/analysis/runner/dependency_rows.rb +206 -0
- data/lib/rigor/analysis/runner/diagnostic_aggregator.rb +24 -22
- data/lib/rigor/analysis/runner/effect_cache_entries.rb +69 -0
- data/lib/rigor/analysis/runner/pool_coordinator.rb +6 -8
- data/lib/rigor/analysis/runner/project_pre_passes.rb +3 -5
- data/lib/rigor/analysis/runner/scope_seed.rb +144 -0
- data/lib/rigor/analysis/runner.rb +49 -296
- data/lib/rigor/analysis/template_unit_collector.rb +1 -1
- data/lib/rigor/analysis/template_units.rb +10 -10
- data/lib/rigor/analysis/worker_session.rb +7 -7
- data/lib/rigor/bleeding_edge.rb +3 -2
- data/lib/rigor/builtins/hkt_builtins.rb +17 -17
- data/lib/rigor/builtins/imported_refinements.rb +8 -16
- data/lib/rigor/builtins/regex_refinement.rb +3 -3
- data/lib/rigor/builtins/static_return_refinements.rb +143 -19
- data/lib/rigor/cache/incremental_snapshot.rb +21 -8
- data/lib/rigor/cache/rbs_descriptor.rb +18 -1
- data/lib/rigor/cli/coverage_renderer.rb +15 -1
- data/lib/rigor/cli/coverage_report.rb +19 -1
- data/lib/rigor/cli/diagnostic_formats.rb +3 -2
- data/lib/rigor/cli/docs_command.rb +5 -5
- data/lib/rigor/cli/effects_command.rb +7 -6
- data/lib/rigor/cli/fused_protection_report.rb +7 -7
- data/lib/rigor/cli/lsp_command.rb +1 -1
- data/lib/rigor/cli/mcp_command.rb +5 -2
- data/lib/rigor/cli/options.rb +4 -0
- data/lib/rigor/cli/plugins_command.rb +1 -1
- data/lib/rigor/cli/sig_gen_command.rb +1 -1
- data/lib/rigor/cli/skill_command.rb +5 -4
- data/lib/rigor/cli/triage_renderer.rb +3 -2
- data/lib/rigor/cli/unused_command.rb +4 -4
- data/lib/rigor/cli.rb +14 -0
- data/lib/rigor/configuration/coercion.rb +418 -0
- data/lib/rigor/configuration/defaults.rb +248 -0
- data/lib/rigor/configuration/dependencies.rb +1 -1
- data/lib/rigor/configuration/loader.rb +354 -0
- data/lib/rigor/configuration/severity_profile.rb +4 -4
- data/lib/rigor/configuration.rb +51 -860
- data/lib/rigor/effects/attribution.rb +1 -1
- data/lib/rigor/effects/effect_table.rb +1 -1
- data/lib/rigor/effects/identity.rb +3 -3
- data/lib/rigor/effects/local_ownership.rb +2 -2
- data/lib/rigor/effects/snapshot.rb +1 -1
- data/lib/rigor/effects/summary.rb +5 -4
- data/lib/rigor/environment/member_consistency.rb +10 -0
- data/lib/rigor/environment/rbs_loader.rb +19 -22
- data/lib/rigor/environment/reflection.rb +1 -1
- data/lib/rigor/environment/unreadable_signature.rb +21 -0
- data/lib/rigor/environment.rb +8 -8
- data/lib/rigor/flow_contribution/merger.rb +1 -0
- data/lib/rigor/hashing/xxh3.rb +1 -1
- data/lib/rigor/inference/acceptance.rb +23 -2
- data/lib/rigor/inference/alias_mutation_floor/site_collector.rb +5 -0
- data/lib/rigor/inference/alias_mutation_floor.rb +0 -5
- data/lib/rigor/inference/anonymous_meta_class.rb +2 -2
- data/lib/rigor/inference/block_call_timing.rb +6 -0
- data/lib/rigor/inference/budget_trace.rb +3 -2
- data/lib/rigor/inference/builtins/date_catalog.rb +3 -3
- data/lib/rigor/inference/builtins/method_catalog.rb +3 -3
- data/lib/rigor/inference/builtins/time_catalog.rb +3 -3
- data/lib/rigor/inference/call_ladder/literal_send.rb +98 -0
- data/lib/rigor/inference/call_ladder/overriding_def.rb +98 -0
- data/lib/rigor/inference/call_ladder/project_singleton.rb +362 -0
- data/lib/rigor/inference/call_ladder/refined.rb +212 -0
- data/lib/rigor/inference/call_ladder/top_level_def.rb +222 -0
- data/lib/rigor/inference/call_ladder/user_method.rb +247 -0
- data/lib/rigor/inference/call_ladder.rb +219 -0
- data/lib/rigor/inference/callee_write_census.rb +2 -2
- data/lib/rigor/inference/captured_locals.rb +2 -2
- data/lib/rigor/inference/clause_widening.rb +63 -1
- data/lib/rigor/inference/declaration_walk/context.rb +12 -12
- data/lib/rigor/inference/declaration_walk/rules.rb +750 -0
- data/lib/rigor/inference/declaration_walk/traversal.rb +9 -8
- data/lib/rigor/inference/declaration_walk.rb +4 -3
- data/lib/rigor/inference/def_node_resolver.rb +2 -2
- data/lib/rigor/inference/def_return_typer.rb +14 -6
- data/lib/rigor/inference/deferred_mutation.rb +120 -0
- data/lib/rigor/inference/define_method_block_self.rb +1 -1
- data/lib/rigor/inference/definer_resolution.rb +4 -4
- data/lib/rigor/inference/error_info.rb +8 -8
- data/lib/rigor/inference/expression_typer/composites.rb +348 -0
- data/lib/rigor/inference/expression_typer/per_element_assemblers.rb +233 -0
- data/lib/rigor/inference/expression_typer/writes.rb +218 -0
- data/lib/rigor/inference/expression_typer.rb +275 -1825
- data/lib/rigor/inference/external_ancestor_resolution.rb +2 -2
- data/lib/rigor/inference/fallback.rb +1 -0
- data/lib/rigor/inference/for_yield_slots.rb +126 -0
- data/lib/rigor/inference/genuine_send.rb +92 -0
- data/lib/rigor/inference/global_write_census.rb +2 -2
- data/lib/rigor/inference/hkt_body.rb +2 -0
- data/lib/rigor/inference/in_effect_refinements/walk.rb +2 -2
- data/lib/rigor/inference/index_write_widening.rb +4 -4
- data/lib/rigor/inference/indexed_narrowing.rb +1 -1
- data/lib/rigor/inference/intervening_ivar_reset.rb +46 -9
- data/lib/rigor/inference/ivar_writer_census.rb +1 -1
- data/lib/rigor/inference/loop_store_sites.rb +239 -0
- data/lib/rigor/inference/macro_block_self_type.rb +4 -3
- data/lib/rigor/inference/method_dispatcher/block_folding.rb +3 -2
- data/lib/rigor/inference/method_dispatcher/call_context.rb +84 -14
- data/lib/rigor/inference/method_dispatcher/composite_receiver.rb +144 -0
- data/lib/rigor/inference/method_dispatcher/constant_folding.rb +7 -5
- data/lib/rigor/inference/method_dispatcher/declared_constructor.rb +1 -1
- data/lib/rigor/inference/method_dispatcher/dependency_source.rb +90 -0
- data/lib/rigor/inference/method_dispatcher/discovered_method.rb +78 -0
- data/lib/rigor/inference/method_dispatcher/file_folding.rb +2 -2
- data/lib/rigor/inference/method_dispatcher/hkt_builtin_return.rb +40 -0
- data/lib/rigor/inference/method_dispatcher/iterator_dispatch.rb +1 -6
- data/lib/rigor/inference/method_dispatcher/literal_string_folding.rb +4 -2
- data/lib/rigor/inference/method_dispatcher/match_data_folding.rb +1 -1
- data/lib/rigor/inference/method_dispatcher/meta_introspection.rb +506 -0
- data/lib/rigor/inference/method_dispatcher/overload_selector.rb +2 -0
- data/lib/rigor/inference/method_dispatcher/plugin_contribution.rb +134 -0
- data/lib/rigor/inference/method_dispatcher/project_patched.rb +134 -0
- data/lib/rigor/inference/method_dispatcher/rbs_dispatch.rb +125 -43
- data/lib/rigor/inference/method_dispatcher/reduce_folding.rb +3 -4
- data/lib/rigor/inference/method_dispatcher/regexp_folding.rb +1 -1
- data/lib/rigor/inference/method_dispatcher/set_folding.rb +1 -1
- data/lib/rigor/inference/method_dispatcher/shape_dispatch.rb +19 -6
- data/lib/rigor/inference/method_dispatcher/singleton_folding.rb +3 -3
- data/lib/rigor/inference/method_dispatcher/singleton_mixin_dispatch.rb +7 -4
- data/lib/rigor/inference/method_dispatcher/static_refinement.rb +106 -0
- data/lib/rigor/inference/method_dispatcher/synthesized_stub.rb +41 -0
- data/lib/rigor/inference/method_dispatcher/synthetic_method_dispatch.rb +133 -0
- data/lib/rigor/inference/method_dispatcher/universal_object_dispatch.rb +2 -1
- data/lib/rigor/inference/method_dispatcher/user_class_fallback.rb +216 -0
- data/lib/rigor/inference/method_dispatcher.rb +175 -1361
- data/lib/rigor/inference/method_parameter_binder.rb +18 -18
- data/lib/rigor/inference/module_function_state.rb +5 -4
- data/lib/rigor/inference/mutation_widening.rb +20 -7
- data/lib/rigor/inference/narrowing/case_literals.rb +58 -0
- data/lib/rigor/inference/narrowing/class_dispatch.rb +302 -0
- data/lib/rigor/inference/narrowing/complements.rb +322 -0
- data/lib/rigor/inference/narrowing/presence_predicates.rb +205 -0
- data/lib/rigor/inference/narrowing/regex_match.rb +499 -0
- data/lib/rigor/inference/narrowing.rb +86 -1269
- data/lib/rigor/inference/object_mixins.rb +2 -2
- data/lib/rigor/inference/opaque_mutation.rb +214 -0
- data/lib/rigor/inference/optimistic_origin.rb +52 -14
- data/lib/rigor/inference/parameter_inference_collector.rb +1 -1
- data/lib/rigor/inference/pre_eval_constants.rb +11 -9
- data/lib/rigor/inference/precision_scanner.rb +27 -2
- data/lib/rigor/inference/project_patched_methods.rb +3 -3
- data/lib/rigor/inference/range_constant.rb +3 -3
- data/lib/rigor/inference/rbs_type_translator.rb +2 -2
- data/lib/rigor/inference/refine_self.rb +8 -7
- data/lib/rigor/inference/refined_dispatch.rb +2 -2
- data/lib/rigor/inference/return_barrier.rb +24 -9
- data/lib/rigor/inference/scope_indexer/alias_def_nodes.rb +311 -0
- data/lib/rigor/inference/scope_indexer/census_scope.rb +47 -0
- data/lib/rigor/inference/scope_indexer/certainty.rb +2 -2
- data/lib/rigor/inference/scope_indexer/class_cvar_census.rb +282 -0
- data/lib/rigor/inference/scope_indexer/class_cvars_collector.rb +12 -5
- data/lib/rigor/inference/scope_indexer/class_declarations.rb +228 -0
- data/lib/rigor/inference/scope_indexer/class_ivar_index.rb +2028 -0
- data/lib/rigor/inference/scope_indexer/constant_ivar_value.rb +4 -3
- data/lib/rigor/inference/scope_indexer/constant_tables.rb +844 -0
- data/lib/rigor/inference/scope_indexer/cvar_hierarchy.rb +159 -0
- data/lib/rigor/inference/scope_indexer/declaration_artifacts.rb +219 -0
- data/lib/rigor/inference/scope_indexer/declaration_signature.rb +212 -0
- data/lib/rigor/inference/scope_indexer/def_nestings_collector.rb +2 -2
- data/lib/rigor/inference/scope_indexer/factory_call_resolver.rb +53 -0
- data/lib/rigor/inference/scope_indexer/literal_receiver_mutations.rb +266 -0
- data/lib/rigor/inference/scope_indexer/member_layouts_collector.rb +8 -7
- data/lib/rigor/inference/scope_indexer/mixin_accumulator.rb +1 -1
- data/lib/rigor/inference/scope_indexer/mixin_effects.rb +470 -0
- data/lib/rigor/inference/scope_indexer/mixin_tables.rb +388 -0
- data/lib/rigor/inference/scope_indexer/mutated_carrier_widening.rb +163 -0
- data/lib/rigor/inference/scope_indexer/mutated_element_census.rb +211 -0
- data/lib/rigor/inference/scope_indexer/node_propagation.rb +520 -0
- data/lib/rigor/inference/scope_indexer/program_globals.rb +154 -0
- data/lib/rigor/inference/scope_indexer/published_constant_cvars.rb +146 -0
- data/lib/rigor/inference/scope_indexer/published_constant_ivars.rb +181 -0
- data/lib/rigor/inference/scope_indexer/shared_walk_tables.rb +823 -0
- data/lib/rigor/inference/scope_indexer/singleton_class_sources.rb +85 -0
- data/lib/rigor/inference/scope_indexer/superclasses_collector.rb +5 -5
- data/lib/rigor/inference/scope_indexer.rb +2657 -9558
- data/lib/rigor/inference/self_call_ivar_writes.rb +22 -3
- data/lib/rigor/inference/set_mutation.rb +2 -2
- data/lib/rigor/inference/singleton_hook_definers.rb +185 -0
- data/lib/rigor/inference/statement_evaluator/def_arguments_and_assertions.rb +365 -0
- data/lib/rigor/inference/statement_evaluator/pattern_bindings.rb +581 -0
- data/lib/rigor/inference/statement_evaluator.rb +201 -1008
- data/lib/rigor/inference/synthetic_method_scanner.rb +0 -3
- data/lib/rigor/language_server/completion_provider.rb +8 -8
- data/lib/rigor/language_server/diagnostic_publisher.rb +6 -7
- data/lib/rigor/language_server/document_symbol_provider.rb +4 -6
- data/lib/rigor/language_server/folding_range_provider.rb +3 -3
- data/lib/rigor/language_server/hover_provider.rb +2 -2
- data/lib/rigor/language_server/loop.rb +2 -2
- data/lib/rigor/language_server/server.rb +3 -2
- data/lib/rigor/language_server/signature_help_provider.rb +7 -9
- data/lib/rigor/lens/document.rb +10 -1
- data/lib/rigor/lens/file_reader.rb +2 -1
- data/lib/rigor/mcp/loop.rb +48 -6
- data/lib/rigor/mcp/server.rb +248 -23
- data/lib/rigor/mcp/skill_catalog.rb +157 -0
- data/lib/rigor/plugin/base.rb +22 -4
- data/lib/rigor/plugin/effect_attribution.rb +1 -1
- data/lib/rigor/plugin/inflector.rb +2 -2
- data/lib/rigor/plugin/io_boundary.rb +1 -1
- data/lib/rigor/plugin/loader.rb +4 -4
- data/lib/rigor/plugin/macro/heredoc_template.rb +4 -3
- data/lib/rigor/plugin/optimistic_return.rb +20 -0
- data/lib/rigor/plugin/registry.rb +2 -2
- data/lib/rigor/plugin/template_unit.rb +4 -2
- data/lib/rigor/plugin/trust_policy.rb +2 -1
- data/lib/rigor/plugin.rb +1 -1
- data/lib/rigor/protection/mutator.rb +8 -9
- data/lib/rigor/rbs_extended/reporter.rb +2 -2
- data/lib/rigor/rbs_extended.rb +2 -2
- data/lib/rigor/reflection/constant_ancestors.rb +1 -1
- data/lib/rigor/reflection/project_method.rb +2 -2
- data/lib/rigor/reflection.rb +4 -4
- data/lib/rigor/scope/discovery_index.rb +15 -10
- data/lib/rigor/scope/resolution_chain.rb +29 -6
- data/lib/rigor/scope.rb +89 -32
- data/lib/rigor/sig_gen/generator.rb +5 -4
- data/lib/rigor/sig_gen/renderer.rb +3 -3
- data/lib/rigor/sig_gen/writer.rb +8 -6
- data/lib/rigor/source/parameter_envelope.rb +1 -1
- data/lib/rigor/triage/catalogue.rb +4 -4
- data/lib/rigor/type/combinator.rb +2 -2
- data/lib/rigor/type/data_instance.rb +2 -2
- data/lib/rigor/type/struct_instance.rb +3 -3
- data/lib/rigor/type_node/generic.rb +2 -1
- data/lib/rigor/type_of_memo.rb +2 -1
- data/lib/rigor/typing_state.rb +3 -2
- data/lib/rigor/version.rb +1 -1
- data/plugins/rigor-actioncable/lib/rigor/plugin/actioncable/analyzer.rb +2 -2
- data/plugins/rigor-actioncable/lib/rigor/plugin/actioncable/channel_discoverer.rb +1 -1
- data/plugins/rigor-actionmailer/lib/rigor/plugin/actionmailer/mailer_discoverer.rb +4 -4
- data/plugins/rigor-actionmailer/lib/rigor/plugin/actionmailer.rb +1 -1
- data/plugins/rigor-actionpack/lib/rigor/plugin/actionpack/controller_discoverer.rb +4 -3
- data/plugins/rigor-actionpack/lib/rigor/plugin/actionpack/effects.rb +7 -5
- data/plugins/rigor-actionpack/lib/rigor/plugin/actionpack/erb_compiler.rb +4 -2
- data/plugins/rigor-actionpack/lib/rigor/plugin/actionpack/render_locals.rb +1 -1
- data/plugins/rigor-actionpack/lib/rigor/plugin/actionpack/view_assigns.rb +3 -2
- data/plugins/rigor-actionpack/lib/rigor/plugin/actionpack.rb +7 -7
- data/plugins/rigor-activejob/lib/rigor/plugin/activejob/job_discoverer.rb +1 -1
- data/plugins/rigor-activejob/lib/rigor/plugin/activejob.rb +2 -2
- data/plugins/rigor-activerecord/lib/rigor/plugin/activerecord/model_discoverer.rb +9 -8
- data/plugins/rigor-activerecord/lib/rigor/plugin/activerecord/model_index.rb +3 -2
- data/plugins/rigor-activerecord/lib/rigor/plugin/activerecord/schema_parser.rb +15 -7
- data/plugins/rigor-activerecord/lib/rigor/plugin/activerecord/schema_table.rb +10 -3
- data/plugins/rigor-activerecord/lib/rigor/plugin/activerecord/structure_sql_parser.rb +12 -1
- data/plugins/rigor-activerecord/lib/rigor/plugin/activerecord.rb +20 -5
- data/plugins/rigor-activestorage/lib/rigor/plugin/activestorage/attachment_discoverer.rb +1 -1
- data/plugins/rigor-activestorage/lib/rigor/plugin/activestorage.rb +3 -2
- data/plugins/rigor-activesupport-core-ext/lib/rigor/plugin/activesupport_core_ext/effects.rb +1 -1
- data/plugins/rigor-activesupport-core-ext/lib/rigor/plugin/activesupport_core_ext.rb +8 -7
- data/plugins/rigor-dry-schema/lib/rigor/plugin/dry_schema.rb +1 -1
- data/plugins/rigor-dry-types/lib/rigor/plugin/dry_types/alias_scanner.rb +1 -1
- data/plugins/rigor-dry-types/lib/rigor/plugin/dry_types.rb +6 -7
- data/plugins/rigor-factorybot/lib/rigor/plugin/factorybot/factory_discoverer.rb +3 -2
- data/plugins/rigor-graphql/lib/rigor/plugin/graphql/type_scanner.rb +4 -3
- data/plugins/rigor-hanami/lib/rigor/plugin/hanami.rb +4 -2
- data/plugins/rigor-minitest/lib/rigor/plugin/minitest.rb +1 -1
- data/plugins/rigor-pundit/lib/rigor/plugin/pundit.rb +1 -1
- data/plugins/rigor-rails-i18n/lib/rigor/plugin/rails_i18n/analyzer.rb +5 -3
- data/plugins/rigor-rails-i18n/lib/rigor/plugin/rails_i18n.rb +1 -1
- data/plugins/rigor-rails-routes/lib/rigor/plugin/rails_routes/devise_routes.rb +4 -5
- data/plugins/rigor-rails-routes/lib/rigor/plugin/rails_routes/doorkeeper_routes.rb +2 -2
- data/plugins/rigor-rails-routes/lib/rigor/plugin/rails_routes/helper_discoverer.rb +5 -4
- data/plugins/rigor-rails-routes/lib/rigor/plugin/rails_routes/helper_table.rb +3 -2
- data/plugins/rigor-rails-routes/lib/rigor/plugin/rails_routes/routes_parser.rb +30 -31
- data/plugins/rigor-rails-routes/lib/rigor/plugin/rails_routes.rb +13 -15
- data/plugins/rigor-rbnacl/lib/rigor/plugin/rbnacl.rb +1 -1
- data/plugins/rigor-rspec/lib/rigor/plugin/rspec/let_scope_index.rb +4 -3
- data/plugins/rigor-rspec/lib/rigor/plugin/rspec/matcher_analyzer.rb +16 -13
- data/plugins/rigor-rspec/lib/rigor/plugin/rspec/scope_walker.rb +3 -2
- data/plugins/rigor-shoulda-matchers/lib/rigor/plugin/shoulda_matchers/analyzer.rb +6 -6
- data/plugins/rigor-sidekiq/lib/rigor/plugin/sidekiq/analyzer.rb +3 -3
- data/plugins/rigor-sorbet/lib/rigor/plugin/sorbet/assertion_recognizer.rb +2 -2
- data/plugins/rigor-sorbet/lib/rigor/plugin/sorbet/catalog.rb +3 -2
- data/plugins/rigor-sorbet/lib/rigor/plugin/sorbet/catalog_walker.rb +6 -5
- data/plugins/rigor-sorbet/lib/rigor/plugin/sorbet/sig_parser.rb +2 -2
- data/plugins/rigor-sorbet/lib/rigor/plugin/sorbet/sigil_detector.rb +4 -5
- data/plugins/rigor-sorbet/lib/rigor/plugin/sorbet/type_translator.rb +1 -1
- data/plugins/rigor-sorbet/lib/rigor/plugin/sorbet.rb +3 -4
- data/sig/rigor/analysis/check_rules/suppression.rbs +9 -0
- data/sig/rigor/analysis/dependency_recorder.rbs +9 -0
- data/sig/rigor/inference.rbs +275 -11
- data/sig/rigor/plugin/base.rbs +14 -5
- data/sig/rigor/plugin/optimistic_return.rbs +16 -0
- data/sig/rigor/scope.rbs +7 -1
- data/sig/rigor/source.rbs +4 -0
- data/skills/rigor-mcp-setup/SKILL.md +20 -6
- data/skills/rigor-plugin-review/SKILL.md +3 -3
- data/skills/rigor-type-oracle/references/01-oracle-commands.md +1 -1
- metadata +90 -3
data/sig/rigor/plugin/base.rbs
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
# (`sig/rigor/plugin/interfaces.rbs`), a concrete Prism node class, a
|
|
9
9
|
# `Rigor::Type::t` or a core type, instead of `untyped`. A hook's `scope`
|
|
10
10
|
# is non-nil where every engine call site passes one: the per-file hooks
|
|
11
|
-
# receive the seeded `Scope.empty(...)`,
|
|
11
|
+
# receive the seeded `Scope.empty(...)`,
|
|
12
|
+
# `MethodDispatcher::PluginContribution.merged_return_type`
|
|
12
13
|
# returns before consulting a plugin when its scope is nil, and
|
|
13
14
|
# `StatementEvaluator#apply_plugin_assertions` has already read its own. The
|
|
14
15
|
# existing `scope.nil?` guards in plugin source stay valid either way.
|
|
@@ -46,9 +47,10 @@ class Rigor::Plugin::Base
|
|
|
46
47
|
# none of the other nodes in the union below has, so the gate declines them (#2681, #2764). Every other
|
|
47
48
|
# declaration shape is offered the whole union. A callable `methods:` also only ever sees a `CallNode`
|
|
48
49
|
# at runtime, since the same gate declines the nameless nodes, but RBS cannot tell a callable from an
|
|
49
|
-
# Array argument by overload alone, so it keeps the union, which is sound.
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
# Array argument by overload alone, so it keeps the union, which is sound. The block answers a type, an
|
|
51
|
+
# `OptimisticReturn` (`#optimistic_nil_free`, #3322), or nil.
|
|
52
|
+
def self.dynamic_return: (?receivers: (Array[String] | ^() -> Array[String])?, methods: Array[untyped], ?file_methods: (^(String path) -> Array[untyped])?) { (::Prism::CallNode call_node, Rigor::Plugin::_Scope scope) -> (Rigor::Type::t | Rigor::Plugin::OptimisticReturn)? } -> nil
|
|
53
|
+
| (?receivers: (Array[String] | ^() -> Array[String])?, ?methods: (Array[untyped] | ^() -> Array[untyped])?, ?file_methods: (^(String path) -> Array[untyped])?) { (::Prism::CallNode | ::Prism::CallOperatorWriteNode | ::Prism::CallOrWriteNode | ::Prism::CallAndWriteNode | ::Prism::IndexOperatorWriteNode | ::Prism::IndexOrWriteNode | ::Prism::IndexAndWriteNode | ::Prism::BlockArgumentNode call_node, Rigor::Plugin::_Scope scope) -> (Rigor::Type::t | Rigor::Plugin::OptimisticReturn)? } -> nil
|
|
52
54
|
def self.dynamic_returns: () -> Array[untyped]
|
|
53
55
|
|
|
54
56
|
# The block answers the facts that hold after the call returns normally, or nil. The element is a
|
|
@@ -88,15 +90,22 @@ class Rigor::Plugin::Base
|
|
|
88
90
|
# join, so it proposes the literal fallback `nil` instead of the honest contract.
|
|
89
91
|
# `call_node` is a `CallNode` except where the engine dispatches a compound write or a block argument. The
|
|
90
92
|
# compound writes (`x.attr op= v`, `x.attr ||= v`, `x.attr &&= v`, and the `x[i]` forms) reach a rule through
|
|
91
|
-
# `ExpressionTyper#attribute_compound_read_type`, `#call_operator_write_type_for` and `#
|
|
93
|
+
# `ExpressionTyper#attribute_compound_read_type`, `#call_operator_write_type_for` and `#implicit_index_read_type`;
|
|
92
94
|
# the `&:symbol` block arguments through `ExpressionTyper#symbol_block_return_type` and `#apply_hash_block`.
|
|
93
95
|
# A rule the name gate does not screen out (a `receivers:`-only rule, for one) is offered those nodes, so the
|
|
94
96
|
# `dynamic_return` block union above is the full set. A rule that reads a `CallNode`-only member (`receiver`,
|
|
95
97
|
# `name`, `arguments`) must guard with `call_node.is_a?(::Prism::CallNode)` first (#2717).
|
|
96
98
|
def dynamic_return_type: (call_node: ::Prism::CallNode | ::Prism::CallOperatorWriteNode | ::Prism::CallOrWriteNode | ::Prism::CallAndWriteNode | ::Prism::IndexOperatorWriteNode | ::Prism::IndexOrWriteNode | ::Prism::IndexAndWriteNode | ::Prism::BlockArgumentNode, scope: Rigor::Plugin::_Scope, receiver_type: Rigor::Type::t) -> Rigor::Type::t?
|
|
99
|
+
# sig-gen gap: #1007 — the body `dynamic_return_type` carried before #3322: the `instance_exec`'d rule block
|
|
100
|
+
# is not folded into the return join. The rule body's answer before `dynamic_return_type` unwraps an
|
|
101
|
+
# `OptimisticReturn`; the engine's contribution tier reads it so the optimistic flag reaches `OptimisticOrigin`.
|
|
102
|
+
def dynamic_return_answer: (call_node: ::Prism::CallNode | ::Prism::CallOperatorWriteNode | ::Prism::CallOrWriteNode | ::Prism::CallAndWriteNode | ::Prism::IndexOperatorWriteNode | ::Prism::IndexOrWriteNode | ::Prism::IndexAndWriteNode | ::Prism::BlockArgumentNode, scope: Rigor::Plugin::_Scope, receiver_type: Rigor::Type::t) -> (Rigor::Type::t | Rigor::Plugin::OptimisticReturn)?
|
|
97
103
|
def narrowing_facts_for: (call_node: ::Prism::CallNode, scope: Rigor::Plugin::_Scope) -> Array[untyped]
|
|
98
104
|
|
|
99
105
|
# Authoring helpers.
|
|
106
|
+
# authored: hook-contract — wraps a `dynamic_return` answer whose type omits a `nil` the value can hold
|
|
107
|
+
# (#3322); the parameter is the plugin's answer type, which sig-gen reads `untyped`.
|
|
108
|
+
def optimistic_nil_free: (Rigor::Type::t? type) -> Rigor::Plugin::OptimisticReturn?
|
|
100
109
|
def diagnostic: (untyped node, path: untyped, message: untyped, ?severity: untyped, ?rule: untyped, ?location: untyped) -> Rigor::Analysis::Diagnostic
|
|
101
110
|
def diagnostics_for: (untyped violations, path: untyped, ?node: untyped) -> Array[untyped]
|
|
102
111
|
def read_fact: (plugin_id: untyped, name: untyped) -> untyped
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Rigor
|
|
2
|
+
module Plugin
|
|
3
|
+
# Issue #3322 — a `dynamic_return` answer whose nil-freeness is the plugin's bet (`Base#optimistic_nil_free`).
|
|
4
|
+
class OptimisticReturn < ::Data
|
|
5
|
+
# sig-gen gap: #1150 — a `Data.define` member; sig-gen proposes `untyped`.
|
|
6
|
+
def type: () -> Rigor::Type::t
|
|
7
|
+
# sig-gen gap: #1150 — the `Data.define` constructor; sig-gen types its members `untyped`.
|
|
8
|
+
def self.new: (type: Rigor::Type::t) -> instance | (Rigor::Type::t type) -> instance
|
|
9
|
+
# sig-gen gap: #1150 — as above.
|
|
10
|
+
def self.[]: (type: Rigor::Type::t) -> instance | (Rigor::Type::t type) -> instance
|
|
11
|
+
# authored: hook-contract — the answer is whatever a plugin's `dynamic_return` block returned, which
|
|
12
|
+
# sig-gen reads `untyped`; the declared union is the contract `Base#dynamic_return_answer` states.
|
|
13
|
+
def self.unwrap: (Rigor::Type::t | OptimisticReturn | nil answer) -> Rigor::Type::t?
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
data/sig/rigor/scope.rbs
CHANGED
|
@@ -91,6 +91,9 @@ module Rigor
|
|
|
91
91
|
# sig-gen gap: #2309 — the `|| Set.new.freeze` fallback arm types `Set[untyped]` beside the table's `Set[Symbol]`, so the
|
|
92
92
|
# element type is hand-written.
|
|
93
93
|
def published_constant_ivars_for: (String class_name) -> Set[Symbol]
|
|
94
|
+
# sig-gen gap: #2309 — the `|| Set.new.freeze` fallback arm types `Set[untyped]` beside the table's `Set[Symbol]`, so the
|
|
95
|
+
# element type is hand-written.
|
|
96
|
+
def published_constant_cvars_for: (String class_name) -> Set[Symbol]
|
|
94
97
|
def published_constant?: (String name) -> bool
|
|
95
98
|
def record_constant_dependency: (String name) -> void
|
|
96
99
|
def record_class_existence: (String class_name) -> void
|
|
@@ -155,6 +158,8 @@ module Rigor
|
|
|
155
158
|
attr_reader published_constant_alias_names: Set[String]
|
|
156
159
|
# sig-gen gap: #1150 — as above.
|
|
157
160
|
attr_reader published_constant_ivars: Hash[String, Set[Symbol]]
|
|
161
|
+
# sig-gen gap: #1150 — as above.
|
|
162
|
+
attr_reader published_constant_cvars: Hash[String, Set[Symbol]]
|
|
158
163
|
attr_reader data_member_layouts: Hash[String, Array[Symbol]]
|
|
159
164
|
attr_reader struct_member_layouts: Hash[String, { members: Array[Symbol], keyword_init: bool }]
|
|
160
165
|
attr_reader param_inferred_types: Hash[[String, Symbol, Symbol], Hash[Symbol, Type::t]]
|
|
@@ -208,7 +213,7 @@ module Rigor
|
|
|
208
213
|
# authored: ADR-119 WD1 sibling pairing; no inferred signature exists for it (#1150).
|
|
209
214
|
def sibling_tables: () -> Hash[Symbol, untyped]
|
|
210
215
|
|
|
211
|
-
def with: (?declared_types: Hash[untyped, Type::t], ?class_ivars: Hash[String, Hash[Symbol, Type::t]], ?class_cvars: Hash[String, Hash[Symbol, Type::t]], ?program_globals: Hash[Symbol, Type::t], ?program_global_seeds: Hash[Symbol, Type::t], ?discovered_classes: Hash[String, Type::Singleton], ?in_source_constants: Hash[String, Type::t], ?discovered_methods: Hash[String, Hash[Symbol, Symbol]], ?discovered_def_nodes: Hash[String, Hash[Symbol, untyped]], ?discovered_def_nestings: def_nestings, ?discovered_singleton_def_nodes: Hash[String, Hash[Symbol, untyped]], ?discovered_def_sources: Hash[String, Hash[Symbol, String]], ?discovered_singleton_def_sources: Hash[String, Hash[Symbol, String]], ?discovered_method_visibilities: Hash[String, Hash[Symbol | [:singleton, Symbol], Symbol]], ?discovered_parameter_envelopes: Hash[String, Hash[untyped, untyped]], ?discovered_superclasses: Hash[String, String], ?discovered_includes: Hash[String, Array[String]], ?discovered_prepends: Hash[String, Array[String]], ?discovered_extends: Hash[String, Array[String]], ?discovered_class_sources: Hash[String, Set[String]], ?constant_sources: Hash[String, Set[String]], ?constant_writers: Hash[String, Array[String]], ?constant_shadowers: Hash[String, Array[String]], ?published_constant_names: Set[String], ?local_constant_names: Set[String], ?published_constant_alias_names: Set[String], ?published_constant_ivars: Hash[String, Set[Symbol]], ?data_member_layouts: Hash[String, Array[Symbol]], ?struct_member_layouts: Hash[String, { members: Array[Symbol], keyword_init: bool }], ?param_inferred_types: Hash[[String, Symbol, Symbol], Hash[Symbol, Type::t]], ?discovered_deferred_ranges: Hash[String, Array[[Integer, Integer, Symbol?, Symbol?, String?]]], ?discovered_refinements: Hash[String, Hash[Symbol | String, Array[String]]], ?discovered_global_write_census: Set[Array[untyped]], ?run_generation: Object?, ?patched_line_readers: Set[Symbol], ?clears_last_status: bool, ?defines_case_equality: bool, ?implicit_self_evidence: untyped, ?in_effect_refinements: untyped, ?possible_discovered_methods: Hash[String, Hash[Symbol, Symbol]], ?possible_discovered_deferred_ranges: Hash[String, Array[[Integer, Integer, Symbol?, Symbol?, String?]]], ?contested_discovered_def_nodes: Set[Array[untyped]], ?contested_discovered_singleton_def_nodes: Set[Array[untyped]], ?contested_discovered_method_visibilities: Set[Array[untyped]], ?contested_discovered_parameter_envelopes: Set[Array[untyped]]) -> DiscoveryIndex
|
|
216
|
+
def with: (?declared_types: Hash[untyped, Type::t], ?class_ivars: Hash[String, Hash[Symbol, Type::t]], ?class_cvars: Hash[String, Hash[Symbol, Type::t]], ?program_globals: Hash[Symbol, Type::t], ?program_global_seeds: Hash[Symbol, Type::t], ?discovered_classes: Hash[String, Type::Singleton], ?in_source_constants: Hash[String, Type::t], ?discovered_methods: Hash[String, Hash[Symbol, Symbol]], ?discovered_def_nodes: Hash[String, Hash[Symbol, untyped]], ?discovered_def_nestings: def_nestings, ?discovered_singleton_def_nodes: Hash[String, Hash[Symbol, untyped]], ?discovered_def_sources: Hash[String, Hash[Symbol, String]], ?discovered_singleton_def_sources: Hash[String, Hash[Symbol, String]], ?discovered_method_visibilities: Hash[String, Hash[Symbol | [:singleton, Symbol], Symbol]], ?discovered_parameter_envelopes: Hash[String, Hash[untyped, untyped]], ?discovered_superclasses: Hash[String, String], ?discovered_includes: Hash[String, Array[String]], ?discovered_prepends: Hash[String, Array[String]], ?discovered_extends: Hash[String, Array[String]], ?discovered_class_sources: Hash[String, Set[String]], ?constant_sources: Hash[String, Set[String]], ?constant_writers: Hash[String, Array[String]], ?constant_shadowers: Hash[String, Array[String]], ?published_constant_names: Set[String], ?local_constant_names: Set[String], ?published_constant_alias_names: Set[String], ?published_constant_ivars: Hash[String, Set[Symbol]], ?published_constant_cvars: Hash[String, Set[Symbol]], ?data_member_layouts: Hash[String, Array[Symbol]], ?struct_member_layouts: Hash[String, { members: Array[Symbol], keyword_init: bool }], ?param_inferred_types: Hash[[String, Symbol, Symbol], Hash[Symbol, Type::t]], ?discovered_deferred_ranges: Hash[String, Array[[Integer, Integer, Symbol?, Symbol?, String?]]], ?discovered_refinements: Hash[String, Hash[Symbol | String, Array[String]]], ?discovered_global_write_census: Set[Array[untyped]], ?run_generation: Object?, ?patched_line_readers: Set[Symbol], ?clears_last_status: bool, ?defines_case_equality: bool, ?implicit_self_evidence: untyped, ?in_effect_refinements: untyped, ?possible_discovered_methods: Hash[String, Hash[Symbol, Symbol]], ?possible_discovered_deferred_ranges: Hash[String, Array[[Integer, Integer, Symbol?, Symbol?, String?]]], ?contested_discovered_def_nodes: Set[Array[untyped]], ?contested_discovered_singleton_def_nodes: Set[Array[untyped]], ?contested_discovered_method_visibilities: Set[Array[untyped]], ?contested_discovered_parameter_envelopes: Set[Array[untyped]]) -> DiscoveryIndex
|
|
212
217
|
end
|
|
213
218
|
|
|
214
219
|
class IndexedKey
|
|
@@ -267,6 +272,7 @@ module Rigor
|
|
|
267
272
|
def with_optimistic_ivar: (String | Symbol name, Symbol? cause, ?miss: Object?) -> Scope
|
|
268
273
|
def with_ivar_origin: (String | Symbol name, Symbol? cause) -> Scope
|
|
269
274
|
def with_cvar: (String | Symbol name, Type::t type) -> Scope
|
|
275
|
+
def with_cvar_copy: (Symbol | String name, Type::t type, bool copy) -> Scope
|
|
270
276
|
def with_global: (String | Symbol name, Type::t type) -> Scope
|
|
271
277
|
# Issue #1429 — `rigor sig-gen` output; the parameters are not inferred here, as for `with_mutated_local`.
|
|
272
278
|
def with_guarded_global: (untyped name, untyped type, untyped pre_guard, ?record: untyped) -> Scope
|
data/sig/rigor/source.rbs
CHANGED
|
@@ -21,6 +21,10 @@ module Rigor
|
|
|
21
21
|
def self?.symbol_arg: (untyped? call_node, Integer index) -> Symbol?
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
+
module ConstantPath
|
|
25
|
+
def self?.declaration_prefix: (Array[untyped] outer_prefix, untyped constant_path) -> (Array[untyped] | [String] | nil)
|
|
26
|
+
end
|
|
27
|
+
|
|
24
28
|
module SymbolName
|
|
25
29
|
def self?.of: (String? text) -> Symbol?
|
|
26
30
|
end
|
|
@@ -60,10 +60,15 @@ copy — just proceed. If `rigor` is not on `PATH`, this task needs it: run
|
|
|
60
60
|
|
|
61
61
|
## The tools you are wiring in
|
|
62
62
|
|
|
63
|
-
`rigor_check`, `rigor_type_of`, `rigor_triage`, `
|
|
64
|
-
`rigor_sig_gen`, `rigor_explain`, `rigor_coverage` —
|
|
65
|
-
of the matching `rigor` CLI command. See the manual's
|
|
66
|
-
for inputs and outputs.
|
|
63
|
+
`rigor_check`, `rigor_type_of`, `rigor_triage`, `rigor_lens`,
|
|
64
|
+
`rigor_annotate`, `rigor_sig_gen`, `rigor_explain`, `rigor_coverage` —
|
|
65
|
+
each the JSON form of the matching `rigor` CLI command. See the manual's
|
|
66
|
+
**Tool reference** for inputs and outputs.
|
|
67
|
+
|
|
68
|
+
The server also serves Rigor's bundled skills, this one included, over
|
|
69
|
+
the MCP Skills extension. Claude Code v2.1.331+ lists them as
|
|
70
|
+
`rigor:<skill>`, always matching the installed `rigor`. The manual's
|
|
71
|
+
**Bundled skills over MCP** section has the requirements.
|
|
67
72
|
|
|
68
73
|
## The one stable fact
|
|
69
74
|
|
|
@@ -72,8 +77,10 @@ Every client config simply launches **`rigor mcp`** (stdio) and needs
|
|
|
72
77
|
uses. For agents that do not inherit your shell, the `mise` shim path is
|
|
73
78
|
the most reliable channel (see `rigor docs install`, or
|
|
74
79
|
[Installing Rigor](https://github.com/rigortype/rigor/blob/master/docs/install.md)
|
|
75
|
-
on the web).
|
|
76
|
-
|
|
80
|
+
on the web). Launch that executable directly, never through
|
|
81
|
+
`bundle exec`, `nix develop` or `npx`: a slow start makes Claude Code
|
|
82
|
+
fall back to the older protocol, which has no skills. Do **not** add
|
|
83
|
+
`rigortype` to the project's `Gemfile` — it is a tool, not a library.
|
|
77
84
|
|
|
78
85
|
## Procedure
|
|
79
86
|
|
|
@@ -125,6 +132,13 @@ or a shell error means `rigor` is not on the PATH the client uses. Then
|
|
|
125
132
|
restart the client and confirm the `rigor_*` tools appear in its tool
|
|
126
133
|
palette.
|
|
127
134
|
|
|
135
|
+
For Claude Code, also confirm the skills: `/mcp` shows a **Protocol**
|
|
136
|
+
row for `rigor`, and typing `/rigor:` offers the bundled skills. If
|
|
137
|
+
the tools appear but the skills do not, follow the manual's
|
|
138
|
+
Troubleshooting entry for it. If the developer also installed the
|
|
139
|
+
skills locally, each appears twice; where Claude Code offers MCP skills,
|
|
140
|
+
suggest keeping the `rigor:` copy and removing the local one.
|
|
141
|
+
|
|
128
142
|
## Next step
|
|
129
143
|
|
|
130
144
|
Re-run `rigor skill describe` for the next move — with the agent able to
|
|
@@ -82,14 +82,14 @@ rigor plugin --path rigor-<id> # its directory, to browse
|
|
|
82
82
|
The **authoritative** authoring surface — the one this review scores
|
|
83
83
|
against — is the internal spec, not this file:
|
|
84
84
|
|
|
85
|
-
- [`docs/internal-spec/plugin.md`](
|
|
85
|
+
- [`docs/internal-spec/plugin.md`](https://github.com/rigortype/rigor/blob/master/docs/internal-spec/plugin.md)
|
|
86
86
|
— manifest, `node_rule` / `node_file_context`, `dynamic_return` /
|
|
87
87
|
`narrowing_facts`, the `#diagnostic` / `#diagnostics_for` / `.suggest`
|
|
88
88
|
/ `#read_fact` author helpers, `config_schema` `{kind:, default:}`.
|
|
89
|
-
- [`docs/internal-spec/plugin-cache-producers.md`](
|
|
89
|
+
- [`docs/internal-spec/plugin-cache-producers.md`](https://github.com/rigortype/rigor/blob/master/docs/internal-spec/plugin-cache-producers.md)
|
|
90
90
|
— `producer` / `#cache_for` / `#producer_value` / `#producer_error`,
|
|
91
91
|
ADR-60 WD3 record-and-validate.
|
|
92
|
-
- [`docs/internal-spec/plugin-trust.md`](
|
|
92
|
+
- [`docs/internal-spec/plugin-trust.md`](https://github.com/rigortype/rigor/blob/master/docs/internal-spec/plugin-trust.md)
|
|
93
93
|
— `TrustPolicy` / `IoBoundary`.
|
|
94
94
|
|
|
95
95
|
When the checklist below and the spec disagree, **the spec binds** —
|
|
@@ -250,7 +250,7 @@ are the CLI's, so read them exactly as above.
|
|
|
250
250
|
| `rigor_type_of` | `file` (string), `line` (integer, 1-based), `col` (integer, 1-based) | `config` | The inferred type at that location. |
|
|
251
251
|
| `rigor_annotate` | `file` (string) | `config` | The source with each line's last-expression type appended. |
|
|
252
252
|
| `rigor_sig_gen` | — (defaults to the configured paths) | `paths` (array of strings), `params` (`"untyped"` \| `"observed"`), `config` | The JSON candidate report — classifications, `rbs`, `inferred_return`, `skip_reason`. |
|
|
253
|
-
| `rigor_check` | `paths` (array of strings)
|
|
253
|
+
| `rigor_check` | — (defaults to the configured paths) | `paths` (array of strings), `config` | The JSON diagnostic report. |
|
|
254
254
|
| `rigor_explain` | — (omit `rule` to list every rule) | `rule` (string) | The rule catalogue entry, as JSON. |
|
|
255
255
|
|
|
256
256
|
Two shape differences from the CLI worth knowing:
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rigortype
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rigor contributors
|
|
@@ -115,7 +115,7 @@ dependencies:
|
|
|
115
115
|
requirements:
|
|
116
116
|
- - ">="
|
|
117
117
|
- !ruby/object:Gem::Version
|
|
118
|
-
version: 0.
|
|
118
|
+
version: 0.6.0
|
|
119
119
|
- - "<"
|
|
120
120
|
- !ruby/object:Gem::Version
|
|
121
121
|
version: '1.0'
|
|
@@ -125,7 +125,7 @@ dependencies:
|
|
|
125
125
|
requirements:
|
|
126
126
|
- - ">="
|
|
127
127
|
- !ruby/object:Gem::Version
|
|
128
|
-
version: 0.
|
|
128
|
+
version: 0.6.0
|
|
129
129
|
- - "<"
|
|
130
130
|
- !ruby/object:Gem::Version
|
|
131
131
|
version: '1.0'
|
|
@@ -447,8 +447,10 @@ files:
|
|
|
447
447
|
- lib/rigor/analysis/baseline.rb
|
|
448
448
|
- lib/rigor/analysis/buffer_binding.rb
|
|
449
449
|
- lib/rigor/analysis/check_rules.rb
|
|
450
|
+
- lib/rigor/analysis/check_rules/always_raises.rb
|
|
450
451
|
- lib/rigor/analysis/check_rules/always_raises_shield.rb
|
|
451
452
|
- lib/rigor/analysis/check_rules/always_truthy_condition_collector.rb
|
|
453
|
+
- lib/rigor/analysis/check_rules/argument_type.rb
|
|
452
454
|
- lib/rigor/analysis/check_rules/call_facts.rb
|
|
453
455
|
- lib/rigor/analysis/check_rules/clause_coverage.rb
|
|
454
456
|
- lib/rigor/analysis/check_rules/dead_assignment_collector.rb
|
|
@@ -459,22 +461,39 @@ files:
|
|
|
459
461
|
- lib/rigor/analysis/check_rules/ivar_write_collector.rb
|
|
460
462
|
- lib/rigor/analysis/check_rules/lexical_method_sites.rb
|
|
461
463
|
- lib/rigor/analysis/check_rules/main_pass_collector.rb
|
|
464
|
+
- lib/rigor/analysis/check_rules/nil_receiver.rb
|
|
465
|
+
- lib/rigor/analysis/check_rules/override_param_narrowed.rb
|
|
466
|
+
- lib/rigor/analysis/check_rules/override_return_widened.rb
|
|
467
|
+
- lib/rigor/analysis/check_rules/override_support.rb
|
|
468
|
+
- lib/rigor/analysis/check_rules/override_visibility.rb
|
|
462
469
|
- lib/rigor/analysis/check_rules/plugin_api_surface.rb
|
|
463
470
|
- lib/rigor/analysis/check_rules/published_constant_guard.rb
|
|
471
|
+
- lib/rigor/analysis/check_rules/raise_non_exception.rb
|
|
464
472
|
- lib/rigor/analysis/check_rules/rbs_receiver_surface.rb
|
|
465
473
|
- lib/rigor/analysis/check_rules/rebinding_block_callees.rb
|
|
466
474
|
- lib/rigor/analysis/check_rules/rebinding_block_callees/dispatch.rb
|
|
475
|
+
- lib/rigor/analysis/check_rules/receiver_predicates.rb
|
|
467
476
|
- lib/rigor/analysis/check_rules/replaced_singleton_defs.rb
|
|
468
477
|
- lib/rigor/analysis/check_rules/return_in_ensure_collector.rb
|
|
478
|
+
- lib/rigor/analysis/check_rules/return_type.rb
|
|
479
|
+
- lib/rigor/analysis/check_rules/rigor_testing.rb
|
|
469
480
|
- lib/rigor/analysis/check_rules/ruby_deprecations.rb
|
|
470
481
|
- lib/rigor/analysis/check_rules/rule_ids.rb
|
|
471
482
|
- lib/rigor/analysis/check_rules/rule_walk.rb
|
|
472
483
|
- lib/rigor/analysis/check_rules/self_closedness_scanner.rb
|
|
484
|
+
- lib/rigor/analysis/check_rules/self_undefined_method.rb
|
|
473
485
|
- lib/rigor/analysis/check_rules/shadowed_rescue_collector.rb
|
|
474
486
|
- lib/rigor/analysis/check_rules/source_arity.rb
|
|
475
487
|
- lib/rigor/analysis/check_rules/special_global_setters.rb
|
|
488
|
+
- lib/rigor/analysis/check_rules/special_global_write.rb
|
|
489
|
+
- lib/rigor/analysis/check_rules/suppression.rb
|
|
490
|
+
- lib/rigor/analysis/check_rules/undefined_method.rb
|
|
491
|
+
- lib/rigor/analysis/check_rules/unreachable_branch.rb
|
|
476
492
|
- lib/rigor/analysis/check_rules/unreachable_clause_collector.rb
|
|
493
|
+
- lib/rigor/analysis/check_rules/unresolved_toplevel.rb
|
|
494
|
+
- lib/rigor/analysis/check_rules/visibility_mismatch.rb
|
|
477
495
|
- lib/rigor/analysis/check_rules/void_value_use_collector.rb
|
|
496
|
+
- lib/rigor/analysis/check_rules/wrong_arity.rb
|
|
478
497
|
- lib/rigor/analysis/crash_signature.rb
|
|
479
498
|
- lib/rigor/analysis/dependency_recorder.rb
|
|
480
499
|
- lib/rigor/analysis/dependency_source_inference.rb
|
|
@@ -513,8 +532,10 @@ files:
|
|
|
513
532
|
- lib/rigor/analysis/runner.rb
|
|
514
533
|
- lib/rigor/analysis/runner/buffer_pool_dispatcher.rb
|
|
515
534
|
- lib/rigor/analysis/runner/declaration_position.rb
|
|
535
|
+
- lib/rigor/analysis/runner/dependency_rows.rb
|
|
516
536
|
- lib/rigor/analysis/runner/diagnostic_aggregator.rb
|
|
517
537
|
- lib/rigor/analysis/runner/effect_annotation_residual_pass.rb
|
|
538
|
+
- lib/rigor/analysis/runner/effect_cache_entries.rb
|
|
518
539
|
- lib/rigor/analysis/runner/effect_envelope_pass.rb
|
|
519
540
|
- lib/rigor/analysis/runner/envelope_messages.rb
|
|
520
541
|
- lib/rigor/analysis/runner/pool_coordinator.rb
|
|
@@ -522,6 +543,7 @@ files:
|
|
|
522
543
|
- lib/rigor/analysis/runner/run_level_facts.rb
|
|
523
544
|
- lib/rigor/analysis/runner/run_snapshots.rb
|
|
524
545
|
- lib/rigor/analysis/runner/scan_environment.rb
|
|
546
|
+
- lib/rigor/analysis/runner/scope_seed.rb
|
|
525
547
|
- lib/rigor/analysis/runner/worker_payload.rb
|
|
526
548
|
- lib/rigor/analysis/self_call_resolution_recorder.rb
|
|
527
549
|
- lib/rigor/analysis/severity_stamp.rb
|
|
@@ -621,7 +643,10 @@ files:
|
|
|
621
643
|
- lib/rigor/config_audit.rb
|
|
622
644
|
- lib/rigor/config_path.rb
|
|
623
645
|
- lib/rigor/configuration.rb
|
|
646
|
+
- lib/rigor/configuration/coercion.rb
|
|
647
|
+
- lib/rigor/configuration/defaults.rb
|
|
624
648
|
- lib/rigor/configuration/dependencies.rb
|
|
649
|
+
- lib/rigor/configuration/loader.rb
|
|
625
650
|
- lib/rigor/configuration/severity_profile.rb
|
|
626
651
|
- lib/rigor/configuration_error.rb
|
|
627
652
|
- lib/rigor/effects.rb
|
|
@@ -692,6 +717,7 @@ files:
|
|
|
692
717
|
- lib/rigor/environment/required_features.rb
|
|
693
718
|
- lib/rigor/environment/ruby_library_roots.rb
|
|
694
719
|
- lib/rigor/environment/source_rbs_synthesis.rb
|
|
720
|
+
- lib/rigor/environment/unreadable_signature.rb
|
|
695
721
|
- lib/rigor/environment/vendored_signature_plan.rb
|
|
696
722
|
- lib/rigor/flow_contribution.rb
|
|
697
723
|
- lib/rigor/flow_contribution/conflict.rb
|
|
@@ -735,6 +761,13 @@ files:
|
|
|
735
761
|
- lib/rigor/inference/builtins/string_catalog.rb
|
|
736
762
|
- lib/rigor/inference/builtins/struct_catalog.rb
|
|
737
763
|
- lib/rigor/inference/builtins/time_catalog.rb
|
|
764
|
+
- lib/rigor/inference/call_ladder.rb
|
|
765
|
+
- lib/rigor/inference/call_ladder/literal_send.rb
|
|
766
|
+
- lib/rigor/inference/call_ladder/overriding_def.rb
|
|
767
|
+
- lib/rigor/inference/call_ladder/project_singleton.rb
|
|
768
|
+
- lib/rigor/inference/call_ladder/refined.rb
|
|
769
|
+
- lib/rigor/inference/call_ladder/top_level_def.rb
|
|
770
|
+
- lib/rigor/inference/call_ladder/user_method.rb
|
|
738
771
|
- lib/rigor/inference/callee_mutation_chain.rb
|
|
739
772
|
- lib/rigor/inference/callee_write_census.rb
|
|
740
773
|
- lib/rigor/inference/captured_locals.rb
|
|
@@ -747,12 +780,14 @@ files:
|
|
|
747
780
|
- lib/rigor/inference/declaration_walk.rb
|
|
748
781
|
- lib/rigor/inference/declaration_walk/context.rb
|
|
749
782
|
- lib/rigor/inference/declaration_walk/errors.rb
|
|
783
|
+
- lib/rigor/inference/declaration_walk/rules.rb
|
|
750
784
|
- lib/rigor/inference/declaration_walk/shadow.rb
|
|
751
785
|
- lib/rigor/inference/declaration_walk/traversal.rb
|
|
752
786
|
- lib/rigor/inference/deep_erasure.rb
|
|
753
787
|
- lib/rigor/inference/def_handle.rb
|
|
754
788
|
- lib/rigor/inference/def_node_resolver.rb
|
|
755
789
|
- lib/rigor/inference/def_return_typer.rb
|
|
790
|
+
- lib/rigor/inference/deferred_mutation.rb
|
|
756
791
|
- lib/rigor/inference/define_method_block_self.rb
|
|
757
792
|
- lib/rigor/inference/definer_resolution.rb
|
|
758
793
|
- lib/rigor/inference/definers_index.rb
|
|
@@ -761,12 +796,17 @@ files:
|
|
|
761
796
|
- lib/rigor/inference/element_read_widening.rb
|
|
762
797
|
- lib/rigor/inference/error_info.rb
|
|
763
798
|
- lib/rigor/inference/expression_typer.rb
|
|
799
|
+
- lib/rigor/inference/expression_typer/composites.rb
|
|
800
|
+
- lib/rigor/inference/expression_typer/per_element_assemblers.rb
|
|
801
|
+
- lib/rigor/inference/expression_typer/writes.rb
|
|
764
802
|
- lib/rigor/inference/external_ancestor_resolution.rb
|
|
765
803
|
- lib/rigor/inference/fallback.rb
|
|
766
804
|
- lib/rigor/inference/fallback_tracer.rb
|
|
767
805
|
- lib/rigor/inference/flow_tracer.rb
|
|
806
|
+
- lib/rigor/inference/for_yield_slots.rb
|
|
768
807
|
- lib/rigor/inference/fork_map.rb
|
|
769
808
|
- lib/rigor/inference/fresh_frame_blocks.rb
|
|
809
|
+
- lib/rigor/inference/genuine_send.rb
|
|
770
810
|
- lib/rigor/inference/global_write_census.rb
|
|
771
811
|
- lib/rigor/inference/global_writer_reach.rb
|
|
772
812
|
- lib/rigor/inference/guard_rebinding.rb
|
|
@@ -792,6 +832,7 @@ files:
|
|
|
792
832
|
- lib/rigor/inference/last_line/implicit_self.rb
|
|
793
833
|
- lib/rigor/inference/last_line/self_evidence.rb
|
|
794
834
|
- lib/rigor/inference/last_status.rb
|
|
835
|
+
- lib/rigor/inference/loop_store_sites.rb
|
|
795
836
|
- lib/rigor/inference/loop_value_record.rb
|
|
796
837
|
- lib/rigor/inference/macro_block_self_type.rb
|
|
797
838
|
- lib/rigor/inference/match_rebinding.rb
|
|
@@ -810,14 +851,18 @@ files:
|
|
|
810
851
|
- lib/rigor/inference/method_dispatcher/call_context.rb
|
|
811
852
|
- lib/rigor/inference/method_dispatcher/cgi_folding.rb
|
|
812
853
|
- lib/rigor/inference/method_dispatcher/class_keyed_block_params.rb
|
|
854
|
+
- lib/rigor/inference/method_dispatcher/composite_receiver.rb
|
|
813
855
|
- lib/rigor/inference/method_dispatcher/constant_folding.rb
|
|
814
856
|
- lib/rigor/inference/method_dispatcher/contested_overloads.rb
|
|
815
857
|
- lib/rigor/inference/method_dispatcher/core_enumerable_receiver.rb
|
|
816
858
|
- lib/rigor/inference/method_dispatcher/data_folding.rb
|
|
817
859
|
- lib/rigor/inference/method_dispatcher/declared_constructor.rb
|
|
860
|
+
- lib/rigor/inference/method_dispatcher/dependency_source.rb
|
|
861
|
+
- lib/rigor/inference/method_dispatcher/discovered_method.rb
|
|
818
862
|
- lib/rigor/inference/method_dispatcher/facet_distribution.rb
|
|
819
863
|
- lib/rigor/inference/method_dispatcher/file_folding.rb
|
|
820
864
|
- lib/rigor/inference/method_dispatcher/hash_transform_keys_folding.rb
|
|
865
|
+
- lib/rigor/inference/method_dispatcher/hkt_builtin_return.rb
|
|
821
866
|
- lib/rigor/inference/method_dispatcher/imprecise_argument.rb
|
|
822
867
|
- lib/rigor/inference/method_dispatcher/integer_step_block_params.rb
|
|
823
868
|
- lib/rigor/inference/method_dispatcher/interface_shape.rb
|
|
@@ -829,11 +874,14 @@ files:
|
|
|
829
874
|
- lib/rigor/inference/method_dispatcher/match_data_folding.rb
|
|
830
875
|
- lib/rigor/inference/method_dispatcher/math_folding.rb
|
|
831
876
|
- lib/rigor/inference/method_dispatcher/member_shape_projection.rb
|
|
877
|
+
- lib/rigor/inference/method_dispatcher/meta_introspection.rb
|
|
832
878
|
- lib/rigor/inference/method_dispatcher/method_folding.rb
|
|
833
879
|
- lib/rigor/inference/method_dispatcher/no_match_fallback.rb
|
|
834
880
|
- lib/rigor/inference/method_dispatcher/optional_count.rb
|
|
835
881
|
- lib/rigor/inference/method_dispatcher/overload_selector.rb
|
|
882
|
+
- lib/rigor/inference/method_dispatcher/plugin_contribution.rb
|
|
836
883
|
- lib/rigor/inference/method_dispatcher/process_folding.rb
|
|
884
|
+
- lib/rigor/inference/method_dispatcher/project_patched.rb
|
|
837
885
|
- lib/rigor/inference/method_dispatcher/proven_overload.rb
|
|
838
886
|
- lib/rigor/inference/method_dispatcher/random_folding.rb
|
|
839
887
|
- lib/rigor/inference/method_dispatcher/rbs_dispatch.rb
|
|
@@ -848,12 +896,16 @@ files:
|
|
|
848
896
|
- lib/rigor/inference/method_dispatcher/singleton_mixin_dispatch.rb
|
|
849
897
|
- lib/rigor/inference/method_dispatcher/singleton_type_params.rb
|
|
850
898
|
- lib/rigor/inference/method_dispatcher/splat_arity.rb
|
|
899
|
+
- lib/rigor/inference/method_dispatcher/static_refinement.rb
|
|
851
900
|
- lib/rigor/inference/method_dispatcher/struct_folding.rb
|
|
852
901
|
- lib/rigor/inference/method_dispatcher/struct_materialization.rb
|
|
902
|
+
- lib/rigor/inference/method_dispatcher/synthesized_stub.rb
|
|
903
|
+
- lib/rigor/inference/method_dispatcher/synthetic_method_dispatch.rb
|
|
853
904
|
- lib/rigor/inference/method_dispatcher/time_folding.rb
|
|
854
905
|
- lib/rigor/inference/method_dispatcher/unit_denominator_rational.rb
|
|
855
906
|
- lib/rigor/inference/method_dispatcher/universal_object_dispatch.rb
|
|
856
907
|
- lib/rigor/inference/method_dispatcher/uri_folding.rb
|
|
908
|
+
- lib/rigor/inference/method_dispatcher/user_class_fallback.rb
|
|
857
909
|
- lib/rigor/inference/method_parameter_binder.rb
|
|
858
910
|
- lib/rigor/inference/module_function_state.rb
|
|
859
911
|
- lib/rigor/inference/module_function_state/spellings.rb
|
|
@@ -861,7 +913,13 @@ files:
|
|
|
861
913
|
- lib/rigor/inference/mutation_rejoin.rb
|
|
862
914
|
- lib/rigor/inference/mutation_widening.rb
|
|
863
915
|
- lib/rigor/inference/narrowing.rb
|
|
916
|
+
- lib/rigor/inference/narrowing/case_literals.rb
|
|
917
|
+
- lib/rigor/inference/narrowing/class_dispatch.rb
|
|
918
|
+
- lib/rigor/inference/narrowing/complements.rb
|
|
919
|
+
- lib/rigor/inference/narrowing/presence_predicates.rb
|
|
920
|
+
- lib/rigor/inference/narrowing/regex_match.rb
|
|
864
921
|
- lib/rigor/inference/object_mixins.rb
|
|
922
|
+
- lib/rigor/inference/opaque_mutation.rb
|
|
865
923
|
- lib/rigor/inference/operand_effects.rb
|
|
866
924
|
- lib/rigor/inference/operand_walk.rb
|
|
867
925
|
- lib/rigor/inference/optimistic_origin.rb
|
|
@@ -899,18 +957,39 @@ files:
|
|
|
899
957
|
- lib/rigor/inference/return_barrier.rb
|
|
900
958
|
- lib/rigor/inference/rewrite_mutation.rb
|
|
901
959
|
- lib/rigor/inference/scope_indexer.rb
|
|
960
|
+
- lib/rigor/inference/scope_indexer/alias_def_nodes.rb
|
|
961
|
+
- lib/rigor/inference/scope_indexer/census_scope.rb
|
|
902
962
|
- lib/rigor/inference/scope_indexer/certainty.rb
|
|
963
|
+
- lib/rigor/inference/scope_indexer/class_cvar_census.rb
|
|
903
964
|
- lib/rigor/inference/scope_indexer/class_cvars_collector.rb
|
|
965
|
+
- lib/rigor/inference/scope_indexer/class_declarations.rb
|
|
966
|
+
- lib/rigor/inference/scope_indexer/class_ivar_index.rb
|
|
904
967
|
- lib/rigor/inference/scope_indexer/constant_ivar_value.rb
|
|
968
|
+
- lib/rigor/inference/scope_indexer/constant_tables.rb
|
|
969
|
+
- lib/rigor/inference/scope_indexer/cvar_hierarchy.rb
|
|
970
|
+
- lib/rigor/inference/scope_indexer/declaration_artifacts.rb
|
|
971
|
+
- lib/rigor/inference/scope_indexer/declaration_signature.rb
|
|
905
972
|
- lib/rigor/inference/scope_indexer/declared_ivar_types.rb
|
|
906
973
|
- lib/rigor/inference/scope_indexer/declared_param_writes.rb
|
|
907
974
|
- lib/rigor/inference/scope_indexer/def_nestings_collector.rb
|
|
908
975
|
- lib/rigor/inference/scope_indexer/derived_param_value.rb
|
|
909
976
|
- lib/rigor/inference/scope_indexer/empty_seed.rb
|
|
977
|
+
- lib/rigor/inference/scope_indexer/factory_call_resolver.rb
|
|
910
978
|
- lib/rigor/inference/scope_indexer/ivar_contributions.rb
|
|
911
979
|
- lib/rigor/inference/scope_indexer/layered_def_nestings.rb
|
|
980
|
+
- lib/rigor/inference/scope_indexer/literal_receiver_mutations.rb
|
|
912
981
|
- lib/rigor/inference/scope_indexer/member_layouts_collector.rb
|
|
913
982
|
- lib/rigor/inference/scope_indexer/mixin_accumulator.rb
|
|
983
|
+
- lib/rigor/inference/scope_indexer/mixin_effects.rb
|
|
984
|
+
- lib/rigor/inference/scope_indexer/mixin_tables.rb
|
|
985
|
+
- lib/rigor/inference/scope_indexer/mutated_carrier_widening.rb
|
|
986
|
+
- lib/rigor/inference/scope_indexer/mutated_element_census.rb
|
|
987
|
+
- lib/rigor/inference/scope_indexer/node_propagation.rb
|
|
988
|
+
- lib/rigor/inference/scope_indexer/program_globals.rb
|
|
989
|
+
- lib/rigor/inference/scope_indexer/published_constant_cvars.rb
|
|
990
|
+
- lib/rigor/inference/scope_indexer/published_constant_ivars.rb
|
|
991
|
+
- lib/rigor/inference/scope_indexer/shared_walk_tables.rb
|
|
992
|
+
- lib/rigor/inference/scope_indexer/singleton_class_sources.rb
|
|
914
993
|
- lib/rigor/inference/scope_indexer/superclasses_collector.rb
|
|
915
994
|
- lib/rigor/inference/scope_indexer/unseen_ivar_writers.rb
|
|
916
995
|
- lib/rigor/inference/self_call_ivar_writes.rb
|
|
@@ -918,8 +997,11 @@ files:
|
|
|
918
997
|
- lib/rigor/inference/set_mutation.rb
|
|
919
998
|
- lib/rigor/inference/singleton_external_ahead.rb
|
|
920
999
|
- lib/rigor/inference/singleton_hook_decline.rb
|
|
1000
|
+
- lib/rigor/inference/singleton_hook_definers.rb
|
|
921
1001
|
- lib/rigor/inference/singleton_object_constant.rb
|
|
922
1002
|
- lib/rigor/inference/statement_evaluator.rb
|
|
1003
|
+
- lib/rigor/inference/statement_evaluator/def_arguments_and_assertions.rb
|
|
1004
|
+
- lib/rigor/inference/statement_evaluator/pattern_bindings.rb
|
|
923
1005
|
- lib/rigor/inference/stored_block_call.rb
|
|
924
1006
|
- lib/rigor/inference/string_mutation.rb
|
|
925
1007
|
- lib/rigor/inference/struct_fold_safety.rb
|
|
@@ -972,6 +1054,7 @@ files:
|
|
|
972
1054
|
- lib/rigor/mcp.rb
|
|
973
1055
|
- lib/rigor/mcp/loop.rb
|
|
974
1056
|
- lib/rigor/mcp/server.rb
|
|
1057
|
+
- lib/rigor/mcp/skill_catalog.rb
|
|
975
1058
|
- lib/rigor/memo_audit.rb
|
|
976
1059
|
- lib/rigor/plugin.rb
|
|
977
1060
|
- lib/rigor/plugin/access_denied_error.rb
|
|
@@ -1000,6 +1083,7 @@ files:
|
|
|
1000
1083
|
- lib/rigor/plugin/manifest.rb
|
|
1001
1084
|
- lib/rigor/plugin/node_context.rb
|
|
1002
1085
|
- lib/rigor/plugin/node_rule_walk.rb
|
|
1086
|
+
- lib/rigor/plugin/optimistic_return.rb
|
|
1003
1087
|
- lib/rigor/plugin/protocol_contract.rb
|
|
1004
1088
|
- lib/rigor/plugin/registry.rb
|
|
1005
1089
|
- lib/rigor/plugin/services.rb
|
|
@@ -1339,6 +1423,8 @@ files:
|
|
|
1339
1423
|
- sig/rigor/analysis/check_rules/always_truthy_condition_collector.rbs
|
|
1340
1424
|
- sig/rigor/analysis/check_rules/dead_assignment_collector.rbs
|
|
1341
1425
|
- sig/rigor/analysis/check_rules/rule_walk.rbs
|
|
1426
|
+
- sig/rigor/analysis/check_rules/suppression.rbs
|
|
1427
|
+
- sig/rigor/analysis/dependency_recorder.rbs
|
|
1342
1428
|
- sig/rigor/analysis/dependency_source_inference/gem_resolver.rbs
|
|
1343
1429
|
- sig/rigor/analysis/dependency_source_inference/index.rbs
|
|
1344
1430
|
- sig/rigor/analysis/fact_store.rbs
|
|
@@ -1386,6 +1472,7 @@ files:
|
|
|
1386
1472
|
- sig/rigor/plugin/loader.rbs
|
|
1387
1473
|
- sig/rigor/plugin/manifest.rbs
|
|
1388
1474
|
- sig/rigor/plugin/node_context.rbs
|
|
1475
|
+
- sig/rigor/plugin/optimistic_return.rbs
|
|
1389
1476
|
- sig/rigor/plugin/protocol_contract.rbs
|
|
1390
1477
|
- sig/rigor/plugin/registry.rbs
|
|
1391
1478
|
- sig/rigor/plugin/services.rbs
|