openrewrite / rewrite-static-analysis

OpenRewrite recipes for identifying and fixing static analysis issues.
Apache License 2.0
32 stars 54 forks source link

Rule: S2325 Methods that don't access instance data should be static #79

Open yeikel opened 2 years ago

yeikel commented 2 years ago

See https://jira.sonarsource.com/browse/SONARJAVA-1018

pway99 commented 2 years ago

Thanks @yeikel

mccartney commented 2 years ago

Should this be labeled as uses-data-flow?

pway99 commented 2 years ago

data-flow should not be necessary for this one, the spec is specific for non-overridable methods that don’t access instance data.