GithubHelp home page GithubHelp logo

hayawi / sourcecodeanalyzer Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 34 KB

A simple application that takes an input of a source file, and outputs code analytics

License: MIT License

Java 90.64% JavaScript 4.24% Python 5.13%

sourcecodeanalyzer's Introduction

Source Code Analyzer

A simple application that takes an input of a source file, and outputs total number of lines, number of comments, single line comments, multi-line comments, and TODO statements in comments.

To use the application follow these steps:

  1. execute the CodeAnalyzer.java file. This will prompt the user to give the source file to be analyzed.
  2. After the application completes its analysis, it will write out the results to console, as well as to a file in the same directory as the source file, and with the same name, save for having "Results" appended to it.

Note: The application was made using Test Driven Development, and as such, tests for each class exist in the /testsrc folder, and where applicable, these test cases call upon files in the /testfiles folder

The source code style guide used by me is hosted on my(Yahya Ismail) ePortfolio.

sourcecodeanalyzer's People

Contributors

hayawi avatar

Stargazers

Tom Guo avatar 煎饼果子 avatar Jamie Dishy avatar  avatar

Watchers

James Cloos avatar  avatar

sourcecodeanalyzer's Issues

Trailing Comment Bug

Currently there is a bug in Analytics.java where, if the comment is a trailing comment and there is a " or ' captured in a string, the comment isn't counted
eg. String foo = " hello' " // sample comment

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.