Giter VIP home page Giter VIP logo

Comments (8)

cfregin avatar cfregin commented on May 24, 2024 2

Ok, but the linter errors still exists. I could use super_enum now only by moving all enums to an extra folder where I can override the linter rules.
In this Github Repository I added linter tests for lint, package lint, effective dart and pedantic. All of them are failing. It would be nice, if you could add an
// ignore_for_file: return_of_invalid_type,constant_identifier_names, prefer_const_constructors_in_immutables, unnecessary_this, sort_unnamed_constructors_first, join_return_with_assignment
or fix the warnings.

from super_enum.

xsahil03x avatar xsahil03x commented on May 24, 2024 1

Okay, I'll soon look into this and fix this in the next release.

from super_enum.

xsahil03x avatar xsahil03x commented on May 24, 2024

@cfregin can you please mention the super_enum_generator version you are using? Try upgrading to the latest v0.5.0.

from super_enum.

cfregin avatar cfregin commented on May 24, 2024

I am using super_enum_generator: ^0.5.0

dev_dependencies:
  lint: ^1.1.1

analysis_options.yaml
include: package:lint/analysis_options.yaml

from super_enum.

xsahil03x avatar xsahil03x commented on May 24, 2024

This shouldn't be a problem as we are following effective dart guidelines.
https://dart.dev/guides/language/effective-dart/design#avoid-using-futureort-as-a-return-type

from super_enum.

klisiewicz avatar klisiewicz commented on May 24, 2024

I'm facing the same issue. The lintner shows a bunch of errors in generated files.

from super_enum.

xsahil03x avatar xsahil03x commented on May 24, 2024

@cfregin, @klisiewicz I need to change the whole part builder in order to add ignore rules in file headers, If this is urgent, you can create a build.yaml file in your local project and add these lines for autogenerating it.

For example https://github.com/dart-lang/source_gen/blob/master/example_usage/build.yaml

targets:
  $default:
    builders:
      source_gen|combining_builder:
        options:
          ignore_for_file:
            - return_of_invalid_type
            - constant_identifier_names
            - prefer_const_constructors_in_immutables
            - unnecessary_this
            - sort_unnamed_constructors_first
            - join_return_with_assignment

from super_enum.

xsahil03x avatar xsahil03x commented on May 24, 2024

Fixed in #59

from super_enum.

Related Issues (20)

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.