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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ysugimoto/falco #7353

Merged
merged 1 commit into from Oct 26, 2022

Conversation

ponkio-o
Copy link
Sponsor Contributor

@ponkio-o ponkio-o commented Oct 25, 2022

#7353 ysugimoto/falco: falco is a VCL parser and linter optimized for Fastly

$ aqua g -i ysugimoto/falco

How to confirm if this package works well

Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well.
Please confirm if this package works well yourself as much as possible.

Command and output

$ falco --help
=======================================
  falco: Fastly VCL parser / linter
=======================================
Usage:
    falco [subcommand] [main vcl file]

Subcommands:
    terraform : Run lint from terraform planned JSON
    lint      : Run lint (default)

Flags:
    -I, --include_path : Add include path
    -t, --transformer  : Specify transformer
    -h, --help         : Show this help
    -r, --remote       : Communicate with Fastly API
    -V, --version      : Display build version
    -v                 : Verbose warning lint result
    -vv                : Varbose all lint result
    -json              : Output statistics as JSON
    -stats             : Analyze VCL statistics

Simple Linting example:
    falco -I . -vv /path/to/vcl/main.vcl

Get statistics example:
    falco -I . -stats /path/to/vcl/main.vcl

Linting with terraform:
    terraform plan -out planned.out
    terraform show -json planned.out | falco -vv terraform

If files such as configuration file are needed, please share them.

$ falco -I . ./custom.vcl
馃敟 [ERROR] undefined variable "hoge"
...
馃敟 xx errors, 鉂楋笍 x warnings, 馃攬 xx infos.

Reference

[ysugimoto/falco](https://github.com/ysugimoto/falco): falco is a VCL parser and linter optimized for Fastly

```console
$ aqua g -i ysugimoto/falco
```

## How to confirm if this package works well

Reviewers aren't necessarily familiar with this package, so please describe how to confirm if this package works well.
Please confirm if this package works well yourself as much as possible.

Command and output

```console
$
```

If files such as configuration file are needed, please share them.

```
```

Reference

-
@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Oct 26, 2022
@suzuki-shunsuke suzuki-shunsuke added this to the v3.81.1 milestone Oct 26, 2022
@suzuki-shunsuke
Copy link
Member

Thanks!

@suzuki-shunsuke suzuki-shunsuke merged commit e50aaee into aquaproj:main Oct 26, 2022
@suzuki-shunsuke
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants