diff --git a/.github/workflows/check-code-formatting.yml b/.github/workflows/check-code-formatting.yml deleted file mode 100644 index 49cdb15a..00000000 --- a/.github/workflows/check-code-formatting.yml +++ /dev/null @@ -1,111 +0,0 @@ -name: Check code formatting - -on: - pull_request: - paths: - - ".github/workflows/check-code-formatting.yml" - - "megaavr/bootloaders/**" - - "megaavr/cores/**" - - "megaavr/libraries/**" - - "megaavr/variants/**" - push: - paths: - - ".github/workflows/check-code-formatting.yml" - - "megaavr/bootloaders/**" - - "megaavr/cores/**" - - "megaavr/libraries/**" - - "megaavr/variants/**" - # workflow_dispatch event allows the workflow to be triggered manually - # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch - workflow_dispatch: - # repository_dispatch event allows the workflow to be triggered via the GitHub API - # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#repository_dispatch - repository_dispatch: - -env: - OPTIONS_FILE_PATH: megaavr/extras/ci/arduino-code-style.conf - NAME_PATTERNS: | - - '*.ino' - - '*.h' - - '*.hpp' - - '*.hh' - - '*.hxx' - - '*.h++' - - '*.cpp' - - '*.cc' - - '*.cxx' - - '*.c++' - - '*.cp' - - '*.c' - - '*.ipp' - - '*.ii' - - '*.ixx' - - '*.inl' - - '*.tpp' - - '*.txx' - - '*.tpl' - -jobs: - bootloaders: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Check code formatting - uses: per1234/artistic-style-action@main - with: - options-file-path: ${{ env.OPTIONS_FILE_PATH }} - name-patterns: | - ${{ env.NAME_PATTERNS }} - target-paths: | - - megaavr/bootloaders - - cores: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Check code formatting - uses: per1234/artistic-style-action@main - with: - options-file-path: ${{ env.OPTIONS_FILE_PATH }} - name-patterns: | - ${{ env.NAME_PATTERNS }} - target-paths: | - - megaavr/cores - - libraries: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Check code formatting - uses: per1234/artistic-style-action@main - with: - options-file-path: ${{ env.OPTIONS_FILE_PATH }} - name-patterns: | - ${{ env.NAME_PATTERNS }} - target-paths: | - - megaavr/libraries - - variants: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Check code formatting - uses: per1234/artistic-style-action@main - with: - options-file-path: ${{ env.OPTIONS_FILE_PATH }} - name-patterns: | - ${{ env.NAME_PATTERNS }} - target-paths: | - - megaavr/variants diff --git a/.github/workflows/check-keywords-txt.yml b/.github/workflows/check-keywords-txt.yml deleted file mode 100644 index 0a91489a..00000000 --- a/.github/workflows/check-keywords-txt.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Check keywords.txt - -on: - pull_request: - paths: - - ".github/workflows/check-keywords-txt.yml" - - "megaavr/libraries/**" - push: - paths: - - ".github/workflows/check-keywords-txt.yml" - - "megaavr/libraries/**" - # workflow_dispatch event allows the workflow to be triggered manually - # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch - workflow_dispatch: - # repository_dispatch event allows the workflow to be triggered via the GitHub API - # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#repository_dispatch - repository_dispatch: - -jobs: - check-keywords-txt: - runs-on: ubuntu-latest - - env: - ARDUINO_CI_SCRIPT_FOLDER_PATH: extras/ci/tools/arduino-ci-script - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Install arduino-ci-script - uses: per1234/install-arduino-ci-script-action@main - with: - installation-path: ${{ env.ARDUINO_CI_SCRIPT_FOLDER_PATH }} - - - name: Check keywords.txt - run: | - source "${{ env.ARDUINO_CI_SCRIPT_FOLDER_PATH }}/arduino-ci-script.sh" - # https://github.com/per1234/arduino-ci-script#check_keywords_txt-searchpath-maximumsearchdepth - check_keywords_txt "${GITHUB_WORKSPACE}/megaavr/libraries" 1 diff --git a/.github/workflows/check-library-properties.yml b/.github/workflows/check-library-properties.yml deleted file mode 100644 index d3e47a37..00000000 --- a/.github/workflows/check-library-properties.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Check library.properties - -on: - pull_request: - paths: - - ".github/workflows/check-library-properties.yml" - - "megaavr/libraries/**" - push: - paths: - - ".github/workflows/check-library-properties.yml" - - "megaavr/libraries/**" - # workflow_dispatch event allows the workflow to be triggered manually - # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch - workflow_dispatch: - # repository_dispatch event allows the workflow to be triggered via the GitHub API - # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#repository_dispatch - repository_dispatch: - -jobs: - check-library-properties: - runs-on: ubuntu-latest - - env: - ARDUINO_CI_SCRIPT_FOLDER_PATH: extras/ci/tools/arduino-ci-script - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Install arduino-ci-script - uses: per1234/install-arduino-ci-script-action@main - with: - installation-path: ${{ env.ARDUINO_CI_SCRIPT_FOLDER_PATH }} - - - name: Check library.properties - run: | - source "${{ env.ARDUINO_CI_SCRIPT_FOLDER_PATH }}/arduino-ci-script.sh" - # https://github.com/per1234/arduino-ci-script#check_library_properties-searchpath-maximumsearchdepth - check_library_properties "${GITHUB_WORKSPACE}/megaavr/libraries" 1 diff --git a/.github/workflows/check-library-structure.yml b/.github/workflows/check-library-structure.yml deleted file mode 100644 index 9f83d0e2..00000000 --- a/.github/workflows/check-library-structure.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Check library structure - -on: - pull_request: - paths: - - ".github/workflows/check-library-structure.yml" - - "megaavr/libraries/**" - push: - paths: - - ".github/workflows/check-library-structure.yml" - - "megaavr/libraries/**" - # workflow_dispatch event allows the workflow to be triggered manually - # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch - workflow_dispatch: - # repository_dispatch event allows the workflow to be triggered via the GitHub API - # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#repository_dispatch - repository_dispatch: - -jobs: - check-library-structure: - runs-on: ubuntu-latest - - env: - ARDUINO_CI_SCRIPT_FOLDER_PATH: extras/ci/tools/arduino-ci-script - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Install arduino-ci-script - uses: per1234/install-arduino-ci-script-action@main - with: - installation-path: ${{ env.ARDUINO_CI_SCRIPT_FOLDER_PATH }} - - - name: Check library structure - run: | - source "${{ env.ARDUINO_CI_SCRIPT_FOLDER_PATH }}/arduino-ci-script.sh" - # https://github.com/per1234/arduino-ci-script#check_library_structure-basepath-depth - check_library_structure "${GITHUB_WORKSPACE}/megaavr/libraries" 1 diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml deleted file mode 100644 index 2d6b170e..00000000 --- a/.github/workflows/compile-examples.yml +++ /dev/null @@ -1,198 +0,0 @@ -name: Compile Examples - -on: - pull_request: - paths: - - ".github/workflows/compile-examples.yml" - - "megaavr/libraries/**" - - "megaavr/cores/**" - - "megaavr/variants/**" - push: - paths: - - ".github/workflows/compile-examples.yml" - - "megaavr/libraries/**" - - "megaavr/cores/**" - - "megaavr/variants/**" - # workflow_dispatch event allows the workflow to be triggered manually - # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch - workflow_dispatch: - # repository_dispatch event allows the workflow to be triggered via the GitHub API - # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#repository_dispatch - repository_dispatch: - -jobs: - compile-examples: - runs-on: ubuntu-latest - - env: - platform-name: megaTinyCore:megaavr - - available-flash-7_5kB-plus-true-sketch-paths: | - - megaavr/libraries/EEPROM/examples/eeprom_get - - megaavr/libraries/SPI/examples/BarometricPressureSensor - - megaavr/libraries/SoftwareSerial/examples/TwoPortReceive - - megaavr/libraries/Wire/examples/SFRRanger_reader - - megaavr/libraries/tinyNeoPixel/examples/RGBWstrandtest - available-flash-4kB-plus-true-sketch-paths: | - - megaavr/libraries/SoftwareSerial/examples/SoftwareSerialExample - - megaavr/libraries/Wire/examples/master_reader - available-flash-3_5kB-plus-true-sketch-paths: | - - megaavr/libraries/EEPROM/examples/eeprom_crc - - megaavr/libraries/EEPROM/examples/eeprom_put - - megaavr/libraries/EEPROM/examples/eeprom_read - - megaavr/libraries/Servo/examples/Knob - - megaavr/libraries/Servo/examples/ServoMaxTest - - megaavr/libraries/Servo/examples/Sweep - - megaavr/libraries/Servo_megaTinyCore/examples/Knob - - megaavr/libraries/Servo_megaTinyCore/examples/ServoMaxTest - - megaavr/libraries/Servo_megaTinyCore/examples/Sweep - - megaavr/libraries/Wire/examples/digital_potentiometer - - megaavr/libraries/Wire/examples/master_writer - - megaavr/libraries/Wire/examples/slave_receiver - - megaavr/libraries/megaTinyCore/examples/ModernRevSer - - megaavr/libraries/megaTinyCore/examples/readTempVcc - - megaavr/libraries/tinyNeoPixel/examples/buttoncycler - - megaavr/libraries/tinyNeoPixel/examples/simple - - megaavr/libraries/tinyNeoPixel/examples/strandtest - - megaavr/libraries/tinyNeoPixel_Static/examples/buttoncycler - - megaavr/libraries/tinyNeoPixel_Static/examples/strandtest - available-flash-2kB-plus-true-sketch-paths: | - - megaavr/libraries/Wire/examples/slave_sender - available-flash-1_5kB-plus-true-sketch-paths: | - - megaavr/libraries/EEPROM/examples/eeprom_clear - - megaavr/libraries/EEPROM/examples/eeprom_iteration - - megaavr/libraries/EEPROM/examples/eeprom_update - - megaavr/libraries/EEPROM/examples/eeprom_write - - megaavr/libraries/Logic/examples/Interrupt - - megaavr/libraries/Logic/examples/Three_input_AND - - megaavr/libraries/Logic/examples/Three_input_NAND - - megaavr/libraries/Logic/examples/Three_input_OR - - megaavr/libraries/Logic/examples/Two_input_AND - - megaavr/libraries/Logic/examples/Two_input_NAND - - megaavr/libraries/Logic/examples/Two_input_OR - - megaavr/libraries/SPI/examples/DigitalPotControl - - megaavr/libraries/megaTinyCore/examples/TCA0Demo - - megaavr/libraries/megaTinyCore/examples/TCA0Demo2 - - megaavr/libraries/megaTinyCore/examples/TCA0Demo4 - - megaavr/libraries/tinyNeoPixel_Static/examples/simple - - IO-class-6-plus-true-sketch-paths: | - - megaavr/libraries/Logic/examples/Five_input_NOR - IO-class-2-sketch-paths: | - - megaavr/libraries/megaTinyCore/examples/TCA0Demo3 - - strategy: - fail-fast: false - - matrix: - flash-class: - - 32 - - 16 - - 8 - - 4 - - 2 - peripheral-class: - - 1 - - 0 - IO-class: - - 7 - - 6 - - 4 - - 2 - bootloader-code: - - - - o - - # Filter out these matrix combinations - exclude: - - flash-class: 32 - peripheral-class: 0 - - flash-class: 32 - IO-class: 4 - - flash-class: 32 - IO-class: 2 - - flash-class: 16 - IO-class: 2 - - flash-class: 8 - IO-class: 2 - - flash-class: 4 - peripheral-class: 0 - IO-class: 7 - - flash-class: 2 - IO-class: 7 - - flash-class: 2 - IO-class: 6 - - include: - - flash-class: 32 - bootloader-code: - available-flash-kB: 32 - - flash-class: 32 - bootloader-code: o - available-flash-kB: 31.5 - - flash-class: 16 - bootloader-code: - available-flash-kB: 16 - - flash-class: 16 - bootloader-code: o - available-flash-kB: 15.5 - - flash-class: 8 - bootloader-code: - available-flash-kB: 8 - - flash-class: 8 - bootloader-code: o - available-flash-kB: 7.5 - - flash-class: 4 - bootloader-code: - available-flash-kB: 4 - - flash-class: 4 - bootloader-code: o - available-flash-kB: 3.5 - - flash-class: 2 - bootloader-code: - available-flash-kB: 2 - - flash-class: 2 - bootloader-code: o - available-flash-kB: 1.5 - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - # See: https://github.com/arduino/compile-sketches/README.md - - name: Compile examples - uses: arduino/compile-sketches@main - with: - fqbn: ${{ env.platform-name }}:atxy${{ matrix.IO-class }}${{ matrix.bootloader-code }}:chip=${{ matrix.flash-class }}${{ matrix.peripheral-class }}${{ matrix.IO-class }} - sketch-paths: | - # It's necessary to jump through some hoops to dynamically generate the env object keys to define the non-universal sketch paths - # https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#format - ${{ env[format('available-flash-7_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 7.5)] }} - ${{ env[format('available-flash-4kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 4)] }} - ${{ env[format('available-flash-3_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 3.5)] }} - ${{ env[format('available-flash-2kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 2)] }} - ${{ env[format('available-flash-1_5kB-plus-{0}-sketch-paths', matrix.available-flash-kB >= 1.5)] }} - - ${{ env[format('IO-class-4-plus-{0}-sketch-paths', matrix.IO-class >= 4)] }} - ${{ env[format('IO-class-{0}-sketch-paths', matrix.IO-class)] }} - platforms: | - # Install megaTinyCore via Boards Manager for the toolchain - - source-url: http://drazzy.com/package_drazzy.com_index.json - name: ${{ env.platform-name }} - # Overwrite the megaTinyCore release version with the platform from the local path - - source-path: megaavr - name: ${{ env.platform-name }} - libraries: | - # The sketches don't have any external library dependencies, so just define an empty array - - - verbose: false - enable-deltas-report: true - enable-warnings-report: true - sketches-report-path: sketches-reports - - # The report artifact is the mechanism used to pass data to the Report Size Deltas workflow - - name: Save memory usage change report as artifact - uses: actions/upload-artifact@v2 - with: - name: sketches-reports - path: sketches-reports diff --git a/.github/workflows/general-formatting-checks.yml b/.github/workflows/general-formatting-checks.yml deleted file mode 100644 index a1686f4b..00000000 --- a/.github/workflows/general-formatting-checks.yml +++ /dev/null @@ -1,84 +0,0 @@ -# https://github.com/per1234/formatting-checks -name: General Formatting Checks - -on: - pull_request: - push: - # workflow_dispatch event allows the workflow to be triggered manually - # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch - workflow_dispatch: - # repository_dispatch event allows the workflow to be triggered via the GitHub API - # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#repository_dispatch - repository_dispatch: - -jobs: - utf-8-bom: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Check for UTF-8 BOM file encoding - run: find . -path './.git' -prune -or -type f -exec grep --files-with-matches --binary-files=without-match $'\xEF\xBB\xBF' '{}' \; -exec echo 'UTF-8 BOM encoding detected.' \; -exec false '{}' + - - blank-first-line: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Check for files starting with a blank line - run: find . -path './.git' -prune -or -type f -print0 | xargs -0 -L1 bash -c 'head -1 "$0" | grep --binary-files=without-match --regexp="^$"; if [[ "$?" == "0" ]]; then echo "Blank line found at start of $0."; false; fi' - - tabs: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Check for unnecessary use of true tabs - run: find . -path './.git' -prune -or \( -not -name 'keywords.txt' -and -not -name 'Makefile' -and -not -name '.gitmodules' -and -type f \) -exec grep --with-filename --line-number --binary-files=without-match --regexp=$'\t' '{}' \; -exec echo 'Tab found.' \; -exec false '{}' + - - trailing: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Check for trailing whitespace - run: find . -path './.git' -prune -or \( -not -name '*.hex' -and -not -name '*.gif' -and -not -name '*.png' -and -type f \) -exec grep --with-filename --line-number --binary-files=without-match --regexp='[[:blank:]]$' '{}' \; -exec echo 'Trailing whitespace found.' \; -exec false '{}' + - - line-endings: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Check for non-Unix line endings - run: find . -path './.git' -prune -or \( -not -name '*.hex' -and -type f \) -exec grep --files-with-matches --binary-files=without-match --regexp=$'\r$' '{}' \; -exec echo 'Non-Unix EOL detected.' \; -exec false '{}' + - - blank-last-line: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Check for blank lines at end of files - run: find . -path './.git' -prune -or -type f -print0 | xargs -0 -L1 bash -c 'tail -1 "$0" | grep --binary-files=without-match --regexp="^$"; if [[ "$?" == "0" ]]; then echo "Blank line found at end of $0."; false; fi' - - no-last-newline: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Check for files that don't end in a newline - # https://stackoverflow.com/a/25686825 - run: find . -path './.git' -prune -or -type f -print0 | xargs -0 -L1 bash -c 'if test "$(grep --files-with-matches --binary-files=without-match --max-count=1 --regexp='.*' "$0")" && test "$(tail --bytes=1 "$0")"; then echo "No new line at end of $0."; false; fi' diff --git a/.github/workflows/report-size-deltas.yml b/.github/workflows/report-size-deltas.yml deleted file mode 100644 index 6c7a2ffc..00000000 --- a/.github/workflows/report-size-deltas.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Report Size Deltas - -on: - schedule: - # Check whether any new reports are needed every 5 minutes - # WARNING: If you run this workflow in a private repo, it will burn through your free GitHub Actions minutes fast! - # See https://github.com/arduino/report-size-deltas/README.md for recommended private repo usage option. - # https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#schedule - - cron: '*/5 * * * *' - -jobs: - report: - runs-on: ubuntu-latest - - steps: - # See: https://github.com/arduino/report-size-deltas/README.md - - name: Comment size deltas reports to PRs - uses: arduino/report-size-deltas@main - with: - sketches-reports-source: sketches-reports diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml deleted file mode 100644 index f437d8a4..00000000 --- a/.github/workflows/spell-check.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Spell Check - -on: - pull_request: - push: - schedule: - # run every Tuesday at 3 AM UTC - - cron: "0 3 * * 2" - # workflow_dispatch event allows the workflow to be triggered manually - # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch - workflow_dispatch: - # repository_dispatch event allows the workflow to be triggered via the GitHub API - # See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#repository_dispatch - repository_dispatch: - -jobs: - spellcheck: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - # See: https://github.com/codespell-project/actions-codespell/blob/master/README.md - - name: Spell check - uses: codespell-project/actions-codespell@master - with: - check_filenames: true - check_hidden: true - skip: "./.git,*.gif,*.jpg,*.png" - # In the event of a false positive, add the word in all lower case to this file: - ignore_words_file: megaavr/extras/ci/codespell-ignore-words-list.txt diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index bf9d2701..00000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "cores/test/external/libvireg"] - path = cores/test/external/libvireg - url = https://github.com/bcmi-labs/libvireg diff --git a/extras/DevConfigUPDI.png b/extras/DevConfigUPDI.png deleted file mode 100644 index 2d6c730a..00000000 Binary files a/extras/DevConfigUPDI.png and /dev/null differ diff --git a/extras/NanoAsUPDI.png b/extras/NanoAsUPDI.png deleted file mode 100644 index 4875e5c2..00000000 Binary files a/extras/NanoAsUPDI.png and /dev/null differ diff --git a/extras/ProMiniAsUPDI.png b/extras/ProMiniAsUPDI.png deleted file mode 100644 index 37e79bcc..00000000 Binary files a/extras/ProMiniAsUPDI.png and /dev/null differ diff --git a/extras/ci/arduino-code-style.conf b/extras/ci/arduino-code-style.conf deleted file mode 100644 index 66613c27..00000000 --- a/extras/ci/arduino-code-style.conf +++ /dev/null @@ -1,125 +0,0 @@ -# source: https://github.com/arduino/ArduinoCore-avr/issues/71#issuecomment-466763471 2019-06-09 - -# formatter.conf, examples_formatter.conf -mode=c - - -# examples_formatter.conf -# http://astyle.sourceforge.net/astyle.html#_style=java -# Considering changing this to the synonym "style=attach", which seems more descriptive -style=java - - -# examples_formatter.conf -attach-namespaces - -# examples_formatter.conf -attach-classes - -# examples_formatter.conf -attach-inlines - -# examples_formatter.conf -attach-extern-c - - -# formatter.conf, examples_formatter.conf -indent=spaces=2 - -# formatter.conf, examples_formatter.conf -indent-classes - -# formatter.conf, examples_formatter.conf -indent-switches - -# formatter.conf, examples_formatter.conf -indent-cases - -# formatter.conf, examples_formatter.conf -indent-col1-comments - -# examples_formatter.conf -indent-modifiers - -# examples_formatter.conf -indent-namespaces - -# examples_formatter.conf -indent-labels - -# examples_formatter.conf -indent-preproc-define - - -# formatter.conf, examples_formatter.conf -pad-header - -# formatter.conf, examples_formatter.conf -pad-oper - -# examples_formatter.conf -unpad-paren - - -# formatter.conf, examples_formatter.conf -remove-comment-prefix - -# formatter.conf, examples_formatter.conf -# http://astyle.sourceforge.net/astyle.html#_keep-one-line-statements -# "Don't break complex statements and multiple statements residing on a single line." -# I don't like one line complex statements, but I guess since it's in formatter.conf it must stay. -keep-one-line-statements - - - -# Options from examples_formatter.conf that I think should be removed: - -# http://astyle.sourceforge.net/astyle.html#_indent-preproc-block -# "Indent preprocessor blocks at brace level zero and immediately within a namespace. There are restrictions on what will be indented. Blocks within methods, classes, arrays, etc., will not be indented. Blocks containing braces or multi-line define statements will not be indented. Without this option the preprocessor block is not indented." -# This does indent for #ifdef, but not for #ifndef, so it's quite inconsistent -# Indentation of preprocessor directives as done by this option is not very common in Arduino AVR Boards core, and where it is used, it's typically done inconsistently throughout the file -indent-preproc-block - -# http://astyle.sourceforge.net/astyle.html#_indent-preproc-cond -# "Indent preprocessor conditional statements to the same level as the source code." -# Indentation of preprocessor directives as done by this option is very rare in Arduino AVR Boards core -indent-preproc-cond - - - -# Options I have not implemented from formatter.conf or examples_formatter.conf: - -# examples_formatter.conf -# Not a valid option in the latest version of AStyle. I think the correct option name is "add-braces", which I do use in my configuration -# add-brackets - -# formatter.conf, examples_formatter.conf -# Not a valid option in the latest version of AStyle. -# indent-preprocessor - - - -# Options I have added: - -# http://astyle.sourceforge.net/astyle.html#_add-braces -# "I believe this is the correct option name to use instead the "add-brackets" option used in examples_formatter.conf. "add-brackets" is not a valid option in the latest version of AStyle" -add-braces - -# http://astyle.sourceforge.net/astyle.html#_convert-tabs -# "Converts tabs into spaces in the non-indentation part of the line." -# AStyle is already configured to use spaces for indentation by indent=spaces=2. The Arduino IDE uses spaces instead of tabs by default. -convert-tabs - -# http://astyle.sourceforge.net/astyle.html#_attach-return-type -# "Attach the return type to the function name in function definitions." -attach-return-type - -# http://astyle.sourceforge.net/astyle.html#_attach-return-type -# "Attach the return type to the function name in function declarations." -attach-return-type-decl - -# http://astyle.sourceforge.net/astyle.html#_align-pointer -# "Attach a pointer or reference operator (*, &, or ^) to either the variable type (left) or variable name (right), or place it between the type and name (middle)." -# In Arduino AVR Boards core, name alignment of pointers is somewhat more common, though all possible styles are used -# I don't care which style is chosen (type, middle, name), but I do think one should be chosen and used. -align-pointer=name diff --git a/extras/ci/codespell-ignore-words-list.txt b/extras/ci/codespell-ignore-words-list.txt deleted file mode 100644 index ba0ae190..00000000 --- a/extras/ci/codespell-ignore-words-list.txt +++ /dev/null @@ -1,2 +0,0 @@ -rcall -hart