Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fc-pregmod
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
Service Desk
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
Show more breadcrumbs
macaronideath
fc-pregmod
Commits
0901c85c
Commit
0901c85c
authored
5 years ago
by
brickode
Browse files
Options
Downloads
Patches
Plain Diff
Updated sanityCheck
parent
4d3ef0c9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sanityCheck.sh
+4
-2
4 additions, 2 deletions
sanityCheck.sh
with
4 additions
and
2 deletions
sanityCheck.sh
+
4
−
2
View file @
0901c85c
...
@@ -110,8 +110,8 @@ $GREP -e "<<option\([lg]t\?\|default\) *>" -- 'src/*' | grep -v src/js | myprint
...
@@ -110,8 +110,8 @@ $GREP -e "<<option\([lg]t\?\|default\) *>" -- 'src/*' | grep -v src/js | myprint
$GREP
-e
"<<option "
--and
--not
-e
"<<option
\s\+\(
-
\?
[0-9]
\+\|
[
\'\"
].*[
\'\"
]
\|
false
\|
true
\)\s\+
[
\`\'\"
].*[
\'\"\`
]"
--
'src/*'
|
grep
-v
src/js | myprint
"OptionBadArguments4"
$GREP
-e
"<<option "
--and
--not
-e
"<<option
\s\+\(
-
\?
[0-9]
\+\|
[
\'\"
].*[
\'\"
]
\|
false
\|
true
\)\s\+
[
\`\'\"
].*[
\'\"\`
]"
--
'src/*'
|
grep
-v
src/js | myprint
"OptionBadArguments4"
$GREP
-e
"<<if def [^(>]*[&|]"
--
'src/*'
| myprint
"AddBracketsAroundDef2"
$GREP
-e
"<<if def [^(>]*[&|]"
--
'src/*'
| myprint
"AddBracketsAroundDef2"
# check for missing ; before statement
# check for missing ; before statement
$GREP
'if $ '
--
'src/*'
| myprint
"
m
issing ; before statement"
$GREP
'if $ '
--
'src/*'
| myprint
"
M
issing ; before statement"
$GREP
'elseif $ '
--
'src/*'
| myprint
"
m
issing ; before statement"
$GREP
'elseif $ '
--
'src/*'
| myprint
"
M
issing ; before statement"
# Check for an unrecognized letter before >>
# Check for an unrecognized letter before >>
$GREP
"[^]a-zA-Z0-9
\"
)}'+-
\*\`
] *>>"
--
'src/*'
| myprint
"StrangeCharacterAtEndOfCommand"
$GREP
"[^]a-zA-Z0-9
\"
)}'+-
\*\`
] *>>"
--
'src/*'
| myprint
"StrangeCharacterAtEndOfCommand"
# Check for a . inside a <<>>
# Check for a . inside a <<>>
...
@@ -125,6 +125,8 @@ $GREP -E "</span>(\.|,|;|:)\s" -- src/*.js | myprint "WrongSelectorPunctuation"
...
@@ -125,6 +125,8 @@ $GREP -E "</span>(\.|,|;|:)\s" -- src/*.js | myprint "WrongSelectorPunctuation"
#$GREP -E "\(.(\+|\-|\*|\/|\=)." -- src/*.js :^Jquery.js,^dTree.js,^dTree.min.js,^format.js,^mousetrap.js | myprint "MissingWhitespace"
#$GREP -E "\(.(\+|\-|\*|\/|\=)." -- src/*.js :^Jquery.js,^dTree.js,^dTree.min.js,^format.js,^mousetrap.js | myprint "MissingWhitespace"
# Check for @@ selector instead of <span> selector
# Check for @@ selector instead of <span> selector
$GREP
"@@
\.
"
--
src/
*
.js | myprint
"WrongSelectorUsed"
$GREP
"@@
\.
"
--
src/
*
.js | myprint
"WrongSelectorUsed"
# Check for JSdoc inside function declaration
$GREP
".
\=
.
\/\*\*
"
--
src/
*
.js | myprint
"WrongJSdocFormat"
# Check that we do not have any variables that we use only once. e.g. $onlyUsedOnce
# Check that we do not have any variables that we use only once. e.g. $onlyUsedOnce
# Ignore *Nationalities
# Ignore *Nationalities
...
...
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