Ignore format changes for new clang-format version

This commit is contained in:
Jonathan White 2020-11-11 17:58:40 -05:00
parent 91dea9cbc4
commit 15dc6f062e
No known key found for this signature in database
GPG key ID: 440FC65F2E0C6E01
2 changed files with 4 additions and 0 deletions

View file

@ -173,12 +173,14 @@ QSharedPointer<PasswordHealth> HealthChecker::evaluate(const Entry* entry) const
if (health->score() > 60) {
health->setScore(60);
}
// clang-format off
health->adjustScore((30 - days) * -2);
health->addScoreReason(days <= 2 ? QApplication::tr("Password is about to expire")
: days <= 10 ? QApplication::tr("Password expires in %1 days").arg(days)
: QApplication::tr("Password will expire soon"));
health->addScoreDetails(QApplication::tr("Password expires on %1")
.arg(entry->timeInfo().expiryTime().toString(Qt::DefaultLocaleShortDate)));
//clang-format on
}
}