summaryrefslogtreecommitdiff
path: root/lib/CheckDir.hs (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-10-24a year went byHEADmainstuebinm1-284/+0
This does many meta-things, but changes no functionality: - get rid of stack, and use just cabal with a stackage snapshot instead (why did I ever think stack was a good idea?) - update the stackage snapshot to something halfway recent - thus making builds work on nixpkgs-23.05 (current stable) - separating out packages into their own cabal files - use the GHC2021 set of extensions as default - very slight code changes to make things build again - update readme accordingly - stylish-haskell run
2022-10-11code formatterstuebinm1-1/+1
2022-10-11use template haskell aeson, not genericsstuebinm1-1/+0
this has been bothering me for MONTHS, and it compiles faster now. also fixed some warnings
2022-03-19unbreak a very, very long rebasestuebinm1-3/+4
2022-03-19walint: yet more strictnessstuebinm1-2/+2
(though this time it doesn't seem to do much, if anything)
2022-03-19make tiled stricter (and organise some imports)stuebinm1-1/+1
2022-03-19separate tiled modules out into own packagestuebinm1-1/+1
2022-03-19switch to universum preludestuebinm1-43/+59
also don't keep adjusted maps around if not necessary
2022-03-19sprinkle some NFData everywherestuebinm1-5/+9
(also some evaluateNF, leading to slightly less memory usage)
2022-03-19server: simple servant-lucid stuffstuebinm1-2/+1
2022-03-19use hpack and clean up modulesstuebinm1-1/+1
as annoying as yaml is, cabal's package format is somehow worse, apparently
2021-12-30add dot language output for repository map graphsstuebinm1-3/+6
2021-12-29maps, maps, and yet more mapsstuebinm1-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)
2021-12-26separate blocking for separate contextsstuebinm1-1/+1
(audio links now have their own allowlist, which won't put things through the dereferrer)
2021-12-23add suggestions for misspelled propertiesstuebinm1-1/+1
(suggestions are shown only if they have a Damerau-Levenshtein distance <= 4, which seems to yield reasonably good results)
2021-12-23limit output for frequent lintsstuebinm1-1/+0
it's now limited to just the first ten contexts, then an ellipsis
2021-12-18fix broken import from an unhappy rebasestuebinm1-1/+1
2021-12-18change badge output formatstuebinm1-8/+3
(following a discussion with hxchn)
2021-12-18print list of maps in output jsonstuebinm1-0/+1
2021-12-17simple graphviz visualisation of a repositorystuebinm1-3/+7
might be useful to have
2021-12-17some simple graph algorithmsstuebinm1-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.
2021-12-16abort copying on missing assetsstuebinm1-1/+3
2021-12-04refuse doubled namesstuebinm1-1/+1
2021-12-02collect badges from object layersstuebinm1-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.
2021-11-28various fixes to bugsstuebinm1-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
2021-11-23why oh why does the prelude contain unsafe functionsstuebinm1-1/+1
some parts of haskell are really, really old …
2021-11-23add a severity attribute to the json outputstuebinm1-11/+16
2021-11-17small fixesstuebinm1-8/+7
2021-11-17exit with code 1 if maximum lint level exceededstuebinm1-8/+18
2021-11-14Functional jitsiRoomAdminTag adjustmentstuebinm1-11/+8
also yet another typeclass™, because why not?
2021-11-10copy map assets (and refuse if any are missing)stuebinm1-2/+9
2021-11-10extra module for repository writeoutstuebinm1-9/+4
2021-11-09first example of a map adjustmentstuebinm1-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.
2021-10-01rename to walintstuebinm1-25/+25
2021-09-30check if assets existstuebinm1-8/+40
2021-09-30nicer json output which leaks less haskell namesstuebinm1-9/+10
2021-09-30simple map-map link dependency checkingstuebinm1-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.
2021-09-23prettier pretty printing and stuffstuebinm1-6/+10
also, configurable log level, which only required relaxing the type system once!
2021-09-23some documentationstuebinm1-2/+11
2021-09-23handle all maps in entire repositoriesstuebinm1-38/+60
(+ checking that paths don't run outside of respositories)
2021-09-23very naïve handling of directoriesstuebinm1-0/+76