Skip to content

Commit

Permalink
Fixed Linter check issue (#152)
Browse files Browse the repository at this point in the history
* + 🛠️ Fixed Linter

* + 🛠️ Add: check & Remove thing for performace

Removed jscpd(copy-paste-detector) for the sake of performace
Removed yaml
removed  Test stuff
did so `many test`
:( it may finally work
  • Loading branch information
NormTurtle authored Jan 5, 2024
1 parent 5d3aeee commit c894afc
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
# 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

---
### Super Linter
name: Linting Code Base using Super Linter
on:
push:
branches: [ "main" ]
# push:
# # branches: [main]
pull_request:
branches: [ "main" ]
branches: [main]
jobs:
run-lint:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write
steps:
- name: Checkout code
- name: Checkout Code
uses: actions/checkout@v3
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
# Checkout whole repo for Lint
fetch-depth: 0

- name: Lint Code Base
uses: github/super-linter@v4
- name: Lint Whole Repository
# Slim version do not have rust, pwsh, c#, armttk , dotenv, rust linters and its bit fast
# if want to use normal version then just remove SLIM before @ till / as ../super-linter@Versoin
uses: super-linter/super-linter/slim@v5.7.2
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: "main"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# ALL_codebase parse the entire repository and find all files to validate across all types. NOTE: When set to false, only new or edited files will be parsed for validation.
VALIDATE_ALL_CODEBASE: true
VALIDATE_MARKDOWN: false
VALIDATE_NATURAL_LANGUAGE: false # disable linting Text/Markdown
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c894afc

Please sign in to comment.