Test case code should be a static string literal.
✅ This rule is included in the flint logical presets.
Test case code values should be static string literals ('', "", or ` `).
Dynamically generating test cases with variables, function calls, template interpolations, or spreads can make individual test cases harder to tweak, encourage catch-all tests, and make the tests difficult to statically analyze.
AEconsB0coAE <= sp ansty="le--0:#D9F5DD;--1:#1111">1= sp><1"sp ansty="le--0:#ECC48D;--1:#984E">41"sp>1<1"sp ansty="le--0:#D6DEEB;--1:#403F">51"sp><3;d ivclassNa="meec-li">53ruleTestAB0descri53(rule,3;d>< {d ivclassNa="meec-li">53< sp ansty="le--0:#D6DEEB;--1:#403F">53valid: [code sp> {d><],d ivclassNa="meec-li">53< sp ansty="le--0:#D6DEEB;--1:#403F">53invalid: [ sp>],d><],d ivclassNa="meec-li">53}],d><);d ivclassNa="meco"><);d>);d>);d>53ruleTestAB0descri53(rule,< {d ivclassNa="meec-li">53< sp ansty="le--0:#D6DEEB;--1:#403F">53valid: [{ code sp><: sp ansty="le--0:#82AAFF;--1:#3B61">B0getCo53() } {d><],d ivclassNa="meec-li">53< sp ansty="le--0:#D6DEEB;--1:#403F">53invalid: [ sp>],d><],d ivclassNa="meec-li">53}],d><);d ivclassNa="meco"><);d>);d>);d>53ruleTestAB0descri53(rule,< {d ivclassNa="meec-li">53< sp ansty="le--0:#D6DEEB;--1:#403F">53valid: [{ code sp><: sp ansty="le--0:#D6DEEB;--1:#403F">5<3`sp ansty="le--0:#ECC48D;--1:#3B61">B3`sp><0asp ansty="le--0:#E2817F;--1:#B238">340asp><${sp ansty="le--0:#D6DEEB;--1:#403F">5${sp><3bsp ansty="le--0:#E2817F;--1:#B238">33bsp><4}sp ansty="le--0:#D6DEEB;--1:#403F">54}sp><3`sp ansty="le--0:#D6DEEB;--1:#403F">53 }3`sp> {d><],d ivclassNa="meec-li">53< sp ansty="le--0:#D6DEEB;--1:#403F">53invalid: [ sp>],d><],d ivclassNa="meec-li">53}],d><);d ivclassNa="meco"><);d>);d>);d>53ruleTestAB0descri53(rule,< {d ivclassNa="meec-li">53< sp ansty="le--0:#D6DEEB;--1:#403F">53valid: [ sp><{ sp ansty="le--0:#7FDBCA;--1:#096E">72.{ sp><..sp ansty="le--0:#D6DEEB;--1:#403F">53baseCase } {d><],d ivclassNa="meec-li">53< sp ansty="le--0:#D6DEEB;--1:#403F">53invalid: [ sp>],d><],d ivclassNa="meec-li">53}],d><);d ivclassNa="meco"><);d>);d>);d> 3F53ruleTe4<4AE. spans="tyle--0:#82AAFF;--1:#3B">61B0desc4AE.>3F53(rul3F<53 spans="tyle--0:#D6DEEB;--1:#40">3F53vali53 >1<111" spans="tyle--0:#ECC48D;--1:#98">4111">1<111" spans="tyle--0:#D6DEEB;--1:#40">3F111"><53, spans="tyle--0:#D9F5DD;--1:#11">153, ><111" spans="tyle--0:#ECC48D;--1:#98">4111">1<111" spans="tyle--0:#D6DEEB;--1:#40">3F111"><53, spans="tyle--0:#D6DEEB;--1:#40">353, >6<1B0c spans="tyle--0:#D6DEEB;--1:#40">31B0c>3F<53] ,divclass="Nameec-">3F<53 spans="tyle--0:#D6DEEB;--1:#40">3F53invalid:53 >53]>< [] ,divclass="Nameec-">3F5 []><3}) ;divclass="Name"><})>})>3})>
This rule is not configurable.