MCPcopy Create free account

hub / github.com/chen3feng/cn-doc-style-guide / functions

Functions67 in github.com/chen3feng/cn-doc-style-guide

↓ 8 callersFunction_write
(tmp_path, text, name="doc.md")
tests/test_check.py:15
↓ 1 callersFunction_fix_punct
(text: str)
src/cndocstyle/formatter.py:90
↓ 1 callersFunction_fix_spacing
(text: str)
src/cndocstyle/formatter.py:106
↓ 1 callersFunction_iter_md_files
(paths)
src/cndocstyle/check.py:95
↓ 1 callersFunction_iter_md_files
(paths)
src/cndocstyle/formatter.py:161
↓ 1 callersFunction_protect
Replace protected spans with placeholders; return (text, restore).
src/cndocstyle/formatter.py:55
↓ 1 callersFunction_restore
(text: str, restore: list[str])
src/cndocstyle/formatter.py:69
↓ 1 callersFunctionfix_file
Format one file. Return True if content would change.
src/cndocstyle/formatter.py:148
↓ 1 callersFunctionfix_line
Return the style-normalised form of a single markdown line.
src/cndocstyle/formatter.py:113
↓ 1 callersFunctionfix_text
Return the style-normalised form of a full markdown document.
src/cndocstyle/formatter.py:124
↓ 1 callersFunctionmain
(argv=None)
src/cndocstyle/check.py:109
↓ 1 callersFunctionmain
(argv=None)
src/cndocstyle/formatter.py:175
↓ 1 callersFunctionmain
(argv=None)
src/cndocstyle/preview.py:33
↓ 1 callersFunctionpreview
(path: str)
src/cndocstyle/preview.py:19
↓ 1 callersFunctionscan_file
(path: str)
src/cndocstyle/check.py:71
↓ 1 callersFunctionscan_line
(line: str)
src/cndocstyle/check.py:63
Function_blank
(m)
src/cndocstyle/check.py:59
Function_names
Extract the rule-name column from ``scan_file`` output.
tests/test_check.py:10
Functionsub
(m: re.Match)
src/cndocstyle/formatter.py:59
Functiontest_collapses_multiple_spaces_between_han
()
tests/test_formatter.py:18
Functiontest_converts_ascii_parens_adjacent_to_han
()
tests/test_formatter.py:50
Functiontest_converts_half_width_colon_after_han
()
tests/test_formatter.py:35
Functiontest_converts_half_width_comma_after_han
()
tests/test_formatter.py:31
Functiontest_converts_semicolon_qmark_bang_after_han
()
tests/test_formatter.py:44
Functiontest_does_not_touch_double_quote
()
tests/test_formatter.py:60
Functiontest_does_not_touch_standalone_english_punct
()
tests/test_formatter.py:54
Functiontest_fix_file_apply_writes_change
(tmp_path)
tests/test_formatter.py:140
Functiontest_fix_file_dry_run_does_not_modify
(tmp_path)
tests/test_formatter.py:131
Functiontest_fix_file_returns_false_when_clean
(tmp_path)
tests/test_formatter.py:148
Functiontest_fix_text_handles_tilde_fences
()
tests/test_formatter.py:102
Functiontest_fix_text_is_idempotent
()
tests/test_formatter.py:108
Functiontest_fix_text_preserves_no_trailing_newline
()
tests/test_formatter.py:123
Functiontest_fix_text_preserves_trailing_newline
()
tests/test_formatter.py:116
Functiontest_fix_text_skips_fenced_code_block
()
tests/test_formatter.py:96
Functiontest_html_tag_contents_are_protected
()
tests/test_formatter.py:85
Functiontest_inline_code_is_protected
()
tests/test_formatter.py:70
Functiontest_inserts_space_between_ascii_and_han
()
tests/test_formatter.py:14
Functiontest_inserts_space_between_han_and_ascii
()
tests/test_formatter.py:10
Functiontest_link_url_is_protected_but_label_is_not
()
tests/test_formatter.py:75
Functiontest_main_apply_modifies_files
(tmp_path, capsys)
tests/test_formatter.py:166
Functiontest_main_dry_run_reports_would_change_files
(tmp_path, capsys)
tests/test_formatter.py:155
Functiontest_main_exclude_flag_silences_rule
(tmp_path, capsys)
tests/test_check.py:139
Functiontest_main_returns_nonzero_on_dirty_file
(tmp_path, capsys)
tests/test_check.py:131
Functiontest_main_returns_one_when_there_is_a_diff
(tmp_path, capsys)
tests/test_preview.py:43
Functiontest_main_returns_zero_on_clean_file
(tmp_path, capsys)
tests/test_check.py:125
Functiontest_main_returns_zero_when_no_diff
(tmp_path, capsys)
tests/test_preview.py:35
Functiontest_main_walks_directory
(tmp_path, capsys)
tests/test_check.py:146
Functiontest_main_walks_directory_recursively
(tmp_path)
tests/test_formatter.py:176
Functiontest_main_with_no_args_prints_doc
(capsys)
tests/test_preview.py:53
Functiontest_preserves_colon_before_double_slash
()
tests/test_formatter.py:39
Functiontest_preview_does_not_modify_file
(tmp_path)
tests/test_preview.py:27
Functiontest_preview_empty_for_clean_file
(tmp_path)
tests/test_preview.py:8
Functiontest_preview_shows_unified_diff_for_dirty_file
(tmp_path)
tests/test_preview.py:14
Functiontest_scan_file_clean_document
(tmp_path)
tests/test_check.py:116
Functiontest_scan_file_handles_tilde_fences
(tmp_path)
tests/test_check.py:107
Functiontest_scan_file_skips_fenced_code_blocks
(tmp_path)
tests/test_check.py:97
Functiontest_scan_line_clean_input_has_no_hits
()
tests/test_check.py:89
Functiontest_scan_line_colon_before_double_slash_is_ignored
()
tests/test_check.py:53
Functiontest_scan_line_detects_ascii_han
()
tests/test_check.py:30
Functiontest_scan_line_detects_ascii_quote
()
tests/test_check.py:69
Functiontest_scan_line_detects_half_width_punct
()
tests/test_check.py:36
Functiontest_scan_line_detects_han_ascii
()
tests/test_check.py:24
Functiontest_scan_line_detects_multi_space
()
tests/test_check.py:64
Functiontest_scan_line_detects_parens
()
tests/test_check.py:59
Functiontest_scan_line_inline_code_is_ignored
()
tests/test_check.py:74
Functiontest_scan_line_link_url_is_ignored
()
tests/test_check.py:80
Functiontest_single_space_between_han_is_left_alone
()
tests/test_formatter.py:23