REQ-DDB-GUARD-026: Functions crossing a bus carry a bus tag, scoped by a configured vocabulary

← Requirements

What it requires

  1. With validate.bus declared, a documented function whose name matches a handlers glob or whose body calls a senders name must carry one of the bus tags (tags, default emits / handles / receives) or an exemption (@callback, @utility); a sender itself is not in scope.
  2. A bus tag whose first word is not in vocabulary is a violation.
  3. Configured bus tags are known tags.
  4. Without validate.bus nothing is checked.
tier
PASS
declared
implemented
priority
P1

Where it lives

  • Guard: the pre-commit gate1

See it on the map

How it is met

implemented byresults (74 tests)check_bus_tags74 passed74 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (74)

Linked directly

69 tests: 69 passed

69 passed
testresultlinked byimplementers exercisedcalls away
test_a_checked_tree_says_nothing_extrapassedmeasured1 of 1: check_bus_tags—
test_a_clean_repo_passespassedmeasured1 of 1: check_bus_tags—
test_a_configured_language_is_not_reportedpassedmeasured1 of 1: check_bus_tags—
test_a_namespaced_satisfies_id_resolves_by_its_bare_idpassedmeasured1 of 1: check_bus_tags—
test_a_non_void_return_type_on_its_own_line_still_needs_onepassedmeasured1 of 1: check_bus_tags—
test_a_pinned_external_catalogue_is_read_at_its_revisionpassedmeasured1 of 1: check_bus_tags—
test_a_symlinked_impact_directory_is_refusedpassedmeasured1 of 1: check_bus_tags—
test_a_tag_with_no_catalogue_to_check_it_is_reportedpassedmeasured1 of 1: check_bus_tags—
test_a_void_return_type_on_its_own_line_needs_no_return_tagpassedmeasured1 of 1: check_bus_tags—
test_an_excluded_file_is_counted_as_not_checkedpassedmeasured1 of 1: check_bus_tags—
test_an_external_catalogue_satisfies_cross_reference_without_a_local_onepassedmeasured1 of 1: check_bus_tags—
test_custom_configpassedmeasured1 of 1: check_bus_tags—
test_default_subcommand_with_filespassedmeasured1 of 1: check_bus_tags—
test_literal_version_resolvespassedmeasured1 of 1: check_bus_tags—
test_precommit_mode_flags_a_stale_rust_functionpassedmeasured1 of 1: check_bus_tags—
test_precommit_with_impactpassedmeasured1 of 1: check_bus_tags—
test_the_gate_refuses_a_satisfies_id_no_catalogue_holdspassedmeasured1 of 1: check_bus_tags—
test_the_pre_commit_hook_runs_the_coverage_gatepassedmeasured1 of 1: check_bus_tags—
test_validate_clean_filepassedmeasured1 of 1: check_bus_tags—
test_validate_dirty_filepassedmeasured1 of 1: check_bus_tags—
test_validate_writes_the_format_to_stdout_and_keeps_the_exit_codepassedmeasured1 of 1: check_bus_tags—
test_verbose_flagpassedmeasured1 of 1: check_bus_tags—
test_bus_tags_are_known_tags_when_configuredpassedcatalogunknown—
test_the_bus_section_is_part_of_the_validated_schemapassedcatalogunknown—
test_a_bus_outside_the_vocabulary_is_refusedpassedmeasured1 of 1: check_bus_tags1
test_a_caller_of_a_sender_must_name_the_buspassedmeasured1 of 1: check_bus_tags1
test_a_handler_without_a_bus_tag_is_a_violationpassedmeasured1 of 1: check_bus_tags1
test_a_tagged_handler_passes_and_exemptions_are_honouredpassedmeasured1 of 1: check_bus_tags1
test_no_bus_section_means_no_rulepassedmeasured1 of 1: check_bus_tags1
test_a_broken_toolchain_file_is_reported_not_fatalpassedmeasured1 of 1: check_bus_tags2
test_all_checks_runpassedmeasured1 of 1: check_bus_tags2
test_clew_specific_ignores_apply_to_the_gatepassedmeasured1 of 1: check_bus_tags2
test_decorative_triggers_presence_violationpassedmeasured1 of 1: check_bus_tags2
test_docstring_satisfies_req_tagpassedmeasured1 of 1: check_bus_tags2
test_docstring_tags_satisfy_presencepassedmeasured1 of 1: check_bus_tags2
test_documented_file_no_violationspassedmeasured1 of 1: check_bus_tags2
test_excluded_path_is_absent_and_gate_skips_itpassedmeasured1 of 1: check_bus_tags2
test_fixture_violationspassedmeasured1 of 1: check_bus_tags2
test_fully_documented_pythonpassedmeasured1 of 1: check_bus_tags2
test_inner_doc_satisfies_the_file_block_without_at_filepassedmeasured1 of 1: check_bus_tags2
test_javascript_extensionspassedmeasured1 of 1: check_bus_tags2
test_missing_file_block_suggests_inner_docpassedmeasured1 of 1: check_bus_tags2
test_nested_lookalike_path_agreespassedmeasured1 of 1: check_bus_tags2
test_no_false_positivespassedmeasured1 of 1: check_bus_tags2
test_no_false_positives_with_attributespassedmeasured1 of 1: check_bus_tags2
test_only_definitions_checkedpassedmeasured1 of 1: check_bus_tags2
test_presence_message_c_style_for_c_filepassedmeasured1 of 1: check_bus_tags2
test_presence_message_includes_return_for_non_voidpassedmeasured1 of 1: check_bus_tags2
test_presence_message_omits_return_for_voidpassedmeasured1 of 1: check_bus_tags2
test_presence_message_python_stylepassedmeasured1 of 1: check_bus_tags2
test_require_return_bites_only_on_valued_annotationspassedmeasured1 of 1: check_bus_tags2
test_return_is_not_required_for_rustpassedmeasured1 of 1: check_bus_tags2
test_return_requirement_can_be_turned_back_onpassedmeasured1 of 1: check_bus_tags2
test_toolchain_ignore_paths_skip_validationpassedmeasured1 of 1: check_bus_tags2
test_tsx_file_uses_typescript_configpassedmeasured1 of 1: check_bus_tags2
test_validate_file_pythonpassedmeasured1 of 1: check_bus_tags2
test_violationspassedmeasured1 of 1: check_bus_tags2
test_without_toolchain_files_everything_is_checkedpassedmeasured1 of 1: check_bus_tags2
test_a_cpp_member_declaration_is_checked_toopassedmeasured1 of 1: check_bus_tags3
test_a_dead_req_on_a_documented_declaration_is_refusedpassedmeasured1 of 1: check_bus_tags3
test_a_declaration_does_not_need_its_own_reqpassedmeasured1 of 1: check_bus_tags3
test_a_documented_declaration_needs_its_versionpassedmeasured1 of 1: check_bus_tags3
test_an_undocumented_declaration_is_not_a_findingpassedmeasured1 of 1: check_bus_tags3
test_class_level_block_does_not_leak_to_first_methodpassedmeasured1 of 1: check_bus_tags3
test_excludes_are_globs_and_a_regex_says_sopassedmeasured1 of 1: check_bus_tags3
test_first_method_after_class_docstring_still_foundpassedmeasured1 of 1: check_bus_tags3
test_first_method_directly_after_class_linepassedmeasured1 of 1: check_bus_tags3
test_later_method_still_foundpassedmeasured1 of 1: check_bus_tags3
test_nested_class_first_methodpassedmeasured1 of 1: check_bus_tags3
Reached through calls

5 tests: 5 passed

5 passed
testresultlinked byimplementers exercisedcalls away
test_binary_named_as_source_is_skippedpassedinferred1 of 1: check_bus_tags2
test_excluded_filepassedinferred1 of 1: check_bus_tags2
test_opt_inpassedinferred1 of 1: check_bus_tags2
test_rust_is_opt_inpassedinferred1 of 1: check_bus_tags2
test_unknown_extension_skippedpassedinferred1 of 1: check_bus_tags2

Flows through it