GithubHelp home page GithubHelp logo

dead_code_analyzer's People

Contributors

alainfrisch avatar edwintorok avatar fantazio avatar gasche avatar krizex avatar vprevosto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dead_code_analyzer's Issues

Does not scan any files

I'm trying to use dead_code_analyzer, and it doesn't seem to scan any files.

I ran it using:

docker run -it --mount type=bind,src=$PWD,dst=/app -w /app ocaml/opam:ubuntu-12.04_ocaml-4.04.2 /bin/bash
opam install dead_code_analyzer
dead_code_analyzer.opt --verbose src/*/*.{ml,mli}

with output

Scanning files...
 [DONE]

.> UNUSED EXPORTED VALUES:
=========================

Nothing else to report in this section
--------------------------------------------------------------------------------


.> UNUSED METHODS:
=================

Nothing else to report in this section
--------------------------------------------------------------------------------


.> UNUSED CONSTRUCTORS/RECORD FIELDS:
====================================

Nothing else to report in this section
--------------------------------------------------------------------------------

My understanding is that with the verbose flag it should list all the files it scanned in the output, so I conclude it scanned no files.

Loops on absolute paths

The analyzer loops on absolute paths (e.g. dead_code_analyzer --references /tmp) because of the path normalization function.

I'll submit a tentative fix.

Build fails under 4.06

Under 4.06, the following error occurs during building:

ocamlc -w +A-4-9-40-42 -I +compiler-libs -bin-annot -keep-locs -g -o dead_code_analyzer.byt ocamlcommon.cma deadCode.mli deadFlag.ml deadCommon.ml deadArg.mli deadType.mli deadObj.mli deadType.ml deadArg.ml deadMod.ml deadObj.ml deadCode.ml
File "deadCommon.ml", line 341, characters 9-19:
Error: Unbound record field Ident.name

4.05 support

Hi, I was wondering if you were considering making a release that supports OCaml 4.05 (or even the upcoming 4.06) soon ?

No dead code reported with OCaml > 4.03

I've just tried to compile the current master of dead_code_analyzer (commit e9a4f98), against opam switch 4.05.0+trunk as indicated in the README. Compilation is fine, but make check fails: no unused item is reported in the examples, and success rate according to check is 0%.

As a matter of fact, I tried to use the opam package with 4.04.0, which gave me similar results. Only the package installed within the 4.03.0 switch did report unused elements.

Did I miss something, or is dead_code_analyzer only compatible with 4.03?

New release + Fix OPAM?

The opam file in the main directory claims release 0.9 runs on ocaml 4.05 and higher, but the opam file in the opam repository claims only under 4.05. I suspect that, in fact, only the code at the head of the repo runs in 4.05 and higher.

Perhaps a new release should be cut and an updated opam file submitted?

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.