Skip to content

Commit 66860bc

Browse files
committed
Add Code Scanning Tests
1 parent 094453a commit 66860bc

12 files changed

+2461
-0
lines changed

Diff for: .github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
# These are supported funding model platforms
23

34
github: aljawaid

Diff for: .github/linters/.eslintrc.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"jquery": true,
6+
"es2021": true
7+
},
8+
"root": true,
9+
"extends": "eslint:recommended",
10+
"ignorePatterns": ["clipboard-*.min.js", "**/vendor/*.js"],
11+
"globals": {
12+
"ClipboardJS": "readonly"
13+
},
14+
"rules": {
15+
"no-undef": "warn"
16+
}
17+
}

Diff for: .github/linters/.htmlhintrc

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"attr-unsafe-chars": true,
3+
"attr-lowercase": true,
4+
"attr-no-unnecessary-whitespace": true,
5+
"attr-value-double-quotes": true,
6+
"attr-value-not-empty": false,
7+
"attr-no-duplication": true,
8+
"attr-whitespace": true,
9+
"alt-require": true,
10+
"doctype-first": true,
11+
"tagname-lowercase": true,
12+
"tagname-specialchars": true,
13+
"tag-pair": true,
14+
"tag-self-close": false,
15+
"empty-tag-not-self-closed": true,
16+
"src-not-empty": true,
17+
"href-abs-or-rel": false,
18+
"spec-char-escape": true,
19+
"style-disabled": false,
20+
"inline-style-disabled": false,
21+
"inline-script-disabled": false,
22+
"space-tab-mixed-disabled": "tab",
23+
"id-class-ad-disabled": true,
24+
"id-unique": true,
25+
"id-class-value": "dash",
26+
"html-lang-require": true,
27+
"doctype-first": true,
28+
"doctype-html5": true,
29+
"title-require": true,
30+
"head-script-disabled": true
31+
}

Diff for: .github/linters/.markdownlint.json

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"MD007": {
3+
"description": "MD007/ul-indent - Unordered list indentation",
4+
"type": [
5+
"boolean",
6+
"object"
7+
],
8+
"default": true,
9+
"properties": {
10+
"indent": {
11+
"description": "Spaces for indent",
12+
"type": "integer",
13+
"minimum": 1,
14+
"default": 4
15+
},
16+
"start_indented": {
17+
"description": "Whether to indent the first level of the list",
18+
"type": "boolean",
19+
"default": false
20+
},
21+
"start_indent": {
22+
"description": "Spaces for first level indent (when start_indented is set)",
23+
"type": "integer",
24+
"minimum": 1,
25+
"default": 4
26+
}
27+
},
28+
"additionalProperties": false
29+
},
30+
"ul-indent": {
31+
"$ref": "#/properties/MD007"
32+
},
33+
"MD033": false,
34+
"MD013": false,
35+
"MD036": false,
36+
"MD012": false,
37+
"MD032": false
38+
}

Diff for: .github/linters/.stylelintrc.json

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"extends": "stylelint-config-standard",
3+
"rules": {
4+
"no-extra-semicolons": true,
5+
"number-leading-zero": "never",
6+
"shorthand-property-no-redundant-values": null,
7+
"comment-whitespace-inside": [
8+
"always",
9+
{
10+
"severity": "warning"
11+
}
12+
],
13+
"font-family-name-quotes": "always-where-recommended",
14+
"font-weight-notation": "named-where-possible",
15+
"font-family-no-missing-generic-family-keyword": [
16+
true,
17+
{
18+
"ignoreFontFamilies": ["FontAwesome"],
19+
"severity": "warning"
20+
}
21+
],
22+
"color-no-invalid-hex": true,
23+
"color-hex-case": "upper",
24+
"color-hex-length": [
25+
"long",
26+
{
27+
"severity": "warning"
28+
}
29+
],
30+
"alpha-value-notation": "number",
31+
"value-list-comma-newline-after": null,
32+
"length-zero-no-unit": true,
33+
"no-descending-specificity": null,
34+
"string-quotes": "double",
35+
"selector-type-case": "lower",
36+
"selector-class-pattern": null,
37+
"selector-id-pattern": [
38+
"([A-Z][a-z0-9]+)((\\d)|([A-Z0-9][a-z0-9]+))*([A-Z])?",
39+
{
40+
"message": "Expected CSS Selector ID pattern to be CamelCase",
41+
"severity": "warning"
42+
}
43+
],
44+
"value-list-comma-space-after": "always",
45+
"color-function-notation": "legacy",
46+
"number-max-precision": 5,
47+
"value-keyword-case": [
48+
"lower",
49+
{
50+
"ignoreProperties": ["/^(b|B)ackground$/", "text-rendering"]
51+
}
52+
],
53+
"comment-empty-line-before": [
54+
"always",
55+
{
56+
"except": ["first-nested"],
57+
"ignore": ["after-comment"],
58+
"severity": "warning"
59+
}
60+
],
61+
"declaration-block-no-redundant-longhand-properties": [
62+
true,
63+
{
64+
"severity": "warning"
65+
}
66+
],
67+
"property-no-vendor-prefix": null,
68+
"selector-no-vendor-prefix": null,
69+
"at-rule-no-vendor-prefix": null,
70+
"value-no-vendor-prefix": null,
71+
"declaration-no-important": [
72+
true,
73+
{
74+
"message": "Try not to use !important in your declaration",
75+
"severity": "warning"
76+
}
77+
],
78+
"media-feature-range-notation": null
79+
}
80+
}

Diff for: .github/linters/.yaml-lint.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
###########################################
3+
# These are the rules used for #
4+
# linting all the yaml files in the stack #
5+
# NOTE: #
6+
# You can disable line with: #
7+
# # yamllint disable-line #
8+
###########################################
9+
rules:
10+
braces:
11+
level: warning
12+
min-spaces-inside: 0
13+
max-spaces-inside: 0
14+
min-spaces-inside-empty: 0
15+
max-spaces-inside-empty: 0
16+
brackets:
17+
level: warning
18+
min-spaces-inside: 0
19+
max-spaces-inside: 0
20+
min-spaces-inside-empty: 0
21+
max-spaces-inside-empty: 5
22+
colons:
23+
level: warning
24+
max-spaces-before: 0
25+
max-spaces-after: 1
26+
commas:
27+
level: warning
28+
max-spaces-before: 0
29+
min-spaces-after: 1
30+
max-spaces-after: 1
31+
comments: disable
32+
comments-indentation: disable
33+
document-end: disable
34+
document-start:
35+
level: warning
36+
present: true
37+
empty-lines:
38+
level: warning
39+
max: 2
40+
max-start: 0
41+
max-end: 0
42+
hyphens:
43+
level: warning
44+
max-spaces-after: 1
45+
indentation:
46+
level: warning
47+
spaces: consistent
48+
indent-sequences: true
49+
check-multi-line-strings: false
50+
key-duplicates: enable
51+
line-length: disable
52+
new-line-at-end-of-file: enable
53+
new-lines:
54+
type: unix
55+
trailing-spaces: {}

0 commit comments

Comments
 (0)