You certainly have the right to disagree. I think however you're disagreeing with God, not me. God inspired James to write that Raʹhab the prostitute was declared righteous by works after she received the messengers hospitably and sent them out by another way at James 2:25. That means that although Rahab told the king of Jerʹi·cho solders a lie when they asked where the spies were God considered everything Rahab did righteous because of her faith.
I believe James 2:25 just fine. Rahab did send the soldier out another way and God declared her righteous by this work. But the Scriptures don’t say Rahab lied like you do. You can make an assumption she lied, but the text does not specifically say she lied. I was able to explain how Rahab’s words to the guards could have been true from a certain point of view, as well. It’s also possible that God did not regard her speech as typical lying but as an art of war tactic, as well. While I do consider it a possibility that Rahab could have lied, it just seems like a very unlikely possibility in my humble opinion. It would cast doubt on James 2:25 because God would be commending her for an action that was precipitated by a lie.