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
GitLab 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
9bc7b9bd
Commit
9bc7b9bd
authored
3 years ago
by
Sven G. Brönstrup
Browse files
Options
Downloads
Patches
Plain Diff
Only suggert door properties on variables
parent
22ff0a5b
No related branches found
No related tags found
1 merge request
!1
Extended scripts support
Pipeline
#10165
passed
3 years ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/Properties.hs
+15
-15
15 additions, 15 deletions
lib/Properties.hs
with
15 additions
and
15 deletions
lib/Properties.hs
+
15
−
15
View file @
9bc7b9bd
...
...
@@ -261,16 +261,16 @@ checkObjectProperty obj p@(Property name _) = case name of
"default"
->
do
isBool
p
require
Property
"door"
suggest
Property
"door"
"persist"
->
do
isBool
p
require
Property
"door"
suggest
Property
"door"
"openLayer"
->
do
isString
p
require
Property
"door"
suggest
Property
"door"
"closeLayer"
->
do
isString
p
require
Property
"door"
suggest
Property
"door"
"openSound"
->
do
isString
p
...
...
@@ -278,10 +278,10 @@ checkObjectProperty obj p@(Property name _) = case name of
(
dependsOn
.
Link
)
(
dependsOn
.
Local
)
unless
(
containsProperty
obj
"soundRadius"
)
$
suggest
"set
\"
soundRadius
\"
to a limit the door sound to a certain area
\"
."
unless
(
containsProperty
obj
"soundRadius"
)
$
suggest
"set
\"
soundRadius
\"
to a limit the door sound to a certain area
\"
."
require
Property
"door"
suggest
Property
"door"
"closeSound"
->
do
isString
p
...
...
@@ -289,21 +289,21 @@ checkObjectProperty obj p@(Property name _) = case name of
(
dependsOn
.
Link
)
(
dependsOn
.
Local
)
requireProperty
"door"
unless
(
containsProperty
obj
"soundRadius"
)
$
-- Do not suggest again if already suggested for openSound
unless
(
containsProperty
obj
"openSound"
)
$
suggest
"set
\"
soundRadius
\"
to a limit the door sound to a certain area
\"
."
suggestProperty
"door"
"soundRadius"
->
do
isInt
p
unless
(
containsProperty
obj
"soundRadius"
)
$
suggest
"set
\"
soundRadius
\"
to a limit the door sound to a certain area
\"
."
requireProperty
"door"
_
->
warn
$
"unknown object property "
<>
prettyprint
name
<>
"."
where
require
Property
req
=
do
suggest
Property
req
=
do
unless
(
containsProperty
obj
req
)
$
complain
(
"property "
<>
prettyprint
req
<>
" is required by property "
<>
prettyprint
name
<>
"."
)
suggest
(
"property "
<>
prettyprint
req
<>
" is suggested for property "
<>
prettyprint
name
<>
"."
)
-- | Checks a single (custom) property of an objectgroup layer
checkObjectGroupProperty
::
Property
->
LintWriter
Layer
...
...
This diff is collapsed.
Click to expand it.
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