Code Monkey home page Code Monkey logo

flow-annotation-check's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar greenkeeper[bot] avatar greenkeeperio-bot avatar julienw avatar ryan953 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

julienw cumulusds

flow-annotation-check's Issues

Example exclude is ambigous

Hey hi,

I tried to use your "-x" option, but it's very confusing for me.
The documentation present an array as default value, but to expect the same behaviour as default i tried may ways to make it works :

flow-annotation-check -x '+(node_modules|build|flow-typed)/**/*.js'
flow-annotation-check -x 'src/assets/js/**/*.js'
flow-annotation-check -x '+(node_modules|build|flow-typed)/**/*.js' -x 'src/assets/js/**/*.js'
flow-annotation-check -x '+(node_modules|build|flow-typed|src/assets/js)/**/*.js'
flow-annotation-check -x '+(node_modules|build|flow-typed)/**/*.js|+(src/assets/js)/**/*.js'

And anytime i tried to manage with this string, the exclude option is fully ignored.

The winner is :

flow-annotation-check -x '+(node_modules|build|flow-typed)/**/*.js' -x 'src/assets/js/**/*.js'

But it was very unexpected.

Enforce flow strict check

Hey guys,

Thanks for your module, it's very helpfull.
I wonder fi there is a way to enforce the check of "// @flow strict" on the beginning of each files, and exit with an error on the CLI when it's not the case ?

I'm not sure if the option exists yet, i cannot find.

Bye

An in-range update of flow-typed is breaking the build 🚨

Version 2.1.0 of flow-typed just got published.

Branch Build failing 🚨
Dependency flow-typed
Current Version 2.0.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As flow-typed is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ


Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details
Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Incorrectly returns `@flow` for files which have `// @flow` below a statement, but within first 10 comments

A case like this should not return @flow for the file:

import React, { Component } from 'react';
// @flow

We should test for statements above the first 10 comment blocks and invalidate those comments that occur later on.

Per: https://github.com/facebook/flow/blob/master/src/parsing/parsing_service_js.ml#L324-L327

It's still looking at the first 10 comments/tokens in the file: https://github.com/facebook/flow/blob/master/src/parsing/parsing_service_js.ml#L172

Output verbosity

Hi,

First of all: thanks for this great tool! We use it into our CI to check the presence/absence of the flow header on our code.

In our project it validate ~500 files and print the result on the output. This is a lot of output. When a file is invalid we have to scroll all this output to find witch files is not valid.

We were thinking about an options that only list errored files: --only-show-error, or --summary

What did you think about this?

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.