Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: ignore certain files from being counted for lines of code #473

Open
Clumsy-Coder opened this issue Sep 21, 2023 · 0 comments
Open
Assignees
Labels
Brainstorming Some New Feature to be added with prior proper discussion

Comments

@Clumsy-Coder
Copy link

Is your feature request related to a problem? Please describe.
I'd be nice to have a way to ignore certain files from being counted for lines of code.
Ex: ignoring package-lock.json from counting lines of code. Since this was generated by an app

Describe the solution you'd like
adding a config in github action options

---

# obtained from
# https://github.com/anmol098/waka-readme-stats#profile-repository

name: Waka Readme

on:
  schedule:
    # Runs every day at midnight
    # https://crontab.guru/every-day-at-midnight
    - cron: '0 0 * * *'
  workflow_dispatch:
jobs:
  update-readme:
    name: Update Waka Metrics in Readme
    runs-on: ubuntu-latest
    steps:
      - uses: anmol098/waka-readme-stats@master
        with:
          WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
          GH_TOKEN: ${{ secrets.GH_TOKEN }}

          # https://github.com/anmol098/waka-readme-stats#flags-available
          COMMIT_MESSAGE: "docs(readme): update wakatime stats"
          SHOW_UPDATED_DATE: "True"
          UPDATED_DATE_FORMAT: "%Y/%m/%d %H:%M:%S"
          SHOW_LINES_OF_CODE: "True"
          SHOW_TIMEZONE: "False"
          SHOW_PROFILE_VIEWS: "False"
          IGNORE_FILE:
            - "package-lock.json"
            - "yarn.lock"

Describe alternatives you've considered
Hard coding the files to ignore, but that makes it too rigid to use

Additional context
Add any other context or screenshots about the feature request here.

@Clumsy-Coder Clumsy-Coder added the Brainstorming Some New Feature to be added with prior proper discussion label Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Brainstorming Some New Feature to be added with prior proper discussion
Projects
None yet
Development

No branches or pull requests

2 participants