From 4a2f280a60b6932fac0f84eeae3b96c161c8693a Mon Sep 17 00:00:00 2001 From: murthy-001 <124085326+murthy-001@users.noreply.github.com> Date: Thu, 16 Feb 2023 20:52:41 -0800 Subject: [PATCH 1/3] Create super-linter.yml --- .github/workflows/super-linter.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/super-linter.yml diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml new file mode 100644 index 0000000..ca69cec --- /dev/null +++ b/.github/workflows/super-linter.yml @@ -0,0 +1,29 @@ +# This workflow executes several linters on changed files based on languages used in your code base whenever +# you push a code or open a pull request. +# +# You can adjust the behavior by modifying this file. +# For more information, see: +# https://github.com/github/super-linter +name: Lint Code Base + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] +jobs: + run-lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + # Full git history is needed to get a proper list of changed files within `super-linter` + fetch-depth: 0 + + - name: Lint Code Base + uses: github/super-linter@v4 + env: + VALIDATE_ALL_CODEBASE: false + DEFAULT_BRANCH: "main" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 7b829b4044d1153ae00074ad44fe68a2d010a631 Mon Sep 17 00:00:00 2001 From: "sm62812@gmail.com" Date: Thu, 16 Feb 2023 20:59:07 -0800 Subject: [PATCH 2/3] create lint errors --- main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 92174b3..0f608a3 100644 --- a/main.cpp +++ b/main.cpp @@ -1,8 +1,7 @@ #include "iostream" using namespace std; // -int main() -{ +int main(){ cout << "Hello world - Murthy"; return 0; } \ No newline at end of file From eb7068426afe00f454a8da5ccec0eb43f9569baa Mon Sep 17 00:00:00 2001 From: "sm62812@gmail.com" Date: Thu, 16 Feb 2023 20:59:34 -0800 Subject: [PATCH 3/3] update workflow --- .github/workflows/super-linter.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index ca69cec..2db8663 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -7,8 +7,6 @@ name: Lint Code Base on: - push: - branches: [ "main" ] pull_request: branches: [ "main" ] jobs: