https://github.com/iryukizo/check_lines
A little python script to check lines in your c files.
https://github.com/iryukizo/check_lines
c ctags format lines-of-code pypi python-script python3
Last synced: 6 months ago
JSON representation
A little python script to check lines in your c files.
- Host: GitHub
- URL: https://github.com/iryukizo/check_lines
- Owner: iRyukizo
- License: mit
- Created: 2020-10-27T03:21:13.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-25T01:32:30.000Z (over 4 years ago)
- Last Synced: 2025-03-27T15:47:39.514Z (6 months ago)
- Topics: c, ctags, format, lines-of-code, pypi, python-script, python3
- Language: Python
- Homepage:
- Size: 55.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# check_lines
A little python script to check lines in your **C** files.### Must have:
- Following programs:
```
ctags
python3
```
---
### How to use:
```sh
check_lines [options] [files]
```
Examples:
```sh
[ryuki@apollo11 Project]$ check_lines main.c
main.c:49:18: warning: This function is too long: 34 lines [expected 25 lines].
int main(void)
^
[ryuki@apollo11 Project]$ check_lines -l 20 --remaining main.c
-- remaining lines --
File: main.c
Function: main (5:4): -14 lines
Function: print_stuff (10:5): 10 lines
[ryuki@apollo11 Project]$ check_lines -f main.c other.c
-- functions counter --
Total of all functions: 14
Total of static functions: 2
Total of normal functions: 9
File: main.c
Total functions: 2
Static functions: 0
Normal functions: 2
File: other.c
Total functions: 12
Static functions: 5
Normal functions: 7
```
---
### How to install:
```sh
pip install check-lines
```
See: https://pypi.org/project/check-lines/