RECENT POSTS
- Introduction to FreeBSD Security Best Practices
- Working with Package Management in FreeBSD
- Understanding FreeBSD Security Advisories and Updates
- Troubleshooting Common System Administration Issues in FreeBSD
- Tips for Hardening FreeBSD to achieve System Protection
- Setting Up DHCP Server in FreeBSD
- Secure User and Group Management in FreeBSD Systems
- Secure Remote Access with SSH in FreeBSD
- Optimizing System Performance in FreeBSD
- Network Packet Capture with tcpdump in FreeBSD
- All posts ...
Do you have GDPR compliance issues ?
Check out Legiscope a GDPR compliance software, that will save you weeks of work, automating your documentation, the training of your teams and all processes you need to keep your organisation compliant with privacy regulations
Sloccount
Jul 20, 2023
Counts physical Source Lines of Code (SLOC)
SLOCCount can count physical SLOC for a wide number of languages. It can gracefully handle awkward situations in many languages, for example, it can determine the syntax used in different assembly language files and adjust appropriately, it knows about Python’s use of string constants as comments, and it can handle various Perl oddities e.g., perlpods, here documents, and Perl’s END marker. It even has a “generic” SLOC counter that you may be able to use count the SLOC of other languages depending on the language’s syntax.
SLOCCount can also take a large list of files and automatically categorize them using a number of different heuristics. The heuristics automatically determine if a file is a source code file or not, and if so, which language it’s written in. It will even examine file headers to attempt to accurately determine the file’s true type. As a result, you can analyze large systems completely automatically.
Finally, SLOCCount has some report-generating tools to collect the data generated, and then present it in several different formats and sorted different ways. The report-generating tool can also generate simple tab- separated files so data can be passed on to other analysis tools such as spreadsheets and database systems.
- Older
- Newer
Checkout these related ports:
- Zoneinfo - Updated timezone definitions
- Zine - Simple and opinionated tool to build your own magazine
- Ytree - DOS-XTREE(tm) look-a-like file manager
- Yaunc - Yet another uptimes.net client
- Xtypo - X-based keyboard trainer
- Xtar - View and manipulate contents of a tar file
- Xtail - Watches the growth of files or directories
- Xplr - Hackable, minimal, fast TUI file explorer
- Xosd - X11 on-screen-display program and library
- Xless - X11-based viewer for text files
- Xiphos - Bible interface utilizing the sword framework
- Xgboost - Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT, GBM)
- Xgas - The animated simulation of an ideal gas
- Xfce4-wm-themes - Additional themes for xfwm4
- Xfce4-weather-plugin - Weather plugin for the Xfce panel