Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
walint
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
hub
walint
Commits
f116e648
Commit
f116e648
authored
2 years ago
by
stuebinm
Browse files
Options
Downloads
Patches
Plain Diff
linter: link hackery for divoc fallback
parent
3bcc4a60
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/LintConfig.hs
+1
-1
1 addition, 1 deletion
lib/LintConfig.hs
lib/Properties.hs
+3
-1
3 additions, 1 deletion
lib/Properties.hs
with
4 additions
and
2 deletions
lib/LintConfig.hs
+
1
−
1
View file @
f116e648
...
...
@@ -182,7 +182,7 @@ expandWorlds config = config { configUriSchemas = configUriSchemas' }
assemblysubsts
=
DomainSubstitution
(
M
.
fromList
generated
)
[
"map"
]
where
generated
=
configAssemblies
config
<&>
\
slug
->
(
slug
,
"/
@
/"
<>
configEventSlug
config
<>
"/"
<>
slug
)
<&>
\
slug
->
(
slug
,
"/
_/general
/"
<>
configEventSlug
config
<>
"/"
<>
slug
)
instance
(
FromJSON
(
LintConfig
a
))
=>
Argument
(
LintConfig
a
)
where
parseArgument
str
=
...
...
This diff is collapsed.
Click to expand it.
lib/Properties.hs
+
3
−
1
View file @
f116e648
...
...
@@ -683,7 +683,9 @@ unwrapPath str f = case parsePath str of
else
complain
$
"cannot acess paths
\"
"
<>
str
<>
"
\"
which is outside your repository."
NotAPath
->
complain
$
"path
\"
"
<>
str
<>
"
\"
is invalid."
AbsolutePath
->
forbid
"absolute paths are disallowed. Use world:// instead."
UnderscoreMapLink
->
forbid
"map links using /_/ are disallowed. Use world:// instead."
UnderscoreMapLink
->
suggest
"we know there's been some confusion about links; but you can
\
\
still use world:// instead of /_/ (though the latter is now also
\
\
allowed to keep maps working)"
AtMapLink
->
forbid
"map links using /@/ are disallowed. Use world:// instead."
PathVarsDisallowed
->
forbid
"extended API variables are not allowed in asset paths."
...
...
This diff is collapsed.
Click to expand it.
stuebinm
@stuebinm
mentioned in commit
e4b0ae39
·
2 years ago
mentioned in commit
e4b0ae39
mentioned in commit e4b0ae395f3207f4bbaebbf42a3d3a28a516489d
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment