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

Code for counting lines of code. #77

Closed
wants to merge 1 commit into from

Conversation

shuklamaneesh23
Copy link

@shuklamaneesh23 shuklamaneesh23 commented Mar 16, 2024

Solved the issue #75

Description:
This PR introduces automated code analysis using the cloc tool to count lines of code in the repository. Here's a breakdown of the changes:

  1. Cloning Repository: The script now clones the remote Git repository specified by the repo_url variable to a temporary directory using the git clone command.

  2. Code Analysis: After cloning the repository, the script navigates to the repository directory and uses the cloc command to count lines of code by language. This provides valuable insights into the composition of the codebase, including the number of lines, comments, and blank lines for each programming language present.

  3. Temporary Directory Cleanup: Once the code analysis is complete, the temporary directory created for cloning the repository is removed to ensure clean-up.

Screenshot 2024-03-16 at 11 20 47 PM

@rootCircle
Copy link
Member

LGTM 👍 Thanks for your contribution!

please write meaning branch names while making a pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants