Giter Site home page Giter Site logo

Comments (5)

felix-barz-brickmakers avatar felix-barz-brickmakers commented on August 22, 2024

An idea would be use use a "hook_options.yaml"

from dart_pre_commit.

rohankandwal avatar rohankandwal commented on August 22, 2024

This is a blocker for me, currently using mason bricks. The analyzer is stuck on those files, I have added these folders to analysis_options.yaml but it still analyze and fails.

from dart_pre_commit.

Skycoder42 avatar Skycoder42 commented on August 22, 2024

Which step specifically is it stuck on? If the dart analyzer itself is stuck, there is nothing I can do with this package, as it will always run the analyzer on the whole project. Ignoring files here would only filter out the results.

from dart_pre_commit.

rohankandwal avatar rohankandwal commented on August 22, 2024

@Skycoder42 It will give error on any mason file since ofcourse they won't be proper. Is there a way to allow for ignoring certain folder, packages or files?

from dart_pre_commit.

Skycoder42 avatar Skycoder42 commented on August 22, 2024

Well, again, it depends on what step it fails for. Is it the analyzer? The formatter? You cannot exclude files completely, but you can configure the tools that dart_pre_commit invokes.

For example, if it's an analyzer problem, you can simply add the broken files to the exclude section of the analysis_options.yaml. If it is the formatter, you are out of luck. However, you could simply disable the formatter completely with dart_pre_commit by adding the following to the pubspec:

dart_pre_commit:
  format: false

See https://github.com/Skycoder42/dart_pre_commit?tab=readme-ov-file#configuration for more

from dart_pre_commit.

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.