Editing Cloc

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{Infobox tool
+
<!-- Use the structure provided in this template, do not change it! -->
|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.
+
 
 +
{{Infobox_tool
 +
|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
 
|homepage=[https://github.com/AlDanial/cloc CLOC in GitHub]
 
|homepage=[https://github.com/AlDanial/cloc CLOC in GitHub]
|license=GNU General Public License v2.0
+
|license= GNU General Public License v2.0
|function=File Format Identification
+
|platforms=
 
}}
 
}}
{{Infobox tool details}}
+
<!-- Note that to use the image field, you should leave the value as {{PAGENAMEE}}.png (or similar) and upload a copy of the image. Hot-linking is not supported. If you don't want an image, just remove that line. -->
 +
 
 +
<!-- Add one or more categories to describe the function of the tool, such as:
 +
[[Category:Metadata Extraction]] or [[Category:Preservation System]] or [[Category:Backup]]
 +
Choose carefully, and view the list of existing categories first (see the Navigation sidebar on the left) -->
 +
 
 +
 
 +
<!-- Add relevant categories to describe the content type that the tool addresses, such as:
 +
[[Category:Audio]] or [[Category:Document]] or [[Category:Research Data]]
 +
Choose carefully, and view the list of existing categories first (see the Navigation sidebar on the left). If the tool works on any content type, do not add a category. -->
 +
 
 +
 
 
== 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. -->
Line 17: Line 31:
  
 
''cloc-1.78.exe D:/Folder/fileToAnalayse > outputfile.txt''
 
''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 30: Line 38:
 
<!-- Provide *evidence* of development activity of the tool. For example, RSS feeds for code issues or commits. -->
 
<!-- Provide *evidence* of development activity of the tool. For example, RSS feeds for code issues or commits. -->
 
<!-- Add the OpenHub.com ID for the tool, if known. -->
 
<!-- Add the OpenHub.com ID for the tool, if known. -->
 
+
{{Infobox_tool_details
The tool is now released at GitHub. [https://github.com/AlDanial/cloc/releases CLOC Page on GitHub]
+
|releases_rss=
There are new releases roughly twice a year.
+
|issues_rss=
 +
|mailing_lists=
 +
|ohloh_id=
 +
}}

Please note that all contributions to COPTR are considered to be released under the Attribution-ShareAlike 3.0 Unported (see COPTR:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)