@@ -804,8 +804,6 @@ package body Gnatcheck.Rules.Rule_Table is
804804
805805 procedure Process_LKQL_Rule_File (LKQL_RF_Name : String)
806806 is
807- Rule_File_Absolute_Path : constant String :=
808- Get_Rule_File_Name (LKQL_RF_Name);
809807 JSON_Config_File_Name : constant String :=
810808 Global_Report_Dir.all & " gnatcheck-rules.json.out" ;
811809 Parser_Pid : Process_Id;
@@ -823,12 +821,12 @@ package body Gnatcheck.Rules.Rule_Table is
823821 Instance_Object : JSON_Value) is
824822 begin
825823 Process_Rule_Object
826- (Rule_File_Absolute_Path , String (Instance_Id), Instance_Object);
824+ (LKQL_RF_Name , String (Instance_Id), Instance_Object);
827825 end Rule_Object_Mapper ;
828826
829827 begin
830828 -- Ensure that the provided rule file exists
831- if not Is_Regular_File (Rule_File_Absolute_Path ) then
829+ if not Is_Regular_File (LKQL_RF_Name ) then
832830 Error (" can not locate LKQL rule file " & LKQL_RF_Name);
833831 Missing_Rule_File_Detected := True;
834832 return ;
@@ -837,7 +835,7 @@ package body Gnatcheck.Rules.Rule_Table is
837835 -- Call the LKQL rule config file parser and parse its result
838836 Parser_Pid :=
839837 Spawn_LKQL_Rule_File_Parser
840- (Rule_File_Absolute_Path , JSON_Config_File_Name);
838+ (LKQL_RF_Name , JSON_Config_File_Name);
841839 Wait_Process (Waited_Pid, Success);
842840
843841 if Parser_Pid /= Waited_Pid or else not Success then
0 commit comments