Commit Graph

86 Commits

Author SHA1 Message Date
martoon
fd949bc3c8
Rename the project to xrefcheck
Problem: the previous name `crossref-verifier` was found long and
boring.

Solution: rename to `xrefcheck`.
2020-01-14 12:17:01 +03:00
Alexander Bantyev
38bd3b7920
Merge pull request #16 from serokell/balsoft/static-building
[INT-111] Allow to build crossref-verify statically
2019-12-26 15:56:50 +03:00
Alexander Bantyev
c98c434201
Add buildkite steps for static building and releasing 2019-12-26 15:43:45 +03:00
Alexander Bantyev
add5f449e3
Allow to build crossref-verify statically 2019-12-26 15:43:44 +03:00
Ivan Gromakovskii
84f8e92da1
Merge pull request #15 from serokell/gromak/int128-license
[INT-128] Update licenses
2019-12-21 00:11:32 +03:00
Alexander Bantyev
5678523031
Bootstrap nixpkgs 2019-12-20 16:50:00 +03:00
Ivan Gromakovskii
8bb379c583
[INT-128] Add reuse lint check to CI
Problem: we want to make sure the repo is always REUSE-compliant.

Solution: add a check to CI that runs `reuse lint`.
2019-12-19 16:19:28 +03:00
Ivan Gromakovskii
3b1c666e1e
Add information about REUSE to contribution guidelines
Problem: we use REUSE headers, but casual contributor may not know
anything about them, it makes it harder to contribute.

Solution: describe legal stuff in `CONTRIBUTING.md`.
2019-12-19 16:19:27 +03:00
Ivan Gromakovskii
8060c7187b
[INT-128] Make the repository REUSE compliant
Problem: nowadays we want all files to store licensing information in
machine-readable format and to use reuse tool to check that. But the
repo is not REUSE compliant.

Solution: add `LICENSES` folder and licensing information for each
file.
2019-12-19 16:19:27 +03:00
Ivan Gromakovskii
4592392f02
Update licensing information in package.yaml
Problem: it was agreed with Kostya Ivanov that the copyright owner
is Serokell, so it should be updated in package.yaml.
Also it mentions incorrect license (the one in the repo is MPL-2.0)
and does not have license-file.

Solution: update `copyright` field and `license` field. Also add
`license-file`. Update maintainer as well, because now many people
from Serokell are involved.
I also took the liberty to fix the `github` field.
2019-12-19 16:19:25 +03:00
NaeosPsy
e685f5f813
Merge pull request #14 from serokell/NaeosPsy-patch-1-1
Making readme more readable & typo-free
2019-12-18 19:24:48 +02:00
NaeosPsy
ead4f7b65f
Resolving comments 2019-12-18 14:49:37 +02:00
NaeosPsy
d2ab93b6e4
Making readme more readable & typo-free 2019-12-18 11:44:03 +02:00
Konstantin Ivanov
f51b61433d
Merge pull request #6 from serokell/martoon/int128-nice-readme
Improve readme
2019-12-17 14:01:22 +03:00
martoon
8cb093a62e
Update notScanned section
To support more different way to keep templates for issues and pull
requests.

Also I removed `docs/pull_request_template.md` because `docs` does not
seem to be the canonical choice for such files; if user needs to place
his files in such location, then he can adjust config correspondingly.
2019-12-17 13:41:05 +03:00
martoon
7044c5bcc7
Fix broken link to issues page
Looks it GitHub has changed how links to issues and pull requests pages
work.
2019-12-17 13:41:05 +03:00
martoon
bd3a31db38
Fix output
To have equal number of `\n`s in all cases.
2019-12-17 13:41:05 +03:00
martoon
9e503109b5
Update default config
Problem: it looks like structure of GitHub repositories has changes, and
now issues page can be located under `../../../issues`, not
`../../issues`.

Solution: adjust config.

