Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need only the result of copyright and license. #1310

Open
SaravanaRaja88 opened this issue Dec 7, 2018 · 2 comments
Open

Need only the result of copyright and license. #1310

SaravanaRaja88 opened this issue Dec 7, 2018 · 2 comments

Comments

@SaravanaRaja88
Copy link

Hi,

I would like to have a tabular view of the copyright and license details. I dont want to list the file details to be present in my final html output file. Is this supported by scancode.

Thanks,
Saravana Raja

@pombredanne
Copy link
Member

@SaravanaRaja88 If you are doing this because of #1309 ... then see #1309 (comment)

Otherwise, you can create a custom template to output the things you want the way you like and only the things you want.
For this use these two options:

    --custom-output FILE    Write scan output to FILE formatted with the custom
                            Jinja template file.
    --custom-template FILE  Use this Jinja template FILE as a custom template.

and to get an example of the Jinja template, see https://github.com/nexB/scancode-toolkit/blob/b51c74a3f61bde107f0c93e6312449e5741f896e/src/formattedcode/templates/html/template.html

The data passed down to the template are defined here: https://github.com/nexB/scancode-toolkit/blob/b51c74a3f61bde107f0c93e6312449e5741f896e/src/formattedcode/output_html.py#L240

But as said before, the best is likely to use the standard JSON output and the AboutCode manager app to browse the results https://github.com/nexB/aboutcode-manager

@pombredanne
Copy link
Member

@SaravanaRaja88 ping? any feedback?

pombredanne pushed a commit that referenced this issue Jul 14, 2021
This commit adds a lexer for linux kernel logs as outputted by `dmesg`
pombredanne pushed a commit that referenced this issue Sep 8, 2022
This commit adds a lexer for linux kernel logs as outputted by `dmesg`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants