Skip to content

Pre-commit hook to check the fvm installation and running useful hooks (analyze, format...)

License

Notifications You must be signed in to change notification settings

motrieux-thomas/fvm-pre-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fvm-pre-commit

Pre-commit hook to check the fvm installation and running useful hooks (analyze, format...)

This repo contain three pre-commit hooks.

Check fvm

The first hook check if fvm is installed and ready to be used.

- repo: https://github.com/motrieux-thomas/fvm-pre-commit
  rev: "main"
  hooks:
    - id: check-fvm

Code analyzing using fvm (fvm flutter analyze)

Add the following in your .pre-commit config file.

- repo: https://github.com/motrieux-thomas/fvm-pre-commit
  rev: "main"
  hooks:
    - id: fvm-analyze
      args: [lib/*, test/*]

Code formatting using fvm (fvm dart format)

Add the following in your .pre-commit config file.

- repo: https://github.com/motrieux-thomas/fvm-pre-commit
  rev: "main"
  hooks:
    - id: fvm-format
      args: [lib/*, test/*]

About

Pre-commit hook to check the fvm installation and running useful hooks (analyze, format...)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages