M. Zulqarnain
2c44315ce0
refactor: pyupgrade on pavelib & scripts ( #26769 )
2021-03-12 14:14:53 +05:00
Aarif
6af99e64bf
replaced unittest assertions pytest assertions ( #26270 )
2021-02-04 10:08:39 +05:00
Tim McCormack
edeabc3faf
Add --summary-format=json option to XSS linter ( #25851 )
...
This will simplify updating of the linter thresholds file after XSS linter
violations are addressed.
2020-12-11 12:34:04 +00:00
Feanil Patel
2df8b8226b
Merge pull request #22643 from edx/feanil/2to3_asserts
...
Run `2to3 -f asserts . -w` on edx-platform.
2019-12-30 12:13:42 -05:00
Feanil Patel
9cf2f9f298
Run 2to3 -f future . -w
...
This will remove imports from __future__ that are no longer needed.
https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Feanil Patel
70294b0ad2
Run 2to3 -f asserts . -w on edx-platform.
...
https://docs.python.org/3.5/library/2to3.html#2to3fixer-asserts
2019-12-30 10:22:19 -05:00
aarif
61800c619f
replaced StringIO imports with import from six
...
replaced cStringIO and StringIO imports with import from six
fixed StringIO imports
fixed StringIO imports
fixed XSS python-wrap warning
2019-08-08 00:09:16 +05:00
aarif
0bf108ea8a
ran python-modernize and isort on files mentioned in INCR-387
2019-07-10 15:47:38 +05:00
Matt Hughes
2f9819f247
Improve XSS lint for underscore templates
...
See also
https://edx.readthedocs.io/projects/edx-developer-guide/en/latest/conventions/preventing_xss.html#javascript-edx-namespace
The failure totals in test_main appear to've been wrong previously;
I'm just updating them to run clean via `pytest scripts/xsslint/tests`
2019-02-07 13:54:52 -05:00
Calen Pennington
b4fe3474e7
Fix/ignore errors caused by a pycodestyle upgrade
2018-10-31 12:34:50 -04:00
Michael Terry
a34c8c8233
Drop remaining coffee use
...
This basically commits the transpiled CoffeeScript JS (with minor
cleanup) and removes coffee build support.
A tiny amount of support for xblocks exists, because external users
may have xblocks with coffee. But no coffee in our tree anyway.
2018-04-13 14:10:40 -04:00
Anthony Mangano
edc98939b5
Define XSS-linter rules on Linter classes.
2018-03-23 16:58:27 -04:00
Anthony Mangano
3e7df8688f
Add config module for xsslint
2018-03-01 16:52:42 -05:00
Anthony Mangano
07ca440226
Refactor XSS linter into smaller files
2018-03-01 09:46:16 -05:00