sqwyer / loc Goto Github PK
View Code? Open in Web Editor NEW✏️ A simple rust binary for getting the number of lines of code/text in a specified directory.
✏️ A simple rust binary for getting the number of lines of code/text in a specified directory.
What should happen? Dot files (such as .gitignore
), and other directories such as the .git
, target
, or node_modules
directories should be ignored in loc read.
# (File Structure)
- /
|--/target/
|--debug/
|--release/
|--.rust_info.json
|--CACHEDIR.tag
|--/src/
|--main.rs
|--.gitignore
loc . # should output "x lines of code accross 1 file(s)"
The only file from this directory that should be read is /src/main.rs
as it is not in the /target/
directory, and is not a dot file like .gitignore
.
React with 👍 or 👎
Whenever a non UTF-8 file is read the program panics and you are unable to get any output at all.
What should happen? The program should ignore the file if it contains non UTF-8 content and should continue reading all other UTF-8 files.
To Reproduce:
loc .
in the directory where the non UTF-8 file is located.This project will be archived.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.