GithubHelp home page GithubHelp logo

charlescyt / pyramid_lint Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 2.0 13.8 MB

Linting tool for Dart and Flutter projects.

Home Page: https://pub.dev/packages/pyramid_lint

License: MIT License

Dart 100.00%
dart flutter lint

pyramid_lint's People

Contributors

charlescyt avatar imsamgarg avatar parlough avatar

Watchers

 avatar

pyramid_lint's Issues

Swap if and else expression showing up everywhere in the condition block

Is there an existing issue for this bug?

Bug Description

With the current implementation, this assist shows up everywhere in the condition block, You can see this in the screenshot below.

if_else

It should not be visible in the if-else block but only on the if-else keywords, condition expression, or the whole line.

Steps to Reproduce

Use any if-else condition.

Additional Information

No response

avoid_returning_widgets lint showing up for all the methods that return a widget

Is there an existing issue for this bug?

Bug Description

avoid_returning_widgets lint showing up for all the methods that return a widget. It should be restricted to the methods only in the StatelessWidgets and State classes. We can also hide it for methods that are overridden.

Following are the examples of the false lint warning in a InhertedWidget class and a PageTransitionBuilder class.

Screenshot from 2024-01-16 16-03-51
Screenshot from 2024-01-16 16-57-29

Steps to Reproduce

Just declare any method that returns a widget.

Additional Information

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.