DEFAULT:
  # These formatting options will be used by default.
  # If you are modifying this, update tools/format.sh as well!
  options: "--style=otbs --attach-namespaces --attach-classes --indent=spaces=4 --convert-tabs --align-reference=name --keep-one-line-statements --pad-header --pad-oper --unpad-paren --max-continuation-indent=120"

# not_formatted_temporary:
#   # Formatting in these folder or files aren't checked yet.
#   # For each of these, decide whether it should be formatted or not.
#   # 1. If yes, format the code and remove the component from the exclude list.
#   #    Add special rules for upstream source files, if necessary.
#   #    To reformat the files:
#   #    - Remove the directory from this exclude list
#   #    - Run 'git add .astyle-rules.yml'
#   #    - Run 'pre-commit run --all-files'
#   # 2. If no, move it to 'not_formatted_permanent' section below.
#   check: false
#   include:

not_formatted_permanent:
  # Files which are not supposed to be formatted.
  # Typically, these are:
  # - Upstream source code we don't want to modify
  # - Generated files
  check: false
  include:
    - "components/audio/dac_audio/test/wave_1ch_16bits.c"
    - "components/audio/dac_audio/test/wave_1ch_8bits.c"
    - "components/audio/dac_audio/test/wave_2ch_16bits.c"
    - "components/audio/dac_audio/test/wave_2ch_8bits.c"
    - "components/audio/pwm_audio/test/wave_1ch_16bits.c"
    - "components/audio/pwm_audio/test/wave_1ch_8bits.c"
    - "components/audio/pwm_audio/test/wave_2ch_16bits.c"
    - "components/audio/pwm_audio/test/wave_2ch_8bits.c"
    - "components/bluetooth/ble_profiles/esp/ble_ota/proto-c/"
    - "components/bluetooth/ble_profiles/esp/ble_ota/python/"
    - "components/display/touch_panel/calibration/basic_painter/fonts/"
    - "components/gui/lvgl_gui/"
    - "components/usb/usb_stream/test_apps/main/wave_1ch_16bits.c"
    - "components/utilities/xz/"
    - "docs/_static/esp32s2_adc_range_to_3300.patch"
    - "docs/_static/esp32s2_adc_range_to_3300_v531.patch"
    - "docs/_static/esp32s3_adc_range_to_3300.patch"
    - "docs/_static/esp32s3_adc_range_to_3300_v531.patch"
    - "docs/doxygen-known-warnings.txt"
    - "docs/sphinx-known-warnings.txt"
    - "examples/hmi/lvgl_coffee/"
    - "examples/hmi/lvgl_example/"
    - "examples/hmi/lvgl_thermostat/"
    - "examples/hmi/lvgl_wificonfig/"
    - "examples/usb/device/usb_webcam/eyes_show/"
    - "examples/usb/host/usb_camera_lcd_display/components/esp_painter/font/"
    - "examples/usb/host/usb_camera_mic_spk/main/wave_1ch_16bits.c"

docs:
  # Docs directory contains some .inc files, which are not C include files
  # and should not be formatted
  check: false
  include:
    - "/docs/**/*.inc"
