Will filing bankruptcy affect my immigration status

So good news, filing bankruptcy will not affect immigration status, green card or the ability to apply for US Citizenship. The only way it could possibly affect these processes, is if it is found later that you had lied in your bankruptcy case under oath, or left out information in the bankruptcy petition,