REQ-DDB-GUARD-007: Duplicate tag detection

← Requirements

What it requires

  1. A block carrying two brief, version, return or file tags produces a tag violation naming the count; repeatable tags such as req and param are unaffected; duplicate_tags_error set false disables the check
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_duplicate_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

68 tests: 68 passed

68 passed
testresultlinked byimplementers exercisedcalls away
test_a_checked_tree_says_nothing_extrapassedmeasured1 of 1: check_duplicate_tags—
test_a_configured_language_is_not_reportedpassedmeasured1 of 1: check_duplicate_tags—
test_a_namespaced_satisfies_id_resolves_by_its_bare_idpassedmeasured1 of 1: check_duplicate_tags—
test_a_non_void_return_type_on_its_own_line_still_needs_onepassedmeasured1 of 1: check_duplicate_tags—
test_a_pinned_external_catalogue_is_read_at_its_revisionpassedmeasured1 of 1: check_duplicate_tags—
test_a_symlinked_impact_directory_is_refusedpassedmeasured1 of 1: check_duplicate_tags—
test_a_tag_with_no_catalogue_to_check_it_is_reportedpassedmeasured1 of 1: check_duplicate_tags—
test_a_void_return_type_on_its_own_line_needs_no_return_tagpassedmeasured1 of 1: check_duplicate_tags—
test_an_external_catalogue_satisfies_cross_reference_without_a_local_onepassedmeasured1 of 1: check_duplicate_tags—
test_custom_configpassedmeasured1 of 1: check_duplicate_tags—
test_default_subcommand_with_filespassedmeasured1 of 1: check_duplicate_tags—
test_literal_version_resolvespassedmeasured1 of 1: check_duplicate_tags—
test_precommit_mode_flags_a_stale_rust_functionpassedmeasured1 of 1: check_duplicate_tags—
test_precommit_with_impactpassedmeasured1 of 1: check_duplicate_tags—
test_the_gate_refuses_a_satisfies_id_no_catalogue_holdspassedmeasured1 of 1: check_duplicate_tags—
test_the_pre_commit_hook_runs_the_coverage_gatepassedmeasured1 of 1: check_duplicate_tags—
test_validate_clean_filepassedmeasured1 of 1: check_duplicate_tags—
test_validate_dirty_filepassedmeasured1 of 1: check_duplicate_tags—
test_validate_writes_the_format_to_stdout_and_keeps_the_exit_codepassedmeasured1 of 1: check_duplicate_tags—
test_verbose_flagpassedmeasured1 of 1: check_duplicate_tags—
test_check_can_be_disabledpassedmeasured1 of 1: check_duplicate_tags1
test_clean_block_passespassedmeasured1 of 1: check_duplicate_tags1
test_duplicate_brief_flaggedpassedmeasured1 of 1: check_duplicate_tags1
test_duplicate_file_tag_flaggedpassedmeasured1 of 1: check_duplicate_tags1
test_duplicate_return_flaggedpassedmeasured1 of 1: check_duplicate_tags1
test_multiple_version_entries_are_legalpassedmeasured1 of 1: check_duplicate_tags1
test_repeatable_tags_are_not_flaggedpassedmeasured1 of 1: check_duplicate_tags1
test_stacked_blocks_flag_the_single_valued_tagspassedmeasured1 of 1: check_duplicate_tags1
test_undocumented_function_is_not_flaggedpassedmeasured1 of 1: check_duplicate_tags1
test_a_broken_toolchain_file_is_reported_not_fatalpassedmeasured1 of 1: check_duplicate_tags2
test_all_checks_runpassedmeasured1 of 1: check_duplicate_tags2
test_clew_specific_ignores_apply_to_the_gatepassedmeasured1 of 1: check_duplicate_tags2
test_decorative_triggers_presence_violationpassedmeasured1 of 1: check_duplicate_tags2
test_docstring_satisfies_req_tagpassedmeasured1 of 1: check_duplicate_tags2
test_docstring_tags_satisfy_presencepassedmeasured1 of 1: check_duplicate_tags2
test_documented_file_no_violationspassedmeasured1 of 1: check_duplicate_tags2
test_excluded_path_is_absent_and_gate_skips_itpassedmeasured1 of 1: check_duplicate_tags2
test_fixture_violationspassedmeasured1 of 1: check_duplicate_tags2
test_fully_documented_pythonpassedmeasured1 of 1: check_duplicate_tags2
test_inner_doc_satisfies_the_file_block_without_at_filepassedmeasured1 of 1: check_duplicate_tags2
test_javascript_extensionspassedmeasured1 of 1: check_duplicate_tags2
test_missing_file_block_suggests_inner_docpassedmeasured1 of 1: check_duplicate_tags2
test_nested_lookalike_path_agreespassedmeasured1 of 1: check_duplicate_tags2
test_no_false_positivespassedmeasured1 of 1: check_duplicate_tags2
test_no_false_positives_with_attributespassedmeasured1 of 1: check_duplicate_tags2
test_only_definitions_checkedpassedmeasured1 of 1: check_duplicate_tags2
test_presence_message_c_style_for_c_filepassedmeasured1 of 1: check_duplicate_tags2
test_presence_message_includes_return_for_non_voidpassedmeasured1 of 1: check_duplicate_tags2
test_presence_message_omits_return_for_voidpassedmeasured1 of 1: check_duplicate_tags2
test_presence_message_python_stylepassedmeasured1 of 1: check_duplicate_tags2
test_require_return_bites_only_on_valued_annotationspassedmeasured1 of 1: check_duplicate_tags2
test_return_is_not_required_for_rustpassedmeasured1 of 1: check_duplicate_tags2
test_return_requirement_can_be_turned_back_onpassedmeasured1 of 1: check_duplicate_tags2
test_toolchain_ignore_paths_skip_validationpassedmeasured1 of 1: check_duplicate_tags2
test_tsx_file_uses_typescript_configpassedmeasured1 of 1: check_duplicate_tags2
test_validate_file_pythonpassedmeasured1 of 1: check_duplicate_tags2
test_violationspassedmeasured1 of 1: check_duplicate_tags2
test_without_toolchain_files_everything_is_checkedpassedmeasured1 of 1: check_duplicate_tags2
test_a_cpp_member_declaration_is_checked_toopassedmeasured1 of 1: check_duplicate_tags3
test_a_dead_req_on_a_documented_declaration_is_refusedpassedmeasured1 of 1: check_duplicate_tags3
test_a_declaration_does_not_need_its_own_reqpassedmeasured1 of 1: check_duplicate_tags3
test_a_documented_declaration_needs_its_versionpassedmeasured1 of 1: check_duplicate_tags3
test_class_level_block_does_not_leak_to_first_methodpassedmeasured1 of 1: check_duplicate_tags3
test_excludes_are_globs_and_a_regex_says_sopassedmeasured1 of 1: check_duplicate_tags3
test_first_method_after_class_docstring_still_foundpassedmeasured1 of 1: check_duplicate_tags3
test_first_method_directly_after_class_linepassedmeasured1 of 1: check_duplicate_tags3
test_later_method_still_foundpassedmeasured1 of 1: check_duplicate_tags3
test_nested_class_first_methodpassedmeasured1 of 1: check_duplicate_tags3
Reached through calls

6 tests: 6 passed

6 passed
testresultlinked byimplementers exercisedcalls away
test_binary_named_as_source_is_skippedpassedinferred1 of 1: check_duplicate_tags2
test_excluded_filepassedinferred1 of 1: check_duplicate_tags2
test_opt_inpassedinferred1 of 1: check_duplicate_tags2
test_rust_is_opt_inpassedinferred1 of 1: check_duplicate_tags2
test_unknown_extension_skippedpassedinferred1 of 1: check_duplicate_tags2
test_an_undocumented_declaration_is_not_a_findingpassedinferred1 of 1: check_duplicate_tags3

Flows through it