RFR: 1236: Add jcheck option to check for large binary files [v4]

Guoxiong Li gli at openjdk.java.net
Thu Dec 2 06:42:26 UTC 2021


> Hi all,
> 
> This patch adds the large binary file check to the jcheck.
> 
> The corresponding configuration is like the following code. Each key/value in the `[checks "binary"]` is a mapper. The `key` means the file pattern and the `value` means the limited file size. For example, `.*\.bin=200B` means the file which ends with `.bin` should not exceed 200 Bytes.
> 
> 
> [checks]
> error = binary
> 
> [checks "binary"]
> .*.bin=200B
> .*.o=1k
> 
> 
> The limited file size can use one of these several units:  b(Byte), kb(KiloByte), mb(MegaByte), gb(GigaByte). The units is case insensitive, which means the `Kb`, `kB` and `KB` are equals to `kb(KiloByte)`. If the unit is not provided, it defauts to `b(Byte)`. And these is no a unit called `bit`.
> 
> The corresponding test cases are added.
> 
> Best Regards,
> -- Guoxiong

Guoxiong Li has updated the pull request incrementally with one additional commit since the last revision:

  Enable the binary check.

-------------

Changes:
  - all: https://git.openjdk.java.net/skara/pull/1247/files
  - new: https://git.openjdk.java.net/skara/pull/1247/files/3c81b06d..ae206e35

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=skara&pr=1247&range=03
 - incr: https://webrevs.openjdk.java.net/?repo=skara&pr=1247&range=02-03

  Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/skara/pull/1247.diff
  Fetch: git fetch https://git.openjdk.java.net/skara pull/1247/head:pull/1247

PR: https://git.openjdk.java.net/skara/pull/1247


More information about the skara-dev mailing list