Skip to content

Commit 33d0f1a

Browse files
committed
moodle 3.2.2 for azure
0 parents  commit 33d0f1a

File tree

15,982 files changed

+3435675
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

15,982 files changed

+3435675
-0
lines changed

.eslintignore

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Generated by "grunt ignorefiles"
2+
*/**/yui/src/*/meta/
3+
*/**/build/
4+
node_modules/
5+
vendor/
6+
admin/tool/usertours/amd/src/tour.js
7+
admin/tool/usertours/amd/src/popper.js
8+
auth/cas/CAS/
9+
auth/fc/fcFPP.php
10+
enrol/lti/ims-blti/
11+
filter/algebra/AlgParser.pm
12+
filter/tex/mimetex.*
13+
lib/editor/atto/yui/src/rangy/js/*.*
14+
lib/editor/tinymce/plugins/pdw/tinymce/
15+
lib/editor/tinymce/plugins/spellchecker/rpc.php
16+
lib/editor/tinymce/tiny_mce/
17+
lib/adodb/
18+
lib/bennu/
19+
lib/evalmath/
20+
lib/lessphp/
21+
lib/phpexcel/
22+
lib/google/
23+
lib/htmlpurifier/
24+
lib/jabber/
25+
lib/minify/matthiasmullie-minify/
26+
lib/minify/matthiasmullie-pathconverter/
27+
lib/pear/Auth/RADIUS.php
28+
lib/pear/Crypt/CHAP.php
29+
lib/pear/HTML/Common.php
30+
lib/pear/HTML/QuickForm.php
31+
lib/pear/HTML/QuickForm/
32+
lib/pear/PEAR.php
33+
lib/phpmailer/
34+
lib/simplepie/
35+
lib/tcpdf/
36+
lib/typo3/
37+
lib/yuilib/
38+
lib/yuilib/gallery/
39+
lib/jquery/
40+
lib/html2text/
41+
lib/markdown/
42+
lib/recaptchalib.php
43+
lib/xhprof/
44+
lib/xmlize.php
45+
lib/horde/
46+
lib/requirejs/
47+
lib/amd/src/loglevel.js
48+
lib/mustache/
49+
lib/amd/src/mustache.js
50+
lib/graphlib.php
51+
lib/php-css-parser/
52+
lib/rtlcss/
53+
lib/scssphp/
54+
lib/spout/
55+
lib/amd/src/chartjs-lazy.js
56+
lib/maxmind/GeoIp2/
57+
lib/maxmind/MaxMind/
58+
lib/ltiprovider/
59+
media/player/videojs/amd/src/video-lazy.js
60+
media/player/videojs/amd/src/Youtube-lazy.js
61+
media/player/videojs/videojs/
62+
mod/assign/feedback/editpdf/fpdi/
63+
repository/s3/S3.php
64+
theme/boost/scss/bootstrap/
65+
theme/boost/amd/src/alert.js
66+
theme/boost/amd/src/button.js
67+
theme/boost/amd/src/carousel.js
68+
theme/boost/amd/src/collapse.js
69+
theme/boost/amd/src/dropdown.js
70+
theme/boost/amd/src/modal.js
71+
theme/boost/amd/src/popover.js
72+
theme/boost/amd/src/scrollspy.js
73+
theme/boost/amd/src/tab.js
74+
theme/boost/amd/src/tooltip.js
75+
theme/boost/amd/src/util.js
76+
theme/boost/amd/src/tether.js
77+
theme/bootstrapbase/less/bootstrap/
78+
theme/bootstrapbase/javascript/html5shiv.js
79+
theme/bootstrapbase/amd/src/bootstrap.js

.eslintrc

+180
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
{
2+
'env': {
3+
'browser': true,
4+
'amd': true
5+
},
6+
'globals': {
7+
'M': true,
8+
'Y': true
9+
},
10+
'rules': {
11+
// See http://eslint.org/docs/rules/ for all rules and explanations of all
12+
// rules.
13+
14+
// === Possible Errors ===
15+
'comma-dangle': 'off',
16+
'no-cond-assign': 'error',
17+
'no-console': 'error',
18+
'no-constant-condition': 'error',
19+
'no-control-regex': 'error',
20+
'no-debugger': 'error',
21+
'no-dupe-args': 'error',
22+
'no-dupe-keys': 'error',
23+
'no-duplicate-case': 'error',
24+
'no-empty': 'warn',
25+
'no-empty-character-class': 'error',
26+
'no-ex-assign': 'error',
27+
'no-extra-boolean-cast': 'error',
28+
'no-extra-parens': 'off',
29+
'no-extra-semi': 'error',
30+
'no-func-assign': 'error',
31+
'no-inner-declarations': 'error',
32+
'no-invalid-regexp': 'error',
33+
'no-irregular-whitespace': 'error',
34+
'no-obj-calls': 'error',
35+
'no-prototype-builtins': 'off',
36+
'no-regex-spaces': 'error',
37+
'no-sparse-arrays': 'error',
38+
'no-unexpected-multiline': 'error',
39+
'no-unreachable': 'warn',
40+
'no-unsafe-finally': 'error',
41+
'no-unsafe-negation': 'error',
42+
'use-isnan': 'error',
43+
'valid-jsdoc': ['warn', { 'requireReturn': false, 'requireParamDescription': false, 'requireReturnDescription': false }],
44+
'valid-typeof': 'error',
45+
46+
// === Best Practices ===
47+
// (these mostly match our jshint config)
48+
'array-callback-return': 'warn',
49+
'block-scoped-var': 'warn',
50+
'complexity': 'warn',
51+
'consistent-return': 'warn',
52+
'curly': 'error',
53+
'dot-notation': 'warn',
54+
'no-alert': 'warn',
55+
'no-caller': 'error',
56+
'no-case-declarations': 'error',
57+
'no-div-regex': 'error',
58+
'no-empty-pattern': 'error',
59+
'no-empty-function': 'warn',
60+
'no-eq-null': 'error',
61+
'no-eval': 'error',
62+
'no-extend-native': 'error',
63+
'no-extra-bind': 'warn',
64+
'no-fallthrough': 'error',
65+
'no-floating-decimal': 'warn',
66+
'no-global-assign': 'warn',
67+
// Enabled by grunt for AMD modules: 'no-implicit-globals': 'error',
68+
'no-implied-eval': 'error',
69+
'no-invalid-this': 'error',
70+
'no-iterator': 'error',
71+
'no-labels': 'error',
72+
'no-loop-func': 'error',
73+
'no-multi-spaces': 'warn',
74+
'no-multi-str': 'error',
75+
'no-new-func': 'error',
76+
'no-new-wrappers': 'error',
77+
'no-octal': 'error',
78+
'no-octal-escape': 'error',
79+
'no-proto': 'error',
80+
'no-redeclare': 'warn',
81+
'no-return-assign': 'error',
82+
'no-script-url': 'error',
83+
'no-self-assign': 'error',
84+
'no-self-compare': 'error',
85+
'no-sequences': 'warn',
86+
'no-throw-literal': 'warn',
87+
'no-unmodified-loop-condition': 'error',
88+
'no-unused-expressions': 'error',
89+
'no-unused-labels': 'error',
90+
'no-useless-call': 'warn',
91+
'no-useless-escape': 'warn',
92+
'no-with': 'error',
93+
'wrap-iife': ['error', 'any'],
94+
95+
// === Variables ===
96+
'no-delete-var': 'error',
97+
'no-undef': 'error',
98+
'no-undef-init': 'error',
99+
'no-unused-vars': ['error', { 'caughtErrors': 'none' }],
100+
101+
// === Stylistic Issues ===
102+
'array-bracket-spacing': 'warn',
103+
'block-spacing': 'warn',
104+
'brace-style': ['warn', '1tbs'],
105+
'camelcase': 'warn',
106+
'comma-spacing': ['warn', { 'before': false, 'after': true }],
107+
'comma-style': ['warn', 'last'],
108+
'computed-property-spacing': 'error',
109+
'consistent-this': 'off',
110+
'eol-last': 'off',
111+
'func-call-spacing': ['warn', 'never'],
112+
'func-names': 'off',
113+
'func-style': 'off',
114+
// indent currently not doing well with our wrapping style, so disabled.
115+
'indent': ['off', 4, { 'SwitchCase': 1 }],
116+
'key-spacing': ['warn', { 'beforeColon': false, 'afterColon': true, 'mode': minimum }],
117+
'keyword-spacing': 'warn',
118+
'linebreak-style': ['error', 'unix'],
119+
'lines-around-comment': 'off',
120+
'max-len': ['error', 132],
121+
'max-lines': 'off',
122+
'max-depth': 'warn',
123+
'max-nested-callbacks': ['warn', 5],
124+
'max-params': 'off',
125+
'max-statements': 'off',
126+
'max-statements-per-line': ['warn', { max: 2 }],
127+
'new-cap': ['warn', { 'properties': false }],
128+
'new-parens': 'warn',
129+
'newline-after-var': 'off',
130+
'newline-before-return': 'off',
131+
'newline-per-chained-call': 'off',
132+
'no-array-constructor': 'off',
133+
'no-bitwise': 'error',
134+
'no-continue': 'off',
135+
'no-inline-comments': 'off',
136+
'no-lonely-if': 'off',
137+
'no-mixed-operators': 'off',
138+
'no-mixed-spaces-and-tabs': 'error',
139+
'no-multiple-empty-lines': 'warn',
140+
'no-negated-condition': 'off',
141+
'no-nested-ternary': 'warn',
142+
'no-new-object': 'off',
143+
'no-plusplus': 'off',
144+
'no-tabs': 'error',
145+
'no-ternary': 'off',
146+
'no-trailing-spaces': 'error',
147+
'no-underscore-dangle': 'off',
148+
'no-unneeded-ternary': 'off',
149+
'no-whitespace-before-property': 'warn',
150+
'object-curly-newline': 'off',
151+
'object-curly-spacing': 'warn',
152+
'object-property-newline': 'off',
153+
'one-var': 'off',
154+
'one-var-declaration-per-line': ['warn', 'initializations'],
155+
'operator-assignment': 'off',
156+
'operator-linebreak': 'off',
157+
'padded-blocks': 'off',
158+
'quote-props': ['warn', 'as-needed', {'unnecessary': false, 'keywords': true, 'numbers': true}],
159+
'quotes': 'off',
160+
'require-jsdoc': 'warn',
161+
'semi': 'error',
162+
'semi-spacing': ['warn', {'before': false, 'after': true}],
163+
'sort-vars': 'off',
164+
'space-before-blocks': 'warn',
165+
'space-before-function-paren': ['warn', 'never'],
166+
'space-in-parens': 'warn',
167+
'space-infix-ops': 'warn',
168+
'space-unary-ops': 'warn',
169+
'spaced-comment': 'warn',
170+
'unicode-bom': 'error',
171+
'wrap-regex': 'off',
172+
173+
// === Deprecations ===
174+
"no-restricted-properties": ['warn', {
175+
'object': 'M',
176+
'property': 'str',
177+
'message': 'Use AMD module "core/str" or M.util.get_string()'
178+
}],
179+
}
180+
}

.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
**/yui/build/** -diff
2+
**/amd/build/** -diff
3+
theme/bootstrapbase/style/editor.css -diff
4+
theme/bootstrapbase/style/moodle.css -diff

.jshintrc

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
// NOTE: We use eslint now. This file is used only by shifter. We keep the configuration
2+
// here because shifter uses jshint after modules have been concating. Eslint can't
3+
// currently do this.
4+
{
5+
"asi": false,
6+
"bitwise": true,
7+
"boss": false,
8+
"browser": true,
9+
"curly": true,
10+
"debug": false,
11+
"eqeqeq": false,
12+
"eqnull": false,
13+
"es5": false,
14+
"esnext": false,
15+
"evil": false,
16+
"expr": false,
17+
"forin": false,
18+
"funcscope": false,
19+
"globalstrict": false,
20+
"immed": true,
21+
"indent": 4,
22+
"iterator": false,
23+
"lastsemic": false,
24+
"latedef": true,
25+
"laxbreak": true,
26+
"laxcomma": false,
27+
"loopfunc": false,
28+
"maxerr": 500,
29+
"maxlen": 132,
30+
"multistr": false,
31+
"newcap": true,
32+
"noarg": true,
33+
"noempty": true,
34+
"nomen": false,
35+
"onecase": false,
36+
"onevar": false,
37+
"passfail": false,
38+
"plusplus": false,
39+
"predef": [
40+
"M",
41+
"define",
42+
"require"
43+
],
44+
"proto": false,
45+
"regexdash": false,
46+
"regexp": false,
47+
"scripturl": false,
48+
"shadow": false,
49+
"smarttabs": false,
50+
"strict": false,
51+
"sub": false,
52+
"supernew": false,
53+
"trailing": true,
54+
"undef": true,
55+
"unused": true,
56+
"white": false,
57+
"yui": true
58+
}

.shifter.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"coverage": false,
3+
"lint": "config",
4+
"clean": true
5+
}

0 commit comments

Comments
 (0)