#25 Add an rpmlintrc file, etc.
Merged 2 months ago by music. Opened 2 months ago by music.
rpms/ music/llhttp rpmlintrc  into  rawhide

file modified
+4 -16
@@ -21,9 +21,7 @@ 

              continue  # Do not even check the license

          elif license is None:

              problem = True

-             print(

-                 f"Missing license in package.json for {identity}", file=stderr

-             )

+             print(f"Missing license in package.json for {identity}", file=stderr)

          elif isinstance(license, dict):

              if isinstance(license.get("type"), str):

                  continue
@@ -62,10 +60,6 @@ 

          return "At least one missing license was found."

  

  

- def check_exception(exceptions, name, version):

-     x = args.exceptions

- 

- 

  def parse(package_json_path):

      with package_json_path.open("rb") as pjfile:

          pj = json.load(pjfile)
@@ -85,9 +79,7 @@ 

  def parse_args():

      parser = ArgumentParser(

          formatter_class=RawDescriptionHelpFormatter,

-         description=(

-             "Search for bundled dependencies without declared licenses"

-         ),

+         description=("Search for bundled dependencies without declared licenses"),

          epilog="""

  

  The exceptions file must be a TOML file with zero or more tables. Each table’s
@@ -154,9 +146,7 @@ 

              parser.error(f"Invalid format in {xname}: not an object")

          for tablename, table in args.exceptions.items():

              if not isinstance(table, dict):

-                 parser.error(

-                     f"Non-table entry in {xname}: {tablename} = {table!r}"

-                 )

+                 parser.error(f"Non-table entry in {xname}: {tablename} = {table!r}")

              overlay = {}

              for key, value in table.items():

                  if isinstance(value, str):
@@ -176,9 +166,7 @@ 

              x.update(args.exceptions[add])

          except KeyError:

              if xname is None:

-                 parser.error(

-                     f"No table {add}, as no exceptions file was given"

-                 )

+                 parser.error(f"No table {add}, as no exceptions file was given")

              else:

                  parser.error(f"No table {add} in {xname}")

      # Store the merged dictionary

file added
+7
@@ -0,0 +1,7 @@ 

+ # These are not real spelling errors...

+ addFilter(r" spelling-error \('(llparse|js)', ")

+ addFilter(r" spelling-error \(\"embedder's\", ")

+ # All of the documentation is in the -devel subpackage.

+ addFilter(r"llhttp\..*: no-documentation")

+ # This Source cannot be a URL because it is generated by the bundling script.

+ addFilter(r" invalid-url Source[0-9]+: llhttp-.*-nm-dev\.tar\.xz")

Trivial repo housekeeping, not affecting the contents of the package:

  • Add an rpmlintrc file
  • Format the check-null-licenses script with ruff format (equivalent to black) and remove an unused stub function

Metadata Update from @music:
- Request assigned

2 months ago

Metadata Update from @music:
- Request assigned

2 months ago

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/9d2f93721c614e3ba978ada50f98152e

Pull-Request has been merged by music

2 months ago