REQ-DDB-GUARD-001: Doxygen presence check

← Requirements

What it requires

  1. Undocumented functions produce presence violations; documented functions pass clean
tier
PASS
declared
implemented
priority
P1

Where it lives

  • Guard: the pre-commit gate14

See it on the map

How it is met

implemented byresults (119 tests)check_exemption_reasonscheck_fails_when_existscheck_fails_when_markerscheck_presencecheck_removed_tagscheck_req_existscheck_unknown_tagsfingerprintload_failure_mode_idsrenderrenderrun_precommitrun_validatevalidate_file119 passed119 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (119)

Linked directly

119 tests: 119 passed

119 passed
testresultlinked byimplementers exercisedcalls away
test_validate_writes_the_format_to_stdout_and_keeps_the_exit_codepassedmeasured12 of 14—
test_the_pre_commit_hook_runs_the_coverage_gatepassedmeasured11 of 14—
test_a_checked_tree_says_nothing_extrapassedmeasured10 of 14—
test_a_configured_language_is_not_reportedpassedmeasured10 of 14—
test_a_namespaced_satisfies_id_resolves_by_its_bare_idpassedmeasured10 of 14—
test_a_non_void_return_type_on_its_own_line_still_needs_onepassedmeasured10 of 14—
test_a_pinned_external_catalogue_is_read_at_its_revisionpassedmeasured10 of 14—
test_a_symlinked_impact_directory_is_refusedpassedmeasured10 of 14—
test_a_tag_with_no_catalogue_to_check_it_is_reportedpassedmeasured10 of 14—
test_a_void_return_type_on_its_own_line_needs_no_return_tagpassedmeasured10 of 14—
test_an_external_catalogue_satisfies_cross_reference_without_a_local_onepassedmeasured10 of 14—
test_custom_configpassedmeasured10 of 14—
test_default_subcommand_with_filespassedmeasured10 of 14—
test_literal_version_resolvespassedmeasured10 of 14—
test_precommit_mode_flags_a_stale_rust_functionpassedmeasured10 of 14—
test_precommit_with_impactpassedmeasured10 of 14—
test_the_gate_refuses_a_satisfies_id_no_catalogue_holdspassedmeasured10 of 14—
test_validate_clean_filepassedmeasured10 of 14—
test_validate_dirty_filepassedmeasured10 of 14—
test_verbose_flagpassedmeasured10 of 14—
test_a_clean_repo_passespassedmeasured4 of 14: check_presence, load_failure_mode_ids, run_validate, validate_file—
test_an_excluded_file_is_counted_as_not_checkedpassedmeasured4 of 14: check_presence, load_failure_mode_ids, run_validate, validate_file—
test_a_non_source_file_stays_silentpassedmeasured3 of 14: load_failure_mode_ids, run_validate, validate_file—
test_an_opt_in_language_left_unconfigured_is_namedpassedmeasured3 of 14: load_failure_mode_ids, run_validate, validate_file—
test_an_unchecked_file_is_named_without_the_verbose_flagpassedmeasured3 of 14: load_failure_mode_ids, run_validate, validate_file—
test_sarif_validates_against_the_official_schemapassedmeasured2 of 14: fingerprint, render—
test_validate_nonexistent_filepassedmeasured2 of 14: load_failure_mode_ids, run_validate—
test_github_annotations_are_byte_for_byte_and_escapedpassedmeasured1 of 14: render—
test_no_files_returns_zeropassedmeasured1 of 14: run_validate—
test_no_violations_is_an_empty_document_not_no_documentpassedmeasured1 of 14: render—
test_precommit_fails_when_gate_unresolvablepassedmeasured1 of 14: run_precommit—
test_validate_fails_when_gate_unresolvablepassedmeasured1 of 14: run_validate—
test_a_broken_toolchain_file_is_reported_not_fatalpassedmeasured8 of 141
test_all_checks_runpassedmeasured8 of 141
test_clew_specific_ignores_apply_to_the_gatepassedmeasured8 of 141
test_decorative_triggers_presence_violationpassedmeasured8 of 141
test_docstring_satisfies_req_tagpassedmeasured8 of 141
test_docstring_tags_satisfy_presencepassedmeasured8 of 141
test_documented_file_no_violationspassedmeasured8 of 141
test_excluded_path_is_absent_and_gate_skips_itpassedmeasured8 of 141
test_fixture_violationspassedmeasured8 of 141
test_fully_documented_pythonpassedmeasured8 of 141
test_inner_doc_satisfies_the_file_block_without_at_filepassedmeasured8 of 141
test_javascript_extensionspassedmeasured8 of 141
test_missing_file_block_suggests_inner_docpassedmeasured8 of 141
test_nested_lookalike_path_agreespassedmeasured8 of 141
test_no_false_positivespassedmeasured8 of 141
test_no_false_positives_with_attributespassedmeasured8 of 141
test_only_definitions_checkedpassedmeasured8 of 141
test_presence_message_c_style_for_c_filepassedmeasured8 of 141
test_presence_message_includes_return_for_non_voidpassedmeasured8 of 141
test_presence_message_omits_return_for_voidpassedmeasured8 of 141
test_presence_message_python_stylepassedmeasured8 of 141
test_require_return_bites_only_on_valued_annotationspassedmeasured8 of 141
test_return_is_not_required_for_rustpassedmeasured8 of 141
test_return_requirement_can_be_turned_back_onpassedmeasured8 of 141
test_toolchain_ignore_paths_skip_validationpassedmeasured8 of 141
test_tsx_file_uses_typescript_configpassedmeasured8 of 141
test_validate_file_pythonpassedmeasured8 of 141
test_violationspassedmeasured8 of 141
test_without_toolchain_files_everything_is_checkedpassedmeasured8 of 141
test_gitlab_code_quality_is_byte_for_bytepassedmeasured2 of 14: fingerprint, render1
test_guard_knows_the_tag_and_refuses_an_undeclared_idpassedmeasured2 of 14: check_fails_when_exists, check_unknown_tags1
test_a_bare_exemption_is_refused_when_reasons_are_requiredpassedmeasured1 of 14: check_exemption_reasons1
test_a_doxygen_command_is_a_known_tagpassedmeasured1 of 14: check_unknown_tags1
test_a_reasoned_exemption_passespassedmeasured1 of 14: check_exemption_reasons1
test_a_typo_of_an_enforced_tag_is_still_caughtpassedmeasured1 of 14: check_unknown_tags1
test_binary_named_as_source_is_skippedpassedmeasured1 of 14: validate_file1
test_bus_tags_are_known_tags_when_configuredpassedmeasured1 of 14: check_unknown_tags1
test_configured_tag_satisfies_presencepassedmeasured1 of 14: check_presence1
test_default_remains_versionpassedmeasured1 of 14: check_presence1
test_dg_internal_is_left_to_the_removal_checkpassedmeasured1 of 14: check_unknown_tags1
test_dg_internal_is_refused_naming_its_replacementpassedmeasured1 of 14: check_removed_tags1
test_disabled_by_configpassedmeasured1 of 14: check_unknown_tags1
test_excluded_filepassedmeasured1 of 14: validate_file1
test_extra_tags_acceptedpassedmeasured1 of 14: check_unknown_tags1
test_guard_refuses_a_marker_naming_an_undeclared_modepassedmeasured1 of 14: check_fails_when_markers1
test_internal_is_still_a_recognised_tagpassedmeasured1 of 14: check_unknown_tags1
test_known_tag_no_violationpassedmeasured1 of 14: check_unknown_tags1
test_levenshtein_suggestionpassedmeasured1 of 14: check_unknown_tags1
test_line_numbers_1_indexedpassedmeasured1 of 14: check_presence1
test_missing_both_tagspassedmeasured1 of 14: check_presence1
test_missing_briefpassedmeasured1 of 14: check_presence1
test_missing_brief_has_fix_hintpassedmeasured1 of 14: check_presence1
test_missing_configured_tag_is_reported_by_that_namepassedmeasured1 of 14: check_presence1
test_missing_doxygenpassedmeasured1 of 14: check_presence1
test_missing_doxygen_has_fix_hintpassedmeasured1 of 14: check_presence1
test_missing_versionpassedmeasured1 of 14: check_presence1
test_multiple_functionspassedmeasured1 of 14: check_presence1
test_no_req_ids_skipspassedmeasured1 of 14: check_req_exists1
test_no_violations_when_documentedpassedmeasured1 of 14: check_presence1
test_opt_inpassedmeasured1 of 14: validate_file1
test_presence_disabledpassedmeasured1 of 14: check_presence1
test_reasons_are_optional_by_defaultpassedmeasured1 of 14: check_exemption_reasons1
test_retired_tags_can_be_readmitted_via_extra_tagspassedmeasured1 of 14: check_unknown_tags1
test_retired_tracer_tags_are_unknownpassedmeasured1 of 14: check_unknown_tags1
test_rust_is_opt_inpassedmeasured1 of 14: validate_file1
test_stale_req_violationpassedmeasured1 of 14: check_req_exists1
test_the_fingerprint_survives_a_line_move_and_separates_overloadspassedmeasured1 of 14: fingerprint1
test_the_refusal_survives_known_tags_warn_offpassedmeasured1 of 14: check_removed_tags1
test_undocumented_definition_after_declpassedmeasured1 of 14: check_presence1
test_unknown_extension_skippedpassedmeasured1 of 14: validate_file1
test_unknown_tag_produces_violationpassedmeasured1 of 14: check_unknown_tags1
test_utility_is_acceptedpassedmeasured1 of 14: check_removed_tags1
test_valid_req_no_violationpassedmeasured1 of 14: check_req_exists1
test_version_not_requiredpassedmeasured1 of 14: check_presence1
test_a_cpp_member_declaration_is_checked_toopassedmeasured8 of 142
test_a_dead_req_on_a_documented_declaration_is_refusedpassedmeasured8 of 142
test_a_declaration_does_not_need_its_own_reqpassedmeasured8 of 142
test_a_documented_declaration_needs_its_versionpassedmeasured8 of 142
test_class_level_block_does_not_leak_to_first_methodpassedmeasured8 of 142
test_excludes_are_globs_and_a_regex_says_sopassedmeasured8 of 142
test_first_method_after_class_docstring_still_foundpassedmeasured8 of 142
test_first_method_directly_after_class_linepassedmeasured8 of 142
test_later_method_still_foundpassedmeasured8 of 142
test_nested_class_first_methodpassedmeasured8 of 142
test_an_undocumented_declaration_is_not_a_findingpassedmeasured2 of 14: check_presence, validate_file2
test_node_is_known_when_the_wiki_declares_sourcespassedmeasured1 of 14: check_unknown_tags2
test_the_indexs_event_tags_are_known_to_the_gatepassedmeasured1 of 14: check_unknown_tags2

Flows through it