<commit_before>environment:
    global:
        PROJECT_NAME: rust-clippy
    matrix:
        - TARGET: i686-pc-windows-gnu
          MSYS2_BITS: 32
        - TARGET: i686-pc-windows-msvc
          MSYS2_BITS: 32
        - TARGET: x86_64-pc-windows-gnu
          MSYS2_BITS: 64
        - TARGET: x86_64-pc-windows-msvc
          MSYS2_BITS: 64

install:
    - curl -sSf -o rustup-init.exe https://win.rustup.rs/
    - rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly
    - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin;C:\Users\appveyor\.rustup\toolchains\nightly-%TARGET%\bin
    - if defined MSYS2_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS2_BITS%\bin
    - rustc -V
    - cargo -V

build: false

test_script:
    - cargo build --features debugging
    - cargo test --features debugging
    - mkdir -p rust/cargo/bin
    - copy target\debug\cargo-clippy C:\Users\appveyor\.cargo\bin\
    - cargo clippy -- -D clippy<commit_msg>no mkdir needed on Windows<commit_after>environment:
    global:
        PROJECT_NAME: rust-clippy
    matrix:
        - TARGET: i686-pc-windows-gnu
          MSYS2_BITS: 32
        - TARGET: i686-pc-windows-msvc
          MSYS2_BITS: 32
        - TARGET: x86_64-pc-windows-gnu
          MSYS2_BITS: 64
        - TARGET: x86_64-pc-windows-msvc
          MSYS2_BITS: 64

install:
    - curl -sSf -o rustup-init.exe https://win.rustup.rs/
    - rustup-init.exe -y --default-host %TARGET% --default-toolchain nightly
    - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin;C:\Users\appveyor\.rustup\toolchains\nightly-%TARGET%\bin
    - if defined MSYS2_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS2_BITS%\bin
    - rustc -V
    - cargo -V

build: false

test_script:
    - cargo build --features debugging
    - cargo test --features debugging
    - copy target\debug\cargo-clippy C:\Users\appveyor\.cargo\bin\
    - cargo clippy -- -D clippy
{'fraction_non_alphanumeric': 0.126528442317916, 'fraction_numerical': 0.03189792663476874, 'mean_word_length': 2.1952461799660443, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6289047', 'n_tokens_mistral': 739, 'n_tokens_neox': 678, 'n_words': 130}