From 393450078c534caf2df41c16796de72a5051351c Mon Sep 17 00:00:00 2001 From: Wyatt Stanke Date: Fri, 12 Apr 2024 15:54:41 -0400 Subject: [PATCH] Fix autoformatting --- .github/workflows/codeql.yml | 10 +++++----- .github/workflows/lint.yml | 2 +- .yamlfmt.yaml | 3 +++ 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 .yamlfmt.yaml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index f7773c66..7881eaed 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -17,7 +17,7 @@ on: # The branches below must be a subset of the branches above branches: ["master"] schedule: - - cron: '33 12 * * 5' + - cron: "33 12 * * 5" jobs: analyze: name: Analyze @@ -35,7 +35,7 @@ jobs: strategy: fail-fast: false matrix: - language: ['python'] + language: ["python"] # CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ] # Use only 'java-kotlin' to analyze code written in Java, Kotlin or both # Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both @@ -58,9 +58,6 @@ jobs: # queries: security-extended,security-and-quality uses: github/codeql-action/autobuild@v3 - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - # If the Autobuild fails above, remove it and uncomment the following three lines. # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. @@ -68,6 +65,9 @@ jobs: # echo "Run, Build Application using script" # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis + # ℹī¸ Command-line programs to run using the OS shell. + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun + uses: github/codeql-action/analyze@v3 with: category: "/language:${{matrix.language}}" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 67f7f634..3453aac0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,7 +7,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 - run: go install github.com/google/yamlfmt/cmd/yamlfmt@latest - - run: yamlfmt -w . + - run: yamlfmt . # - uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc yaml-lint: runs-on: ubuntu-latest diff --git a/.yamlfmt.yaml b/.yamlfmt.yaml new file mode 100644 index 00000000..1c326de1 --- /dev/null +++ b/.yamlfmt.yaml @@ -0,0 +1,3 @@ +formatter: + include_document_start: true + max_line_length: 80