(2) If a person arrested without a warrant is brought before a magistrate, a complaint shall be filed forthwith in accordance with the requirements of rules of the supreme court of appeals.
(3) An officer executing a warrant shall make return thereof to the magistrate before whom the defendant is brought.
(b)(1) Notwithstanding any other provision of this code to the contrary, if a person arrested without a warrant is brought before a magistrate prior to the filing of a complaint, a complaint shall be filed forthwith in accordance with the requirements of rules of the supreme court of appeals, and the issuance of a warrant or a summons to appear is not required.
(2) When a person appears initially before a magistrate either in response to a summons or pursuant to an arrest with or without a warrant, the magistrate shall proceed in accordance with the requirements of the applicable provisions of the rules of the supreme court of appeals.