REQ-DDB-GUARD-007: Duplicate tag detection¶
What it requires
- 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
How it is met
Implemented by
check_duplicate_tagsclew/guard/checks.py:873
Tests (74)
Linked directly
68 tests: 68 passed
68 passed
| test | result | linked by | implementers exercised | calls away |
|---|---|---|---|---|
test_a_checked_tree_says_nothing_extra | passed | measured | 1 of 1: check_duplicate_tags | — |
test_a_configured_language_is_not_reported | passed | measured | 1 of 1: check_duplicate_tags | — |
test_a_namespaced_satisfies_id_resolves_by_its_bare_id | passed | measured | 1 of 1: check_duplicate_tags | — |
test_a_non_void_return_type_on_its_own_line_still_needs_one | passed | measured | 1 of 1: check_duplicate_tags | — |
test_a_pinned_external_catalogue_is_read_at_its_revision | passed | measured | 1 of 1: check_duplicate_tags | — |
test_a_symlinked_impact_directory_is_refused | passed | measured | 1 of 1: check_duplicate_tags | — |
test_a_tag_with_no_catalogue_to_check_it_is_reported | passed | measured | 1 of 1: check_duplicate_tags | — |
test_a_void_return_type_on_its_own_line_needs_no_return_tag | passed | measured | 1 of 1: check_duplicate_tags | — |
test_an_external_catalogue_satisfies_cross_reference_without_a_local_one | passed | measured | 1 of 1: check_duplicate_tags | — |
test_custom_config | passed | measured | 1 of 1: check_duplicate_tags | — |
test_default_subcommand_with_files | passed | measured | 1 of 1: check_duplicate_tags | — |
test_literal_version_resolves | passed | measured | 1 of 1: check_duplicate_tags | — |
test_precommit_mode_flags_a_stale_rust_function | passed | measured | 1 of 1: check_duplicate_tags | — |
test_precommit_with_impact | passed | measured | 1 of 1: check_duplicate_tags | — |
test_the_gate_refuses_a_satisfies_id_no_catalogue_holds | passed | measured | 1 of 1: check_duplicate_tags | — |
test_the_pre_commit_hook_runs_the_coverage_gate | passed | measured | 1 of 1: check_duplicate_tags | — |
test_validate_clean_file | passed | measured | 1 of 1: check_duplicate_tags | — |
test_validate_dirty_file | passed | measured | 1 of 1: check_duplicate_tags | — |
test_validate_writes_the_format_to_stdout_and_keeps_the_exit_code | passed | measured | 1 of 1: check_duplicate_tags | — |
test_verbose_flag | passed | measured | 1 of 1: check_duplicate_tags | — |
test_check_can_be_disabled | passed | measured | 1 of 1: check_duplicate_tags | 1 |
test_clean_block_passes | passed | measured | 1 of 1: check_duplicate_tags | 1 |
test_duplicate_brief_flagged | passed | measured | 1 of 1: check_duplicate_tags | 1 |
test_duplicate_file_tag_flagged | passed | measured | 1 of 1: check_duplicate_tags | 1 |
test_duplicate_return_flagged | passed | measured | 1 of 1: check_duplicate_tags | 1 |
test_multiple_version_entries_are_legal | passed | measured | 1 of 1: check_duplicate_tags | 1 |
test_repeatable_tags_are_not_flagged | passed | measured | 1 of 1: check_duplicate_tags | 1 |
test_stacked_blocks_flag_the_single_valued_tags | passed | measured | 1 of 1: check_duplicate_tags | 1 |
test_undocumented_function_is_not_flagged | passed | measured | 1 of 1: check_duplicate_tags | 1 |
test_a_broken_toolchain_file_is_reported_not_fatal | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_all_checks_run | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_clew_specific_ignores_apply_to_the_gate | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_decorative_triggers_presence_violation | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_docstring_satisfies_req_tag | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_docstring_tags_satisfy_presence | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_documented_file_no_violations | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_excluded_path_is_absent_and_gate_skips_it | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_fixture_violations | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_fully_documented_python | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_inner_doc_satisfies_the_file_block_without_at_file | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_javascript_extensions | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_missing_file_block_suggests_inner_doc | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_nested_lookalike_path_agrees | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_no_false_positives | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_no_false_positives_with_attributes | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_only_definitions_checked | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_presence_message_c_style_for_c_file | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_presence_message_includes_return_for_non_void | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_presence_message_omits_return_for_void | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_presence_message_python_style | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_require_return_bites_only_on_valued_annotations | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_return_is_not_required_for_rust | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_return_requirement_can_be_turned_back_on | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_toolchain_ignore_paths_skip_validation | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_tsx_file_uses_typescript_config | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_validate_file_python | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_violations | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_without_toolchain_files_everything_is_checked | passed | measured | 1 of 1: check_duplicate_tags | 2 |
test_a_cpp_member_declaration_is_checked_too | passed | measured | 1 of 1: check_duplicate_tags | 3 |
test_a_dead_req_on_a_documented_declaration_is_refused | passed | measured | 1 of 1: check_duplicate_tags | 3 |
test_a_declaration_does_not_need_its_own_req | passed | measured | 1 of 1: check_duplicate_tags | 3 |
test_a_documented_declaration_needs_its_version | passed | measured | 1 of 1: check_duplicate_tags | 3 |
test_class_level_block_does_not_leak_to_first_method | passed | measured | 1 of 1: check_duplicate_tags | 3 |
test_excludes_are_globs_and_a_regex_says_so | passed | measured | 1 of 1: check_duplicate_tags | 3 |
test_first_method_after_class_docstring_still_found | passed | measured | 1 of 1: check_duplicate_tags | 3 |
test_first_method_directly_after_class_line | passed | measured | 1 of 1: check_duplicate_tags | 3 |
test_later_method_still_found | passed | measured | 1 of 1: check_duplicate_tags | 3 |
test_nested_class_first_method | passed | measured | 1 of 1: check_duplicate_tags | 3 |
Reached through calls
6 tests: 6 passed
6 passed
| test | result | linked by | implementers exercised | calls away |
|---|---|---|---|---|
test_binary_named_as_source_is_skipped | passed | inferred | 1 of 1: check_duplicate_tags | 2 |
test_excluded_file | passed | inferred | 1 of 1: check_duplicate_tags | 2 |
test_opt_in | passed | inferred | 1 of 1: check_duplicate_tags | 2 |
test_rust_is_opt_in | passed | inferred | 1 of 1: check_duplicate_tags | 2 |
test_unknown_extension_skipped | passed | inferred | 1 of 1: check_duplicate_tags | 2 |
test_an_undocumented_declaration_is_not_a_finding | passed | inferred | 1 of 1: check_duplicate_tags | 3 |