Skip to content

Tokei output compatibility #104

Description

@lu-zero

See tokei

  • tabular output
  • json output
  • cbor/toml/yaml output

Activity

  1. Luni-4 commented on Apr 3, 2020

    @Luni-4
    Collaborator

    The tabular output would be difficult to read because rust-code-analysis has lots of metrics compared to Tokei. The json output is already implemented.

  2. lu-zero commented on Apr 3, 2020

    @lu-zero
    CollaboratorAuthor

    Having a table per-metric should solve the problem of having way too many columns I guess.

    I do not have strong opinions in this regard, but would be nice to have a way to see the data from the cli w/out piping the json to something that formats it though.

  3. Luni-4 commented on Apr 3, 2020

    @Luni-4
    Collaborator

    I do not have strong opinions in this regard, but would be nice to have a way to see the data from the cli w/out piping the json to something that formats it though.

    Right, but for now the tabular option has low-priority compared to your third item :)

  4. self-assigned this
    on Apr 3, 2020
  5. Luni-4 commented on Apr 27, 2020

    @Luni-4
    Collaborator

    The tabular format presents a series of problems.

    Let m be the number of files in a directory, n the number of function spaces and k the number of tables. Let also suppose that each struct is represented by a table.

    The final number of tables is then equal to: m * n * k
    if the values of the three variables are pretty large, we would get an enormous output, difficult to analyze.

    Possible approaches could be the following ones:

    • Print only global metrics for each file
    • Print only determined metrics for each file and function space
    • Do not implement the tabular approach for rust-code-analysis
  6. removed their assignment
    on Jun 30, 2020
  7. Luni-4 commented on Jul 1, 2020

    @Luni-4
    Collaborator

    Closed in favor of #163

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions