Releases: acdh-oeaw/repo-file-checker
Releases · acdh-oeaw/repo-file-checker
arche-lib-ingest bumped to 4
3.1.4 composer.json: arche-lib-ingest bumped to 4
Bugfixes
zenodoDOI
A release to track this repository with Zenodo and allow academic referencing.
Bugfixes
option of the Redmine update issue added
The CLI now accepts --redmineIssueId
, --redmineUser
, --redminePswd
, --redmineToken
, --redmineDone
, --redmineMessage
and --redmineAppend
(and also --redmineApiUrl
) parameters allowing to update a corresponding redmine issue with the results of the check.
The minimum set of parameters is --redmineIssueId {id}
and --redmineUser {user} --redminePswd {pswd}
or --redmineToken {token}
. The redmine issued id can be either a top-level curation issue id or the "run repo-file-checker" issue id.
v3.0.0
A complete rewrite of the code:
- CLI enhancements
- it's now enough to specify the dir to test and the dir to write reports into
--match {regex}
parameter added for checking only selected files
- More flexible reports:
- choose from JSON, CSV and HTML or just generate all of them
- HTML report provides all previous formats at once
- Better checks:
- bagit format recognized by presence (and content) of a
bagit.txt
, also if it's stored as a zip, tar gz or tar bz2 archive
(instead of being stored in a subdirectory of abagit
directory) - file duplication recognized by file hashes (instead of file names and size)
- byte order mark check added
- password protection recognition in ods and odt added
- more reliable file content vs file extension checks
- XML schema validation added
- check for corrupted image files added
- arche-assets-based check for formats not accepted by ARCHE added
- bagit format recognized by presence (and content) of a
- Global progress bar.
- Tons of technicalities tuning:
- Performance optimizations
- Checking zip files without uncompressing their whole content
- Switched to maintained bagit library
- HTML report is self-embedded and doesn't suffer from CORS issues
- Various views in the HTML report are now generated with the JavaScript code when the report is being viewed
Bugfixes in the docker image
2.1.1 dockerinit.sh: return non-zero exit code on error
Register as composer's vendor/bin app and add a docker image
The filechecker script is now registered under vendor/bin
and it's also possible to run it using a dedicated docker image.
See the README.md for details.
2.0.0
- Get rid of config.ini file. Pass runtime parameters to the
index.php
instead. - Make index.php exit with a non-zero code on errors:
- Introduce die2() function which not only exits displaying a given message but also sets the exit code to 1 and replace all die() calls witht it.
- Add a quick and dirty solution for tracking if there was an error during the checks (the JsonHandler::writeDataToJsonFile() method checks if there was a call with the $type === 'error')
- Fix PSR-4 autoloading in composer.json and remove manual class file imports (despite the scholarslab/bagit package which doesn't provide autoloading).
- Add composer vendor dir autodetection to index.php in case the package is installed using composer.
- Fix relative paths usage.
Initial release
1.0.0 composer.json: prepare to publish as a composer package