8000 Comparing enarx:master...warthog9:master · enarx/spdx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: enarx/spdx
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a ba 10000 se ref
...
head repository: warthog9/spdx
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 1 file changed
  • 1 contributor

Commits on Apr 5, 2024

  1. Update regex matching to handle proper class escaping

    On Python 3.12 it's throwing compile warnings on the regex compiles:
    
    ```
    spdx/verify-spdx-headers:8: SyntaxWarning: invalid escape sequence '\s'
      SPDX = re.compile(f'SPDX-License-Identifier:\s+({SLUG.pattern})')
    spdx/verify-spdx-headers:21: SyntaxWarning: invalid escape sequence '\s'
      pattern = f"^{init}\s*{SPDX.pattern}\s*{fini}\\s*$"
    spdx/verify-spdx-headers:21: SyntaxWarning: invalid escape sequence '\s'
      pattern = f"^{init}\s*{SPDX.pattern}\s*{fini}\s*$"
    ```
    
    This escapes the the '\s' to be '\\s' instead as that is compliant,
    seems to compile correctly, and makes the warning go away.  Quick
    checking on my own repos seemed to not break anything.
    
    Signed-off-by: John 'Warthog9' Hawley <jhawley@tenstorrent.com>
    warthog9 committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    d33fdf8 View commit details
    Browse the repository at this point in the history
  2. Add typescript (.ts) checking

    This more or less matches c++ with the exception that it's an
    interpretted language and in theory could use the shebang syntax.
    
    should work on .ts files.
    
    Signed-off-by: John 'Warthog9' Hawley <jhawley@tenstorrent.com>
    warthog9 committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    7f6384e View commit details
    Browse the repository at this point in the history
  3. Ignore symlinks in the tree walk

    Trying to open a symlink directly doesn't go well, and may reference
    things outside the repository.  Assuming that a symlink doesn't need to
    be independently opened and checked as if the file is in the repository
    it'll get picked up elsewhere, and this would just be a dupe, or if it's
    external it's not part of the repository and not entirely useful to
    check anyway.
    
    If it's a symlink, just skip it.
    
    Signed-off-by: John 'Warthog9' Hawley <jhawley@tenstorrent.com>
    warthog9 committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    37593c1 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2024

  1. feat: add shell (.sh) checking

    This more or less matches python, and should be fine for just about all
    shells that make use of '.sh' (typically) as a file extension
    
    should work on .sh files.
    
    Signed-off-by: John 'Warthog9' Hawley <jhawley@tenstorrent.com>
    warthog9 committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    3110e67 View commit details
    Browse the repository at this point in the history
Loading
0