File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,6 +155,10 @@ impl ErrorCatalog {
155155 } )
156156 }
157157
158+ /// Extract catalogue entries from a quoted `define` form or an already
159+ /// unwrapped list.
160+ ///
161+ /// Returns a catalogue-parse error when `value` is not a non-empty list.
158162 fn find_catalog_content ( value : & Value ) -> Result < Vec < & Value > > {
159163 // Handle (define error-catalog '(...)) structure
160164 if let Some ( cons) = value. as_cons ( ) {
Original file line number Diff line number Diff line change @@ -298,11 +298,11 @@ impl ThresholdConfig {
298298 }
299299}
300300
301- /// Check if a file is protected from bot deletion or modification.
301+ /// Return whether a target matches a protected basename, extension, or
302+ /// directory marker used to lower confidence for automated fixes.
302303///
303- /// Protected files include project state, documentation, and checkpoint files
304- /// that bots should NEVER delete or overwrite. These represent intentional
305- /// project work that cannot be regenerated from templates.
304+ /// Basenames are matched case-insensitively; extension and directory matches
305+ /// are case-sensitive.
306306fn is_protected_file ( target : & str ) -> bool {
307307 let basename = target. rsplit ( '/' ) . next ( ) . unwrap_or ( target) ;
308308
Original file line number Diff line number Diff line change @@ -639,6 +639,9 @@ impl CicdHyperAClient {
639639}
640640
641641/// Convert a verisimdb-data recipe JSON to a Rule.
642+ ///
643+ /// Returns `None` unless the recipe has a string `id` and either a string
644+ /// `file_glob` or `pattern`.
642645fn recipe_to_rule ( recipe : & serde_json:: Value ) -> Option < Rule > {
643646 let id = recipe. get ( "id" ) ?. as_str ( ) ?. to_string ( ) ;
644647 let name = recipe
You can’t perform that action at this time.
0 commit comments