If you live in Switzerland and have a B permit, you are not obliged to submit a tax return. Unless the gross income exceeds CHF 120,000, however, the situation must be considered individually, a calculation by your tax advisor will show your possible tax savings.
Anyone who holds a C permit (residence permit) must submit a tax return.