summaryrefslogtreecommitdiff
path: root/lib/CheckDir.hs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* switch to universum preludestuebinm2022-03-191-43/+59
| | | | also don't keep adjusted maps around if not necessary
* sprinkle some NFData everywherestuebinm2022-03-191-5/+9
| | | | (also some evaluateNF, leading to slightly less memory usage)
* server: simple servant-lucid stuffstuebinm2022-03-191-2/+1
|
* use hpack and clean up modulesstuebinm2022-03-191-1/+1
| | | | as annoying as yaml is, cabal's package format is somehow worse, apparently
* add dot language output for repository map graphsstuebinm2021-12-301-3/+6
|
* maps, maps, and yet more mapsstuebinm2021-12-291-3/+17
| | | | | | | don't add maps to the result if their lint result looks the same as that of another list, just say it happened several times instead (this leads to a rather confusing Eq instance for MapResult which implements a very simple surface-level equality — perhaps change that later)
* separate blocking for separate contextsstuebinm2021-12-261-1/+1
| | | | | (audio links now have their own allowlist, which won't put things through the dereferrer)
* missing entrypoints can be non-fatalstuebinm2021-12-261-7/+8
|
* add suggestions for misspelled propertiesstuebinm2021-12-231-1/+1
| | | | | (suggestions are shown only if they have a Damerau-Levenshtein distance <= 4, which seems to yield reasonably good results)
* limit output for frequent lintsstuebinm2021-12-231-1/+0
| | | | it's now limited to just the first ten contexts, then an ellipsis
* fix broken import from an unhappy rebasestuebinm2021-12-181-1/+1
|
* change badge output formatstuebinm2021-12-181-8/+3
| | | | (following a discussion with hxchn)
* print list of maps in output jsonstuebinm2021-12-181-0/+1
|
* simple graphviz visualisation of a repositorystuebinm2021-12-171-3/+7
| | | | might be useful to have
* some simple graph algorithmsstuebinm2021-12-171-67/+71
| | | | | | | | | | this just checks for maps from which it's impossible to reach `main.json`, and then gives a warning. Properly it should check if these maps have an exit to outside the repository (in which case it may give a suggestion, and an error otherwise). Also, redid some of the CheckDir code. No idea what that mess was, but it's marginally nicer now.
* abort copying on missing assetsstuebinm2021-12-161-1/+3
|
* refuse doubled namesstuebinm2021-12-041-1/+1
|
* collect badges from object layersstuebinm2021-12-021-1/+7
| | | | | this includes a halfway-reasonable parsing of object layers, as well as some monad plumbing to get them all in the right place.
* various fixes to bugsstuebinm2021-11-281-12/+22
| | | | | | | | | | Among them - always set correct exit codes - refuse to write out files if the out path already exists - calculate the overall severity correctly - slightly changed the json output schema - also output the text output format in json - make the default config.json suitable for a production environment
* why oh why does the prelude contain unsafe functionsstuebinm2021-11-231-1/+1
| | | | some parts of haskell are really, really old …
* add a severity attribute to the json outputstuebinm2021-11-231-11/+16
|
* small fixesstuebinm2021-11-171-8/+7
|
* exit with code 1 if maximum lint level exceededstuebinm2021-11-171-8/+18
|
* Functional jitsiRoomAdminTag adjustmentstuebinm2021-11-141-11/+8
| | | | also yet another typeclass™, because why not?
* copy map assets (and refuse if any are missing)stuebinm2021-11-101-2/+9
|
* extra module for repository writeoutstuebinm2021-11-101-9/+4
|
* first example of a map adjustmentstuebinm2021-11-091-6/+18
| | | | | | | | | this also includes some more monad plumbing, and an option for the linter to actually write things out again. Some of the previous commit was reverted a bit since it turned out to be stupid, but overall it was suprisingly easy once I got around to it, so yay! i guess Also includes a fairly silly example of how to use it.
* rename to walintstuebinm2021-10-011-25/+25
|
* check if assets existstuebinm2021-09-301-8/+40
|
* nicer json output which leaks less haskell namesstuebinm2021-09-301-9/+10
|
* simple map-map link dependency checkingstuebinm2021-09-301-11/+68
| | | | | | | | This is purely based on a set difference, i.e. it won't catch stupid things like a map linking to itself, a map link going only one-way, etc. Also, it only handles map links; it doesn't check if all ressource files referenced by a map actually exist.
* prettier pretty printing and stuffstuebinm2021-09-231-6/+10
| | | | | also, configurable log level, which only required relaxing the type system once!
* some documentationstuebinm2021-09-231-2/+11
|
* handle all maps in entire repositoriesstuebinm2021-09-231-38/+60
| | | | (+ checking that paths don't run outside of respositories)
* very naïve handling of directoriesstuebinm2021-09-231-0/+76