From fab6b8964f36989b1f9949f9a8633e28fde71beb Mon Sep 17 00:00:00 2001 From: alamin655 <129589283+alamin655@users.noreply.github.com> Date: Mon, 19 Jun 2023 19:04:13 +0530 Subject: [PATCH 1/7] Update mega-linter.yml --- .github/workflows/mega-linter.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/mega-linter.yml b/.github/workflows/mega-linter.yml index da2a1ca..d005c16 100644 --- a/.github/workflows/mega-linter.yml +++ b/.github/workflows/mega-linter.yml @@ -4,12 +4,12 @@ name: MegaLinter on: - # Trigger mega-linter at every push. Action will also be visible from Pull Requests to main + # Trigger mega-linter at every push. Action will also be visible from Pull Requests to rolling push: # Comment this line to trigger action only on pull-requests (not recommended if you don't pay for GH Actions) pull_request: branches: [rolling] -env: # Comment env block if you don't want to apply fixes +env: # Comment env block if you do not want to apply fixes # Apply linter fixes configuration APPLY_FIXES: all # When active, APPLY_FIXES must also be defined as environment variable (in github/workflows/mega-linter.yml or other CI tool) APPLY_FIXES_EVENT: pull_request # Decide which event triggers application of fixes in a commit or a PR (pull_request, push, all) @@ -35,7 +35,6 @@ jobs: uses: actions/checkout@v3 with: token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} - fetch-depth: 0 # If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to improve performances # MegaLinter - name: MegaLinter @@ -46,10 +45,9 @@ jobs: env: # All available variables are described in documentation # https://megalinter.io/configuration/ - VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} # Validates all source when push on main, else just the git diff with main. Override with true if you always want to lint all sources + VALIDATE_ALL_CODEBASE: true # Set ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} to validate only diff with main branch GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # ADD YOUR CUSTOM ENV VARIABLES HERE OR DEFINE THEM IN A FILE .mega-linter.yml AT THE ROOT OF YOUR REPOSITORY - # DISABLE: COPYPASTE,SPELL # Uncomment to disable copy-paste and spell checks + # ADD YOUR CUSTOM ENV VARIABLES HERE TO OVERRIDE VALUES OF .mega-linter.yml AT THE ROOT OF YOUR REPOSITORY # Upload MegaLinter artifacts - name: Archive production artifacts From 6e843f06c5a3b51105fa4fab6ad954b13ac70fd4 Mon Sep 17 00:00:00 2001 From: alamin655 <129589283+alamin655@users.noreply.github.com> Date: Mon, 19 Jun 2023 19:08:14 +0530 Subject: [PATCH 2/7] Create .mega-linter.yml --- .mega-linter.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .mega-linter.yml diff --git a/.mega-linter.yml b/.mega-linter.yml new file mode 100644 index 0000000..ed22343 --- /dev/null +++ b/.mega-linter.yml @@ -0,0 +1,25 @@ +# Configuration file for MegaLinter +# See all available variables at https://megalinter.io/configuration/ and in linters documentation + +APPLY_FIXES: all # all, none, or list of linter keys +# ENABLE: # If you use ENABLE variable, all other languages/formats/tooling-formats will be disabled by default +ENABLE_LINTERS: # If you use ENABLE_LINTERS variable, all other linters will be disabled by default + - LUA_LUACHECK + - RUST_CLIPPY + - JAVASCRIPT_ES + - CSS_STYLELINT + - MARKDOWN_MARKDOWNLINT + - YAML_YAMLLINT + - JSON_ESLINT_PLUGIN_JSONC + - HTML_DJLINT + - ACTION_ACTIONLINT + - DOCKERFILE_HADOLINT + - SPELL_CSPELL + - COPYPASTE_JSCPD + - REPOSITORY_TRIVY +# DISABLE: + # - COPYPASTE # Uncomment to disable checks of excessive copy-pastes + # - SPELL # Uncomment to disable checks of spelling mistakes +SHOW_ELAPSED_TIME: true +FILEIO_REPORTER: true +# DISABLE_ERRORS: true # Uncomment if you want MegaLinter to detect errors but not block CI to pass From 5559b77915bcbcb41a6cdc2dc7fd668809d74058 Mon Sep 17 00:00:00 2001 From: alamin655 <129589283+alamin655@users.noreply.github.com> Date: Mon, 19 Jun 2023 19:08:58 +0530 Subject: [PATCH 3/7] Create .jscpd.json --- .jscpd.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .jscpd.json diff --git a/.jscpd.json b/.jscpd.json new file mode 100644 index 0000000..2cee5f5 --- /dev/null +++ b/.jscpd.json @@ -0,0 +1,15 @@ +{ + "threshold": 0, + "reporters": ["html", "markdown"], + "ignore": [ + "**/node_modules/**", + "**/.git/**", + "**/.rbenv/**", + "**/.venv/**", + "**/*cache*/**", + "**/.github/**", + "**/.idea/**", + "**/report/**", + "**/*.svg" + ] +} From abbe0b2ac81b4135df66e0cd02a4fe7b0381f57e Mon Sep 17 00:00:00 2001 From: alamin655 <129589283+alamin655@users.noreply.github.com> Date: Mon, 19 Jun 2023 19:10:26 +0530 Subject: [PATCH 4/7] Create .cspell.json --- .cspell.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .cspell.json diff --git a/.cspell.json b/.cspell.json new file mode 100644 index 0000000..b798d29 --- /dev/null +++ b/.cspell.json @@ -0,0 +1,16 @@ +{ + "ignorePaths": [ + "**/node_modules/**", + "**/vscode-extension/**", + "**/.git/**", + "**/.pnpm-lock.json", + ".vscode", + "megalinter", + "package-lock.json", + "report" + ], + "language": "en", + "noConfigSearch": true, + "words": ["megalinter", "oxsecurity"], + "version": "0.2" +} From 8313fcc7d98e39024c20949ebe835982b977f6c8 Mon Sep 17 00:00:00 2001 From: alamin655 <129589283+alamin655@users.noreply.github.com> Date: Mon, 19 Jun 2023 19:11:05 +0530 Subject: [PATCH 5/7] Update .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 5e79d6b..c8d5b9e 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ package.json package-lock.json dump.rdb .vscode +megalinter-reports/ From 0b48512b6af9e7f27f2624a78bd500a906c58296 Mon Sep 17 00:00:00 2001 From: alamin655 <129589283+alamin655@users.noreply.github.com> Date: Mon, 19 Jun 2023 21:00:57 +0530 Subject: [PATCH 6/7] Update .mega-linter.yml --- .mega-linter.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.mega-linter.yml b/.mega-linter.yml index ed22343..95f0f42 100644 --- a/.mega-linter.yml +++ b/.mega-linter.yml @@ -10,13 +10,10 @@ ENABLE_LINTERS: # If you use ENABLE_LINTERS variable, all other linters will be - CSS_STYLELINT - MARKDOWN_MARKDOWNLINT - YAML_YAMLLINT - - JSON_ESLINT_PLUGIN_JSONC - HTML_DJLINT - ACTION_ACTIONLINT - DOCKERFILE_HADOLINT - SPELL_CSPELL - - COPYPASTE_JSCPD - - REPOSITORY_TRIVY # DISABLE: # - COPYPASTE # Uncomment to disable checks of excessive copy-pastes # - SPELL # Uncomment to disable checks of spelling mistakes From 1f3fd07e406a3e30248975d5c946478f3177a7e4 Mon Sep 17 00:00:00 2001 From: alamin655 <129589283+alamin655@users.noreply.github.com> Date: Mon, 19 Jun 2023 21:01:15 +0530 Subject: [PATCH 7/7] Delete .jscpd.json --- .jscpd.json | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 .jscpd.json diff --git a/.jscpd.json b/.jscpd.json deleted file mode 100644 index 2cee5f5..0000000 --- a/.jscpd.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "threshold": 0, - "reporters": ["html", "markdown"], - "ignore": [ - "**/node_modules/**", - "**/.git/**", - "**/.rbenv/**", - "**/.venv/**", - "**/*cache*/**", - "**/.github/**", - "**/.idea/**", - "**/report/**", - "**/*.svg" - ] -}