Also made some fixes in naming and fit all comments into 80 chars.
2019-12-17 13:41:05 +03:00
martoon
5e397495c3
Change issues tracker
Problem: YT is currently private, we'd better use GitHub issues.
2019-12-17 13:41:05 +03:00
martoon
21964d27ca
Improve Usage section 2019-12-17 13:41:05 +03:00
martoon
f928522b59
Add some sections to README
* Motivation
* Aims
* Comparison with other solutions
* Configuring
2019-12-17 13:41:05 +03:00
martoon
af9fd8fcc2
Hide nix section of README under spoiler
Such details can prevent user from reaching "build" and "use" sections.
2019-12-17 13:41:05 +03:00
martoon
d280993076
Add picture with output sample in README 2019-12-17 13:41:05 +03:00
martoon
4fa2f6f9a9
Update promo in README 2019-12-17 13:41:05 +03:00
martoon
d4e6b0363b
Add build status badge 2019-12-17 13:41:05 +03:00
martoon
f344271625
Slightly fix output 2019-12-17 13:41:05 +03:00
Zhenya Vinogradov
af6e256201
Merge pull request #13 from serokell/zhenya/bump-lootbox
Bump lootbox, making this buildable with stack 2
2019-12-16 13:13:14 +03:00
Zhenya Vinogradov
3cf9b90625
Bump lootbox, making this buildable with stack 2 2019-12-16 10:07:19 +03:00
Alexander Bantyev
073bdf72e4
Merge pull request #10 from serokell/zhenya/nix-return-derivation
default.nix: return a derivation instead of a set
2019-12-09 16:51:26 +03:00
Zhenya Vinogradov
b9d81c7248
default.nix: return a derivation instead of a set 2019-12-09 16:47:49 +03:00
Alexander Bantyev
613230db0a
Merge pull request #9 from serokell/balsoft/fix-external-projects
Don't build tests in external projects and use pipeline.yml
2019-12-09 15:02:19 +03:00
Alexander Bantyev
87cf89de2e
Don't build tests in external projects 2019-12-09 14:41:03 +03:00
Konstantin Ivanov
68a1f9d25b
Merge pull request #7 from serokell/martoon/int128-issue-templates
Add issue templates
2019-12-06 19:16:04 +03:00
martoon
e6ceeb9284
Add issue templates
Problem: by default, when creating an issue, user has to fill everything
from scratch and this is not good.

Solution: add issue templates for `task` and `bug`, refer people to
page for openning new issue in `CONTRIBUTING.md`.
2019-12-06 18:38:12 +03:00
Ivan Gromakovskii
f97ded8356
Merge pull request #5 from serokell/balsoft/build-binary
Build binary by default
2019-12-05 20:03:23 +03:00
Alexander Bantyev
5fb8841df8
Also build tests 2019-12-05 19:01:57 +03:00
Alexander Bantyev
bd99e5d7de
Build binary instead of a library 2019-12-05 18:10:04 +03:00
Ivan Gromakovskii
3d7921da5c
Merge pull request #4 from serokell/balsoft/fix-ci
Fix CI to fail when haddock fails
2019-12-05 18:04:25 +03:00
Alexander Bantyev
469e7b8e3b
Fail if haddock is not generated 2019-12-05 18:03:30 +03:00
martoon
49444bc3a4
Improve work with config UX
Problem: after recent fix the user has to specify configuration file
even if it is present in the working directory of crossref-verify run.
That's not convenient.

Solutiion: if custom config path is not specified, first try to find
it under common filenames. When configuration file is not found anyway
we now print a warning before falling back to default config.
2019-12-05 14:15:20 +03:00
Ivan Gromakovskii
0958b30309
Merge pull request #2 from serokell/gromak/bump-resolver
[INT-130] Use newer resolver
2019-12-05 00:28:08 +03:00
Ivan Gromakovskii
482e9b2684
Write some notes about CI in README
Problem: CI uses some temporary workarounds, one may wonder whether
they are necessary and not get an answer.

Solution: write about it in README.
2019-12-05 00:00:41 +03:00
Alexander Bantyev
3fc12f1b8c
Add result* pattern to gitignore 2019-12-05 00:00:40 +03:00
Alexander Bantyev
87f66c44d4
Use niv for cache 2019-12-05 00:00:39 +03:00
Alexander Bantyev
a4356aaf26
Update haskell.nix cache 2019-12-05 00:00:38 +03:00
Alexander Bantyev
64c2b08d8f
Switch to haskell.nix
Co-Authored-By: Yorick van Pelt <yorick@yorickvanpelt.nl>
2019-12-05 00:00:37 +03:00
Alexander Bantyev
198725b792
Add hspec-discover to build-tools of test 2019-12-05 00:00:36 +03:00
Ivan Gromakovskii
2ebbbc1d63
Use newer resolver
Problem: latest available LTS resolver is 14.16 and `crossref-verifier`
doesn't compile with it.

Solution: update resolver to 14.16. Newer versions of some packages
are used from now on. I assume that it shouldn't break anything as
long as tests pass.
`req` stopped using `Default` class, that's the only change in the code
I had to make.
2019-12-05 00:00:34 +03:00
Konstantin Ivanov
6e95538211
Merge pull request #3 from serokell/martoon/int128-prettify
[INT-128] Improve work with config
2019-12-03 23:27:44 +03:00
martoon
44f6008228
Use full scan by default
Initially the primary use case for this tool in my point of view was
repeated runs for a repository until documentation is valid, thus I've
set checking only local refs as default behaviour (checking external
refs takes way longer).
Another motivation was that I expected CI to have one mandatory job for
local scan and one optional for remote refs scan.

Now I think that there are more reasons to perform full scan by default.
* It occured that in CI we usually want to have all checks optional, so
  that someone could temporarily break links on purpose (e.g. in case
  of mutually-dependent pull requests).
* First impression is important, and we want to demostrate all the
  features of the tool in default run.
* If use case mentioned in the very top actually takes place, one can
  add the necessary option, that's fine.
2019-12-03 23:24:57 +03:00