-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_validation_utils.py
More file actions
114 lines (110 loc) · 2.85 KB
/
_validation_utils.py
File metadata and controls
114 lines (110 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#!/usr/bin/env python3
"""
Shared utilities for validation scripts.
This module provides common functionality for all validation scripts,
including color support, standardized output formatting, and helper functions.
Facade: re-exports from lib.validation for backward compatibility.
Implementation lives in scripts/lib/validation/ (_core, _output, _fs, _markdown).
"""
from lib.validation import (
DOCS_DIR,
FEATURES_DIR,
REQUIREMENTS_DIR,
TECH_SPECS_DIR,
COLOR_GREEN,
COLOR_RED,
COLOR_RESET,
COLOR_YELLOW,
SEPARATOR_WIDTH,
OutputBuilder,
ValidationIssue,
calculate_label_width,
colorize,
format_issue_message,
format_summary_line,
parse_no_color_flag,
supports_color,
FileContentCache,
find_feature_files,
find_markdown_files,
is_in_dot_directory,
HeadingContext,
ProseSection,
build_heading_hierarchy,
contains_url,
count_sentences,
extract_headings,
extract_headings_from_file,
extract_headings_with_anchors,
extract_h2_plus_headings_with_sections,
extract_headings_with_section_numbers,
find_heading_before_line,
find_heading_for_code_block,
generate_anchor_from_heading,
get_backticks_error_message,
get_common_abbreviations,
get_subheadings,
has_backticks,
has_code_blocks,
is_organizational_heading,
is_safe_path,
remove_backticks_keep_content,
validate_anchor,
validate_file_name,
validate_spec_file_name,
get_validation_exit_code,
get_workspace_root,
import_module_with_fallback,
parse_paths,
)
__all__ = [
"DOCS_DIR",
"FEATURES_DIR",
"REQUIREMENTS_DIR",
"TECH_SPECS_DIR",
"COLOR_GREEN",
"COLOR_RED",
"COLOR_RESET",
"COLOR_YELLOW",
"SEPARATOR_WIDTH",
"OutputBuilder",
"ValidationIssue",
"calculate_label_width",
"colorize",
"format_issue_message",
"format_summary_line",
"parse_no_color_flag",
"supports_color",
"FileContentCache",
"find_feature_files",
"find_markdown_files",
"is_in_dot_directory",
"HeadingContext",
"ProseSection",
"build_heading_hierarchy",
"contains_url",
"count_sentences",
"extract_headings",
"extract_headings_from_file",
"extract_headings_with_anchors",
"extract_h2_plus_headings_with_sections",
"extract_headings_with_section_numbers",
"find_heading_before_line",
"find_heading_for_code_block",
"generate_anchor_from_heading",
"get_backticks_error_message",
"get_common_abbreviations",
"get_subheadings",
"has_backticks",
"has_code_blocks",
"is_organizational_heading",
"is_safe_path",
"remove_backticks_keep_content",
"validate_anchor",
"validate_file_name",
"validate_spec_file_name",
"get_validation_exit_code",
"get_workspace_root",
"import_module_with_fallback",
"parse_paths",
]