Code Monkey home page Code Monkey logo

check-copyright's People

Contributors

dazza0 avatar dobairoland avatar fhrbata avatar igrr avatar kiznoh avatar kumekay avatar magicarm22 avatar sudeep-mohanty avatar xdanielpaul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

check-copyright's Issues

Pre-commit not Passing result on custom copyright-header

Hi, i want to use your tool, but if i create a custom header, that do not have text "SPDX-FileCopyrightText" or "SPDX-License-Identifier" are failing to pass pre-commit check.
Is it possible to modify script and add config parameters so i can specify:

  1. Do i need to check license
  2. Do i need to check copyright
  3. what regex will be used, to check if headers are present
  4. Add some property to config, so script will not automatically add "SPDX-FileCopyrightText" or "SPDX-License-Identifier" to copyright/license

Work failed in line `is_new_file = args.is_new_file[file_name]`

The check-copyright works for me weeks ago, but currently we found the CI running always fail with:

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/libo/.espressif/python_env/idf4.4_py3.10_env/lib/python3.10/site-packages/check_copyright.py", line 722, in <module>
    main()
  File "/home/libo/.espressif/python_env/idf4.4_py3.10_env/lib/python3.10/site-packages/check_copyright.py", line 684, in main
    wrong_header_files, modified_files, must_be_updated = check_copyrights(args, config)
  File "/home/libo/.espressif/python_env/idf4.4_py3.10_env/lib/python3.10/site-packages/check_copyright.py", line 511, in check_copyrights
    is_new_file = args.is_new_file[file_name]
KeyError: './examples/camera/video_recorder/components/avi_video_process/avi_def.h'

Run follow command in esp-iot-solution repo to reproduce the bug:

python -m check_copyright --verbose --dry-run --ignore tools/ci/ignore_list_copyright.txt --config tools/ci/check_copyright_config.yaml .

Please help to analyze the root of the problem.

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.