Fix coding standard issues

Created on 15 September 2023, over 1 year ago

Problem/Motivation

The code still contains many coding standard errors. These can be seen locally using the DDEV tools.
Additionally they can be seen below the tests results at each test result page.

E.g. https://www.drupal.org/pift-ci-job/2755462 โ†’ >> Click: XX coding standards messages

/var/www/html/modules/contrib/project_wiki/js/search.js
line 5	Unexpected unnamed function. (func-names)
7	'context' is defined but never used. (no-unused-vars)
7	'settings' is defined but never used. (no-unused-vars)
8	Replace `"projectWikiSearch",ยท".project-wiki-entries-list"` with `'projectWikiSearch',ยท'.project-wiki-entries-list'` (prettier/prettier)
8	Unexpected unnamed function. (func-names)
9	Insert `,` (prettier/prettier)
13	Replace `"project-wiki-entry-title"` with `'project-wiki-entry-title'` (prettier/prettier)
14	Replace `"project-wiki-entry-category"` with `'project-wiki-entry-category'` (prettier/prettier)
15	Replace `"project-wiki-entry-developerContent"` with `'project-wiki-entry-developerContent'` (prettier/prettier)
16	Replace `"project-wiki-entry-content"` with `'project-wiki-entry-content'` (prettier/prettier)
19	'entriesList' is assigned a value but never used. (no-unused-vars)
19	'List' is not defined. (no-undef)
css/list.css
4	Expected (flex-start | flex-end | center | space-between | space-around) but found 'space-evenly'.
modules/project_wiki_entity_content/README.md
14	Line exceeds 80 characters; contains 96 characters
20	Line exceeds 80 characters; contains 95 characters
27	Line exceeds 80 characters; contains 98 characters
31	Line exceeds 80 characters; contains 107 characters
33	Line exceeds 80 characters; contains 84 characters
37	Line exceeds 80 characters; contains 88 characters
modules/project_wiki_markdown_content/README.md
14	Line exceeds 80 characters; contains 96 characters
19	Line exceeds 80 characters; contains 95 characters
26	Line exceeds 80 characters; contains 109 characters
27	Line exceeds 80 characters; contains 99 characters
28	Line exceeds 80 characters; contains 114 characters
33	Line exceeds 80 characters; contains 102 characters
34	Line exceeds 80 characters; contains 114 characters
35	Line exceeds 80 characters; contains 115 characters
36	Line exceeds 80 characters; contains 111 characters
40	Line exceeds 80 characters; contains 112 characters
41	Line exceeds 80 characters; contains 111 characters
modules/project_wiki_markdown_content_example/Examples/en/Help for developers/markdown_example.md
7	Line exceeds 80 characters; contains 116 characters
10	Line exceeds 80 characters; contains 220 characters
12	Line exceeds 80 characters; contains 120 characters
23	Line exceeds 80 characters; contains 99 characters
24	Line exceeds 80 characters; contains 95 characters
26	Line exceeds 80 characters; contains 149 characters
27	Line exceeds 80 characters; contains 101 characters
28	Line exceeds 80 characters; contains 148 characters
29	Line exceeds 80 characters; contains 140 characters
40	Line exceeds 80 characters; contains 139 characters
42	Line exceeds 80 characters; contains 123 characters
modules/project_wiki_markdown_content_example/Examples/en/Help for developers/module_setup.md
8	Line exceeds 80 characters; contains 96 characters
9	Line exceeds 80 characters; contains 153 characters
10	Line exceeds 80 characters; contains 93 characters
11	Line exceeds 80 characters; contains 158 characters
13	Line exceeds 80 characters; contains 131 characters
14	Line exceeds 80 characters; contains 172 characters
15	Line exceeds 80 characters; contains 162 characters
16	Line exceeds 80 characters; contains 131 characters
17	Line exceeds 80 characters; contains 149 characters
18	Line exceeds 80 characters; contains 87 characters
modules/project_wiki_markdown_content_example/README.md
13	Line exceeds 80 characters; contains 123 characters
18	Line exceeds 80 characters; contains 95 characters
README.md
4	Line exceeds 80 characters; contains 102 characters
5	Line exceeds 80 characters; contains 102 characters
23	Line exceeds 80 characters; contains 100 characters
29	Line exceeds 80 characters; contains 95 characters
tests/src/FunctionalJavascript/ProjectWikiListjsTest.php
66	No space found before comment text; expected "// $session->statusCodeEquals(200);" but found "//$session->statusCodeEquals(200);"
72	No space found before comment text; expected "// $session->statusCodeEquals(200);" but found "//$session->statusCodeEquals(200);"
79	No space found before comment text; expected "// $session->statusCodeEquals(200);" but found "//$session->statusCodeEquals(200);"
81	No space found before comment text; expected "// $session->statusCodeEquals(200);" but found "//$session->statusCodeEquals(200);"

Please fix all that make sense to fix. Don't do it manually, use the IDE and DDEV tools!
And take care to not introduce them first. DDEV should be configured to report and fix most of them automatically.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024