-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e8b0e9f
Showing
75 changed files
with
12,763 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[bandit] | ||
skips: B106,B311 | ||
exclude_dirs=writlarge/main/tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"amd": true, | ||
"jquery": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 6 | ||
}, | ||
"plugins": [ | ||
"security", | ||
"scanjs-rules", | ||
"no-unsafe-innerhtml" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:security/recommended" | ||
], | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
4 | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"no-unused-vars": [ | ||
"error", | ||
{"vars": "all", "args": "none"} | ||
], | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"semi": [ | ||
"error", | ||
"always" | ||
], | ||
"max-len": [2, {"code": 80, "tabWidth": 4, "ignoreUrls": true}], | ||
"space-before-function-paren": ["error", "never"], | ||
"space-in-parens": ["error", "never"], | ||
"no-trailing-spaces": ["error"], | ||
"key-spacing": ["error", { "beforeColon": false }], | ||
"func-call-spacing": ["error", "never"], | ||
|
||
/** no-unsafe-innerhtml rule **/ | ||
"no-unsafe-innerhtml/no-unsafe-innerhtml" : 2, | ||
|
||
/** ScanJS rules **/ | ||
"scanjs-rules/assign_to_hostname": 1, | ||
"scanjs-rules/assign_to_href": 1, | ||
"scanjs-rules/assign_to_location": 1, | ||
"scanjs-rules/assign_to_onmessage": 1, | ||
"scanjs-rules/assign_to_pathname": 1, | ||
"scanjs-rules/assign_to_protocol": 1, | ||
"scanjs-rules/assign_to_search": 1, | ||
"scanjs-rules/assign_to_src": 1, | ||
"scanjs-rules/call_Function": 1, | ||
"scanjs-rules/call_addEventListener": 1, | ||
"scanjs-rules/call_addEventListener_deviceproximity": 1, | ||
"scanjs-rules/call_addEventListener_message": 1, | ||
"scanjs-rules/call_connect": 1, | ||
"scanjs-rules/call_eval": 1, | ||
"scanjs-rules/call_execScript": 1, | ||
"scanjs-rules/call_hide": 0, /* hide used often. overly cautious */ | ||
"scanjs-rules/call_open_remote=true": 1, | ||
"scanjs-rules/call_parseFromString": 1, | ||
"scanjs-rules/call_setImmediate": 1, | ||
"scanjs-rules/call_setInterval": 1, | ||
"scanjs-rules/call_setTimeout": 1, | ||
"scanjs-rules/identifier_indexedDB": 1, | ||
"scanjs-rules/identifier_localStorage": 1, | ||
"scanjs-rules/identifier_sessionStorage": 1, | ||
"scanjs-rules/new_Function": 1, | ||
"scanjs-rules/property_addIdleObserver": 1, | ||
"scanjs-rules/property_createContextualFragment": 1, | ||
"scanjs-rules/property_geolocation": 1, | ||
"scanjs-rules/property_getUserMedia": 1, | ||
"scanjs-rules/property_indexedDB": 1, | ||
"scanjs-rules/property_localStorage": 1, | ||
"scanjs-rules/property_mgmt": 1, | ||
"scanjs-rules/property_sessionStorage": 1, | ||
|
||
'security/detect-buffer-noassert': 1, | ||
'security/detect-child-process': 1, | ||
'security/detect-disable-mustache-escape': 1, | ||
'security/detect-eval-with-expression': 1, | ||
'security/detect-new-buffer': 1, | ||
'security/detect-no-csrf-before-method-override': 1, | ||
'security/detect-non-literal-fs-filename': 1, | ||
'security/detect-non-literal-regexp': 1, | ||
'security/detect-non-literal-require': 0, /* requirejs conflict */ | ||
'security/detect-object-injection': 0, /* several false positives */ | ||
'security/detect-possible-timing-attacks': 1, | ||
'security/detect-pseudoRandomBytes': 1, | ||
'security/detect-unsafe-regex': 1 | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.DS_Store | ||
._.DS_Store | ||
._* | ||
*~ | ||
*.pyc | ||
ve | ||
.svn | ||
\#* | ||
local_settings.py | ||
.project | ||
.pydevproject | ||
.settings | ||
.coverage | ||
media/CACHE | ||
node_modules | ||
uploads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
language: python | ||
dist: trusty | ||
sudo: false | ||
python: | ||
- "3.5" | ||
- "3.6" | ||
script: | ||
- make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM ccnmtl/django.base | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# install node stuff | ||
COPY package.json /node/ | ||
RUN cd /node && npm install && touch /node/node_modules/sentinal | ||
|
||
# build virtualenv and run tests | ||
ADD wheelhouse /wheelhouse | ||
RUN /ve/bin/pip install --no-index -f /wheelhouse -r /wheelhouse/requirements.txt \ | ||
&& rm -rf /wheelhouse && touch /ve/sentinal | ||
WORKDIR /app | ||
COPY . /app/ | ||
RUN VE=/ve/ MANAGE="/ve/bin/python manage.py" NODE_MODULES=/node/node_modules/ make | ||
|
||
EXPOSE 8000 | ||
ADD docker-run.sh /run.sh | ||
ENV APP locustempus | ||
ENTRYPOINT ["/run.sh"] | ||
CMD ["run"] |
Oops, something went wrong.