Difference between revisions of "Cloc"

From COPTR
Jump to: navigation, search
(Created page with "<!-- Use the structure provided in this template, do not change it! --> {{Infobox_tool |purpose=A brief description |image={{PAGENAMEE}}.png |homepage=url |license= |platform...")
 
 
(3 intermediate revisions by one user not shown)
Line 2: Line 2:
  
 
{{Infobox_tool
 
{{Infobox_tool
|purpose=A brief description
+
|purpose= Cloc (Count Lines of Code) serves not only to count the lines of Code,but also guesses the programming language, thus can be used to identify files. It is a command line tool which is easy to use.
 
|image={{PAGENAMEE}}.png
 
|image={{PAGENAMEE}}.png
|homepage=url
+
|homepage=[https://github.com/AlDanial/cloc CLOC in GitHub]
|license=
+
|license= GNU General Public License v2.0
 
|platforms=
 
|platforms=
 
}}
 
}}
Line 22: Line 22:
 
== Description ==
 
== Description ==
 
<!-- Describe the what the tool does, focusing on it's digital preservation value. Keep it factual. -->
 
<!-- Describe the what the tool does, focusing on it's digital preservation value. Keep it factual. -->
 +
Start the command line from the folder which contains the CLOC exe file.
 +
 +
Type:
 +
 +
''cloc-1.78.exe D:/Folder/fileToAnalyse''
 +
 +
The findings are shown in the black window. Alternatively, you can have an output file
 +
 +
''cloc-1.78.exe D:/Folder/fileToAnalayse > outputfile.txt''
 +
 +
You can also analyse all files in certain folder, the syntax is like this:
 +
 +
''cloc-1.78.exe D:/AnalyseWholeFolder > outputForAllFilesInFolder.txt''
 +
 +
[[File:Cloc_FindingExxample.jpg]]
  
 
== User Experiences ==
 
== User Experiences ==
Line 35: Line 50:
 
|ohloh_id=
 
|ohloh_id=
 
}}
 
}}
 +
The tool is now released at GitHub. [https://github.com/AlDanial/cloc/releases CLOC Page on GitHub]
 +
There are new releases roughly twice a year.

Latest revision as of 14:21, 24 September 2018




Cloc
Cloc (Count Lines of Code) serves not only to count the lines of Code,but also guesses the programming language, thus can be used to identify files. It is a command line tool which is easy to use.
Homepage:CLOC in GitHub
License:GNU General Public License v2.0




[edit] Description

Start the command line from the folder which contains the CLOC exe file.

Type:

cloc-1.78.exe D:/Folder/fileToAnalyse

The findings are shown in the black window. Alternatively, you can have an output file

cloc-1.78.exe D:/Folder/fileToAnalayse > outputfile.txt

You can also analyse all files in certain folder, the syntax is like this:

cloc-1.78.exe D:/AnalyseWholeFolder > outputForAllFilesInFolder.txt

Cloc FindingExxample.jpg

[edit] User Experiences

[edit] Development Activity


The tool is now released at GitHub. CLOC Page on GitHub There are new releases roughly twice a year.

Contributors

Yfriese (100.0%)