LogoLogo
English
English
  • Model Relations
    • Belongs To / Has Many
    • Has One
    • Many To Many (through Pivot / Junction)
  • Defining Enums
  • Pre/Post generate scripts (eg: for Code formatter)
Powered by GitBook
On this page

Pre/Post generate scripts (eg: for Code formatter)

PreviousDefining Enums

Last updated 1 year ago

If your project uses code formatters like or . You can define the following snippet for ensuring the EzQL generated code follows your project's rules (this can format only "auto-correctable" code style issues).

scripts:
  # Shell commands will be executed "before" generating.
  # pre:
  
  # Shell commands will be executed "after" generating.
  post: rubocop -a
# You can also use multi line text.
# post: |
#   rubocop -a
rubocop
standard