mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-03 05:10:16 +03:00
33 lines
798 B
Java
33 lines
798 B
Java
package fixtures;
|
|||
|
|
|
||
|
|
class Allow {
|
||
|
|
|
||
|
|
void keptOnPurpose() {
|
||
|
|
// comment-lint-allow: CMT002
|
||
|
|
// ---------- kept on purpose, this fixture proves the escape hatch ----------
|
||
|
|
run();
|
||
|
|
}
|
||
|
|
|
||
|
|
void unknownToken(Session session) {
|
||
|
|
// comment-lint-allow: FAKE_RULE
|
||
|
|
session.close();
|
||
|
|
}
|
||
|
|
|
||
|
|
void looksLikeARuleButIsNot(Session session) {
|
||
|
|
// comment-lint-allow: CMT999
|
||
|
|
session.close();
|
||
|
|
}
|
||
|
|
|
||
|
|
void allowedButNothingFires(Session session) {
|
||
|
|
// comment-lint-allow: CMT001
|
||
|
|
// Closed once the signing round trip has settled, not before.
|
||
|
|
session.close();
|
||
|
|
}
|
||
|
|
|
||
|
|
void directiveMustNotHideOtherRules(Registry registry) {
|
||
|
|
// comment-lint-allow: CMT002
|
||
|
|
// Clear the registry
|
||
|
|
registry.clear();
|
||
|
|
}
|
||
|
|
}
|