Hello, I don't know about any pragma, but you can deactivate the lint rule to only one method. You need to click on the "x" that is next to the name of the rule and then select the option that you prefer. This will create a Manifiesto class that contains the information of which rules to ban on to which context.
Cheers, Sebastian Jordan > De: "Eric Merritt" <e...@merritt.tech> > À: "pharo-users" <pharo-users@lists.pharo.org> > Envoyé: Mercredi 31 Août 2022 15:18:07 > Objet: [Pharo-users] Is there a pragma to disable a critic for a particular > method? > Hello Everyone, > While I take the critiques seriously, there are times when I will > intentionally > disregard a specific warning. In these cases, in other languages, I have found > it useful to indicate that I am disregarding a warning by adding a pragma to > disable that particular warning. I have been looking for similar functionality > in Pharo. I found an old (circa 2009) reference to <lint> and <ignoreLintRule> > pragmas, but those seem to no longer work. > Is there currently a way to disable a specific warning in a method? > Thank you, > Eric