Fix review issues: error handling, stdin TTY hint, narrow exceptions - Handle UnicodeDecodeError and PermissionError for file reading - Show hint when stdin is a TTY and no file given - Narrow JSON fallback exception from Exception to (SyntaxError, ValueError) - Rename 'type' parameter to 'file_type' to avoid shadowing builtin - Remove dead '.R' entry from EXTENSION_MAP
This commit is contained in:
@@ -40,7 +40,6 @@ EXTENSION_MAP: dict[str, str] = {
|
||||
".swift": "swift",
|
||||
".kt": "kotlin",
|
||||
".r": "r",
|
||||
".R": "r",
|
||||
".lua": "lua",
|
||||
".dockerfile": "docker",
|
||||
".ini": "ini",
|
||||
|
||||
Reference in New Issue
Block a user