@@ -290,33 +290,31 @@ class DocMetadata:
290290}
291291
292292SONAR_CODEMOD_NAMES = [
293- "numpy-nan-equality-S6725 " ,
294- "literal-or-new-object-identity-S5796 " ,
295- "django-receiver-on-top-S6552 " ,
296- "exception-without-raise-S3984 " ,
297- "fix-assert-tuple-S5905 " ,
298- "remove-assertion-in-pytest-raises-S5915 " ,
299- "flask-json-response-type-S5131 " ,
300- "django-json-response-type-S5131 " ,
301- "jwt-decode-verify-S5659 " ,
302- "fix-missing-self-or-cls-S5719 " ,
303- "secure-tempfile-S5445 " ,
304- "secure-random-S2245 " ,
305- "enable-jinja2-autoescape-S5247 " ,
306- "url-sandbox-S5144 " ,
307- "fix-float-equality-S1244 " ,
308- "fix-math-isclose-S6727 " ,
309- "sql-parameterization-S3649 " ,
310- "django-model-without-dunder-str-S6554 " ,
311- "break-or-continue-out-of-loop-S1716 " ,
312- "disable-graphql-introspection-S6786 " ,
293+ "numpy-nan-equality" ,
294+ "literal-or-new-object-identity" ,
295+ "django-receiver-on-top" ,
296+ "exception-without-raise" ,
297+ "fix-assert-tuple" ,
298+ "remove-assertion-in-pytest-raises" ,
299+ "flask-json-response-type" ,
300+ "django-json-response-type" ,
301+ "jwt-decode-verify" ,
302+ "fix-missing-self-or-cls" ,
303+ "secure-tempfile" ,
304+ "secure-random" ,
305+ "enable-jinja2-autoescape" ,
306+ "url-sandbox" ,
307+ "fix-float-equality" ,
308+ "fix-math-isclose" ,
309+ "sql-parameterization" ,
310+ "django-model-without-dunder-str" ,
311+ "break-or-continue-out-of-loop" ,
312+ "disable-graphql-introspection" ,
313313]
314314SONAR_CODEMODS = {
315315 name : DocMetadata (
316- importance = CORE_CODEMODS [
317- core_codemod_name := "-" .join (name .split ("-" )[:- 1 ])
318- ].importance ,
319- guidance_explained = CORE_CODEMODS [core_codemod_name ].guidance_explained ,
316+ importance = CORE_CODEMODS [name ].importance ,
317+ guidance_explained = CORE_CODEMODS [name ].guidance_explained ,
320318 need_sarif = "Yes (Sonar)" ,
321319 )
322320 for name in SONAR_CODEMOD_NAMES
0 commit comments