1
0
mirror of https://github.com/chylex/Code-Statistics.git synced 2024-11-24 03:42:46 +01:00
Commit Graph

175 Commits

Author SHA1 Message Date
bd9dcf3920 Rename ImportStatement to Import 2016-02-23 18:20:40 +01:00
f07178749b Add Java Modifiers enum 2016-02-23 18:20:15 +01:00
205d201a9c Move JavaCharacters and JavaParseUtils to Java.Utils namespace 2016-02-23 17:40:46 +01:00
08bbe5e583 Add .jav extension as a Java code file 2016-02-23 17:19:39 +01:00
f5caac32e0 Add Java import parsing and stats 2016-02-23 16:52:38 +01:00
6f4e08548f Fix Java package reading (add count to output, skip semicolon) 2016-02-23 16:34:26 +01:00
32daad3651 Add CodeParser.ReadToSkip and update CodeParser unit tests 2016-02-23 16:33:45 +01:00
7186fec76d Work on Java parsing (fix unused PrepareCodeFile, add package count) 2016-02-23 16:23:38 +01:00
d709da2545 Override Equals, hash code, equality operators in Java Annotation struct 2016-02-23 16:11:34 +01:00
f316ae6e34 Move Java space skipping to JavaState from JavaCodeParser 2016-02-23 15:41:28 +01:00
0d1de755c2 Override Clone in JavaCodeParser 2016-02-23 15:41:08 +01:00
a9800c8a48 Implement package declaration reading in Java files 2016-02-23 14:54:02 +01:00
5989531bd6 Add CodeParser.ReadTo with unit tests 2016-02-23 14:46:30 +01:00
48823c2ece Add CodeParser.SkipIfMatch with unit tests 2016-02-23 14:35:24 +01:00
b7055cee67 Rename SkipBlockGet to ReadBlock and NextIdentifier to ReadIdentifier 2016-02-22 23:03:57 +01:00
cc97f3938e Push current status of Java parsing (unfinished package reading, string.Empty tweak) 2016-02-22 17:21:24 +01:00
aca1a447b5 Add JavaCodeParser.ReadAnnotation with unit tests 2016-02-22 16:52:20 +01:00
6ca477d7da Add JavaCodeParser.ReadFullTypeName 2016-02-22 16:51:20 +01:00
a22252a0ed Add Java element structs - Annotation & ImportStatement 2016-02-22 16:43:28 +01:00
118977a57c Add JavaParseUtils.FullToSimpleName with unit tests 2016-02-22 16:40:14 +01:00
9502461ba2 Add a basic skeleton for JavaCodeParser class to handle java code files 2016-02-22 14:36:53 +01:00
fc2fe08fef Add JavaCharacters.IsNotReservedWord and IsWhiteSpace (replace IsValidIdentifier) 2016-02-22 14:36:06 +01:00
b39c6ded32 Add identifier reading to CodeParser with unit tests 2016-02-22 13:53:28 +01:00
5912301e06 Add documentation and unit tests for CodeParser.Clone 2016-02-22 13:45:24 +01:00
56fae34448 Add public CodeParser cloning, fix SubstrIndex again, add Skip 2016-02-22 13:26:06 +01:00
61138391d9 Prepare CodeParser for being extended 2016-02-22 13:11:41 +01:00
21519be744 Improve unit tests for CodeParser and fix a block reading cursor index bug 2016-02-22 13:10:01 +01:00
0decbbfec3 Add a basic CodeParser class for code navigation plus unit tests 2016-02-22 02:03:02 +01:00
1bc30401f1 Add a WIP JavaCharacters class with identifier characters 2016-02-21 23:28:04 +01:00
899ab4516e Do minor refactoring (convert JavaFileInfo to class, rename ProcessCodeFile) 2016-02-21 22:53:01 +01:00
d5b589fbcb Change method signature of PrepareFiileContents to use string instead of File 2016-02-21 15:59:21 +01:00
652b78dc0f Address a couple concerns from static code analysis 2016-02-20 23:46:17 +01:00
49596be234 Add AbstractLanguageFileHandler.PrepareFileContents and implement in existing handlers 2016-02-20 23:15:00 +01:00
2950aaa653 Add JavaParseUtils with basic java code file processing using regex 2016-02-20 23:14:35 +01:00
f468c1c813 Make searchData in Project public 2016-02-20 22:58:33 +01:00
1ba4bed9d2 Change File.Contents to a single string instead of a string array 2016-02-19 21:27:58 +01:00
feff908b70 Add argument check to ParseUtils.CountCharacters 2016-02-19 16:22:52 +01:00
3656b240c9 Add essential Java handling classes 2016-02-19 15:57:12 +01:00
efad2b0b44 Work on language file handler (max/avg values, top file lists) 2016-02-19 15:56:35 +01:00
08180e422b Create a new ParseUtils class with methods specific to code 2016-02-19 15:54:30 +01:00
71f7e0818d Rename ParseUtils to StringUtils, since it consists of very general methods 2016-02-19 15:46:54 +01:00
3836c3a6b6 Rename Variables.ArrayAdapter.ToString to ToStringFormat 2016-02-19 13:08:47 +01:00
2750f542a4 Fix number formatting for array variables 2016-02-19 13:07:57 +01:00
aca6c9d62e Add FileIntValue struct to assign numbers to files 2016-02-18 23:24:47 +01:00
50ae10443a Add IFileHandler.FinalizeProject to run after all files are processed 2016-02-18 22:21:54 +01:00
f2715d25b9 Add extension utility class for special int variable handling 2016-02-18 22:21:21 +01:00
b4c4ed8e55 Fix int variable formatting when using Variables.SetVariable 2016-02-18 22:04:42 +01:00
3adc7d29fa Move ParseUtils to Handling/Utils namespace 2016-02-18 21:57:10 +01:00
3a567abdaf Convert array sorter to Comparison<T> and update AssetHandler to use new methods 2016-02-18 18:55:37 +01:00
67f4e6c88c Improve support for int values in Variables 2016-02-18 13:48:57 +01:00
73f7c5918a Add total line and character count with minor refactorings to language handlers 2016-02-18 02:50:58 +01:00
a553299f74 Add custom int variable formatting (separate thousands with spaces) 2016-02-18 02:43:14 +01:00
88d19b717b Add an amount param to Variables.Increment 2016-02-18 02:34:47 +01:00
bce5c1a1bf Reimplement asset type counting and sorting 2016-02-17 23:49:06 +01:00
3d5e3f825f Use invariant culture in Variables.SetVariable/Increment 2016-02-17 23:46:27 +01:00
367c7c194e Add array sorting capability to Variables 2016-02-17 23:38:51 +01:00
6c98183c59 Add variable update to array adapter and add safeguard for anon string,string dict typecasting 2016-02-17 23:24:31 +01:00
23a33399e5 Rewrite project state objects and setup to use the handler objects instead of their types 2016-02-17 23:23:21 +01:00
9f70922996 Add project setup to IFileHandler and state objects to Variables 2016-02-17 22:05:02 +01:00
edcd54df82 Move ParseUtils to Handling/Parsing namespace 2016-02-17 17:06:45 +01:00
e823a95806 Add AbstractFileHandler & AbstractLanguageFileHandler and update existing handlers to extend them 2016-02-17 17:04:23 +01:00
d0fbd5f283 Add support for default variable values in templates 2016-02-17 16:50:29 +01:00
55a605b868 Redo project load cancel to be safe and wait for the cancel to be acknowledged 2016-02-17 16:40:38 +01:00
fad8a4640f Add a Project class to handle all file processing and variable generation 2016-02-17 16:30:53 +01:00
080a6e43b5 Add total weight handling to HandlerList 2016-02-17 16:02:19 +01:00
8800f0b044 Add integer value handling and an Increment method to Variables 2016-02-17 15:56:10 +01:00
c59d2c5a77 Reimplement FileHandlers class into HandlerList and remove IFileHandler.IsFileValid 2016-02-17 14:58:51 +01:00
c05ba78dcb Fix missing method error in JavaHandler 2016-02-17 14:21:50 +01:00
66cc7d6384 Update existing handlers to use the interfaces, and add FolderHandler 2016-02-17 14:20:25 +01:00
f27f4aed5e Rework abstract handlers into interfaces 2016-02-17 14:19:58 +01:00
da778a17e5 Readd the bare skeletons of file handler classes 2016-02-17 00:01:39 +01:00
65351ff5f1 Move ParseUtils to a different namespace 2016-02-16 23:59:47 +01:00
fe6ab46cb4 Implement variable handling 2016-02-16 00:59:43 +01:00
2f335bc6a8 Add dummy methods to Variables class 2016-02-16 00:21:54 +01:00
b25732114d Add an empty Variables class to use for data handling in future 2016-02-15 23:59:19 +01:00