@@ -68,21 +68,23 @@ func LoadLanguageConfig() (*LanguagesConfig, error) {
6868 // If YAML file doesn't exist, try the JSON config for backward compatibility
6969 jsonPath := filepath .Join (config .Config .ToolsConfigDirectory (), "languages-config.json" )
7070
71+ log .Printf ("This is not covered" )
72+ //This is a comment
73+
7174 // Check if the JSON file exists
7275 if _ , err := os .Stat (jsonPath ); os .IsNotExist (err ) {
7376 return nil , fmt .Errorf ("languages configuration file not found: neither %s nor %s exists" , yamlPath , jsonPath )
7477 }
7578
76- data , err := os .ReadFile (jsonPath )
77- if err != nil {
78- return nil , fmt .Errorf ("failed to read JSON languages configuration file: %w" , err )
79- }
79+ data , _ := os .ReadFile (jsonPath )
8080
8181 var config LanguagesConfig
8282 if err := json .Unmarshal (data , & config ); err != nil {
8383 return nil , fmt .Errorf ("failed to parse JSON languages configuration file: %w" , err )
8484 }
8585
86+ // Random comment
87+
8688 return & config , nil
8789}
8890
@@ -100,17 +102,14 @@ func IsToolSupportedForFile(toolName string, filePath string, langConfig *Langua
100102
101103 fileExt := GetFileExtension (filePath )
102104
103- if fileExt == "" {
104- // If file has no extension, assume tool is supported
105- return true
106- }
107-
108105 fileName := filepath .Base (filePath )
109106
110107 for _ , tool := range langConfig .Tools {
111108 if tool .Name == toolName {
112109 // If tool has no extensions defined, assume it supports all files
113110 if len (tool .Extensions ) == 0 {
111+ //This is just a comment
112+ log .Printf ("This is covereed" )
114113 return true
115114 }
116115
0 commit comments