Provide users with replacements for deprecated/invalid functionality where applicable (#17604)
This commit is contained in:
		
							parent
							
								
									0ff8c4f6fd
								
							
						
					
					
						commit
						37345e2ace
					
				
					 3 changed files with 23 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -9,6 +9,7 @@
 | 
			
		|||
    # warn_duplicate: Default `true`. Set to `false` to turn off warning when a value exists in both places
 | 
			
		||||
    # deprecated: Default `false`. Set to `true` to turn on warning when a value exists
 | 
			
		||||
    # invalid: Default `false`. Set to `true` to generate errors when a value exists
 | 
			
		||||
    # replace_with: use with a key marked deprecated or invalid to designate a replacement
 | 
			
		||||
    "AUDIO_VOICES": {"info_key": "audio.voices", "value_type": "bool"},
 | 
			
		||||
    "BACKLIGHT_BREATHING": {"info_key": "backlight.breathing", "value_type": "bool"},
 | 
			
		||||
    "BREATHING_PERIOD": {"info_key": "backlight.breathing_period", "value_type": "int"},
 | 
			
		||||
| 
						 | 
				
			
			@ -108,6 +109,6 @@
 | 
			
		|||
    "NO_ACTION_MACRO": {"info_key": "_invalid.no_action_macro", "invalid": true},
 | 
			
		||||
    "NO_ACTION_FUNCTION": {"info_key": "_invalid.no_action_function", "invalid": true},
 | 
			
		||||
    "DESCRIPTION": {"info_key": "_invalid.usb_description", "invalid": true},
 | 
			
		||||
    "DEBOUNCING_DELAY": {"info_key": "_invalid.debouncing_delay", "invalid": true},
 | 
			
		||||
    "DEBOUNCING_DELAY": {"info_key": "_invalid.debouncing_delay", "invalid": true, replace_with: "DEBOUNCE"},
 | 
			
		||||
    "PREVENT_STUCK_MODIFIERS": {"info_key": "_invalid.prevent_stuck_mods", "invalid": true},
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -9,6 +9,7 @@
 | 
			
		|||
    # warn_duplicate: Default `true`. Set to `false` to turn off warning when a value exists in both places
 | 
			
		||||
    # deprecated: Default `false`. Set to `true` to turn on warning when a value exists
 | 
			
		||||
    # invalid: Default `false`. Set to `true` to generate errors when a value exists
 | 
			
		||||
    # replace_with: use with a key marked deprecated or invalid to designate a replacement
 | 
			
		||||
    "BOARD": {"info_key": "board"},
 | 
			
		||||
    "BOOTLOADER": {"info_key": "bootloader", "warn_duplicate": false},
 | 
			
		||||
    "BLUETOOTH": {"info_key": "bluetooth.driver"},
 | 
			
		||||
| 
						 | 
				
			
			@ -29,7 +30,7 @@
 | 
			
		|||
    "WAIT_FOR_USB": {"info_key": "usb.wait_for", "value_type": "bool"},
 | 
			
		||||
 | 
			
		||||
    # Items we want flagged in lint
 | 
			
		||||
    "CTPC": {"info_key": "_deprecated.ctpc", "deprecated": true},
 | 
			
		||||
    "CONVERT_TO_PROTON_C": {"info_key": "_deprecated.ctpc", "deprecated": true},
 | 
			
		||||
    "CTPC": {"info_key": "_deprecated.ctpc", "deprecated": true, "replace_with": "CONVERT_TO=proton_c"},
 | 
			
		||||
    "CONVERT_TO_PROTON_C": {"info_key": "_deprecated.ctpc", "deprecated": true, "replace_with": "CONVERT_TO=proton_c"},
 | 
			
		||||
    "VIAL_ENABLE": {"info_key": "_invalid.vial", "invalid": true},
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue