Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[linter proposal] member function can be static #59571

Open
stephane-archer opened this issue Nov 20, 2024 · 0 comments
Open

[linter proposal] member function can be static #59571

stephane-archer opened this issue Nov 20, 2024 · 0 comments
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. linter-lint-request P3 A lower priority bug or feature request

Comments

@stephane-archer
Copy link

stephane-archer commented Nov 20, 2024

class foo {
    String hello = "Hello World";
    ....
    void _bar(string s) {
        print(s)
    }
}

_bar does not use any member function so it can be static so it can be used by static and non-static function

@stephane-archer stephane-archer added the area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. label Nov 20, 2024
@pq pq added linter-lint-request P3 A lower priority bug or feature request labels Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. linter-lint-request P3 A lower priority bug or feature request
Projects
None yet
Development

No branches or pull requests

2 participants