Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
9aa1f2b7
Commit
9aa1f2b7
authored
Nov 13, 2015
by
Christine Lytwynec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use .jshintignore instead of hardcoded directory list
parent
04c0b3ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
.jshintignore
+2
-2
pavelib/quality.py
+2
-4
scripts/all-tests.sh
+1
-1
No files found.
.jshintignore
View file @
9aa1f2b7
common/static/js
/vendor
lms/static/js/vendor
**
/vendor
node_modules
pavelib/quality.py
View file @
9aa1f2b7
...
...
@@ -272,11 +272,9 @@ def run_jshint(options):
jshint_report
=
jshint_report_dir
/
"jshint.report"
_prepare_report_dir
(
jshint_report_dir
)
jshint_directories
=
[
"common/static/js"
,
"cms/static/js"
,
"lms/static/js"
]
sh
(
"jshint {
lis
t} --config .jshintrc >> {jshint_report}"
.
format
(
list
=
(
" "
.
join
(
jshint_directories
))
,
jshint_report
=
jshint_report
"jshint {
roo
t} --config .jshintrc >> {jshint_report}"
.
format
(
root
=
Env
.
REPO_ROOT
,
jshint_report
=
jshint_report
),
ignore_error
=
True
)
...
...
scripts/all-tests.sh
View file @
9aa1f2b7
...
...
@@ -12,7 +12,7 @@ set -e
# Violations thresholds for failing the build
export
PYLINT_THRESHOLD
=
5650
export
JSHINT_THRESHOLD
=
370
0
export
JSHINT_THRESHOLD
=
939
0
doCheckVars
()
{
if
[
-n
"
$CIRCLECI
"
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment