Although referred to broadly as an affidavit, the actual charges, whether criminal or civil, are part of a complaint.
Meanwhile, the affidavit encompasses the information provided for background, such as the complainant's relationship to the party being charged or sued and the facts that led up to the charges being filed.
No matter what terminology applies, the article is correct. Someone swearing out an affidavit must be 100% certain the facts are accurate before signing the document.
If it is found that false allegations are made or if the complainant changes their story in the case of a court proceeding, the case will most likely be thrown out and the complainant charged with perjury.