cccc
A tool/library for measurement of "C"ognitive "C"omplexity and "C"yclomatic "C"omplexity
File Explorer
- ci.yml
- complexity.yml
- cross-build.yml
- release.yml
- dependabot.yml
- eslintrc.json
- README.md
- run.py
- setup.sh
- lib.rs
- Cargo.toml
- cache.rs
- cli.rs
- config.rs
- lang.rs
- lib.rs
- main.rs
- output.rs
- walk.rs
- sample.c
- sample.clj
- sample.dart
- sample.el
- sample.go
- sample.java
- sample.kt
- sample.lisp
- sample.php
- sample.pl
- sample.py
- sample.rb
- sample.rs
- sample.scm
- sample.swift
- sample.ts
- sample.zig
- cli.rs
- lang_smoke.rs
- Cargo.toml
- LICENSE
- lib.rs
- Cargo.toml
- engine.rs
- ir.rs
- lib.rs
- report.rs
- Cargo.toml
- LICENSE
- lib.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- LICENSE
- lib.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- commonlisp.rs
- emacslisp.rs
- lib.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- lib.rs
- Cargo.toml
- ADDING_A_LANGUAGE.md
- .gitignore
- .octocov.complexity.yml
- .octocov.yml
- BENCHMARK.md
- Cargo.lock
- Cargo.toml
- cccc.toml
- LICENSE
- README.md
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
line
View Details ▼
line
Manage lines.
Accessed in configuration mode.
line vty 0 15
Configure lines from 0 to 15:
line
Read input:
cargo build
View Details ▼
cargo build
Compile a local package and all of its dependencies.
cargo {{[b|build]}}
Build the package or packages defined by the `Cargo.toml` manifest file in the local path:
cargo {{[b|build]}} {{[-r|--release]}}
Build artifacts in release mode, with optimizations:
cargo {{[b|build]}} --locked
Require that `Cargo.lock` is up to date:
elif
View Details ▼
elif
This shell keyword is used in combination with `if` and `else` to define a code branch.
tldr if
View documentation for `if` command:
eval
View Details ▼
eval
Execute arguments as a single command in the current shell and return its result.
eval "{{echo foo}}"
Call `echo` with the "foo" argument:
eval "{{foo=bar}}"
Set a variable in the current shell:
func
View Details ▼
func
Azure Functions Core Tools: develop and test Azure Functions locally.
Local functions can connect to live Azure services, and can deploy a function app to an Azure subscription.
func init {{project}}
Create a new functions project:
func new
Create a new function:
func start
Run functions locally:
git ls-files
View Details ▼
git ls-files
Show information about files in the index and the working tree.
git ls-files {{[-d|--deleted]}}
Show deleted files:
git ls-files {{[-m|--modified]}}
Show modified and deleted files:
git ls-files {{[-o|--others]}}
Show ignored and untracked files:
git status
View Details ▼
git status
Show the changes to files in a Git repository.
List changed, added, and deleted files compared to the currently checked-out commit.
git status
Show untracked and changed files which are not yet added for commit:
git status {{[-s|--short]}}
Give output in short format:
git status {{[-sb|--short --branch]}}
Show output in short format along with branch info:
next
View Details ▼
next
React framework that uses server-side rendering for building optimized web applications.
next dev
Start the current application in development mode:
next dev {{[-p|--port]}} {{port}}
Start the current application and listen on a specific port:
next build
Build the current application optimized for production:
php
View Details ▼
php
PHP command-line interface.
php {{path/to/file}}
Parse and execute a PHP script:
php {{[-l|--syntax-check]}} {{path/to/file}}
Check syntax on (i.e. [l]int) a PHP script:
php {{[-a|--interactive]}}
Run PHP inter[a]ctively:
scc
View Details ▼
scc
Count lines of code. Written in Go.
scc
Print lines of code in the current directory:
scc {{path/to/directory}}
Print lines of code in the target directory:
scc --by-file
Display output for every file:
select
View Details ▼
select
Bash builtin construct for creating menus.
select {{word}} in {{apple orange pear banana}}; do echo ${{word}}; done
Create a menu out of individual words:
select {{line}} in $({{command}}); do echo ${{line}}; done
Create a menu from the output of another command:
PS3="{{Select a file: }}"; select {{file}} in *; do echo ${{file}}; done
Specify the prompt string for `select` and create a menu for picking a file or folder from the current directory:
sum
View Details ▼
sum
Compute checksums and the number of blocks for a file.
A predecessor to the more modern `cksum`.
sum {{path/to/file}}
Compute a checksum with BSD-compatible algorithm and 1024-byte blocks:
sum {{[-s|--sysv]}} {{path/to/file}}
Compute a checksum with System V-compatible algorithm and 512-byte blocks:
until
View Details ▼
until
Simple shell loop that repeats until it receives zero as return value.
until {{command}}; do :; done
Execute a command until it succeeds:
until ssh {{username}}@{{host}}; do sleep {{2}}; done
Try to connect to an SSH host until gracefully disconnected:
until systemctl is-active {{[-q|--quiet]}} {{nginx}}; do {{echo "Waiting..."}}; sleep 1; done; {{echo "Launched!"}}
Wait for a systemd service to be active:
where
View Details ▼
where
Report all known instances of a command.
It could be an executable in the `$PATH` environment variable, an alias, or a shell builtin.
where {{command}}
Find all instances of a command:
tldr where-object
View the documentation of the equivalent PowerShell command:
where {{file_pattern}}
Display the location of file pattern:
last
View Details ▼
last
View the last logged in users.
last
View last login information (e.g., username, terminal, boot time, kernel) of all users as read from `/var/log/wtmp`:
last {{username}}
List login information of a specific user:
last {{[-n|--limit]}} {{login_count}}
Specify how many of the last logins to show:
