Giter Site home page Giter Site logo

mix-dialyzer's People

Contributors

gabrielgatu avatar rvcas avatar

Stargazers

 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

mix-dialyzer's Issues

Attribution

So it looks like this commit imported several thousand lines of code from dialyxir, but not the copyright notice. Dialyxir is released under the Apache 2.0 license, and you are free to use it's code. However if you do so, you need to comply with the license and reproduce the copyright notice in the LICENSE file. Note that this is true even if you refactor and change the code; thats still a derivative work.

Also in this case it looks like what you are interested in is the parser, pretty printing and warning documentation. This was all developed quite recently by Andrew Summers (@asummers). I think if you are going to use this, and particularly if it is going to be incorporated into the elixir org at some point, he should be specifically attributed for those files. In the dialyxir repo, everyone can see who authored them, but at isn't the case here.

Also one other note, purely technical: you checked in the erlang code built by yecc. Since those are build artifacts, they should be in your .gitignore. Only the .xrl and .yrl files are needed in your repo and hex distribution.

Umbrella project has `nil` application and other symptoms

I can't build/copy a PLT in my umbrella project, it fails on this error:

$ mix dialyzer
* - Dialyzer: configuration file not found. Creating it right now at .dialyzer.exs
* - Creating one or more missing plt.
* - Copying dialyzer_erlang-20-erts-9.3.3_elixir-1.6.5.plt to dialyzer_erlang-20-erts-9.3.3_elixir-1.6.5_deps.plt
** (UndefinedFunctionError) function nil.mods/0 is undefined or private
    nil.mods()
    (mix_dialyzer) lib/dialyzer/plt/builder.ex:86: anonymous fn/1 in Dialyzer.Plt.Builder.collect_files_from_apps/1
    (elixir) lib/enum.ex:2924: Enum.flat_map_list/2
    (elixir) lib/enum.ex:2925: Enum.flat_map_list/2
    (mix_dialyzer) lib/dialyzer/plt/builder.ex:86: Dialyzer.Plt.Builder.collect_files_from_apps/1
    (mix_dialyzer) lib/dialyzer/plt/builder.ex:73: Dialyzer.Plt.Builder.build_plt/3
    (elixir) lib/enum.ex:737: Enum."-each/2-lists^foreach/1-0-"/2
    (elixir) lib/enum.ex:737: Enum.each/2

Here's the output of mix dialyzer.info, note the "invisible" application, the nil app name, and the contained app ordering_models that is in the "Project applications" section (a sibling app depends on it):

$ mix dialyzer.info

Welcome to mix dialyzer! A tool for integrating dialyzer into a project and analyzing discrepances.
Here are some infos about your system:

## Application name

nil

## Applications included into analysis


  ### Erlang applications

  * erts
  * kernel
  * stdlib
  * crypto

  ### Elixir applications

  * elixir

  ### Project applications

  * asn1
  * compiler
  * connection
  * cowboy
  * cowlib
  * crypto
  * db_connection
  * decimal
  * ecto
  * eex
  * file_system
  * gettext
  * kernel
  * logger
  * mime
  * ordering_models
  * phoenix
  * phoenix_ecto
  * phoenix_html
  * phoenix_live_reload
  * phoenix_pubsub
  * plug
  * poison
  * poolboy
  * postgrex
  * public_key
  * ranch
  * runtime_tools
  * ssl
  * stdlib
  *
  * erts
  * kernel
  * stdlib
  * crypto
  * elixir

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.