- Issue created by @solideogloria
- Status changed to Closed: works as designed
11 months ago 7:13pm 22 May 2024
ESLint errors whenever I run the script.
$ ./pareview.sh https://git.drupalcode.org/project/basic_slider 2.0.x
Review of the 2.0.x branch (commit b1edad5):
<ul>
<li>Your README.md does not follow best practices (headings need to be uppercase). See https://www.drupal.org/node/2181737 .
<ul>
<li>The INTRODUCTION section is missing.</li>
<li>The REQUIREMENTS section is missing.</li>
<li>The INSTALLATION section is missing.</li>
<li>The CONFIGURATION section is missing.</li>
</ul></li>
<li>The basic_slider.module does not implement hook_help()
. See https://www.drupal.org/docs/develop/documenting-your-project/module-documentation-guidelines#hook_help .</li>
<li><a href="https://www.drupal.org/project/coder">Coder Sniffer</a> has found some issues with your code (please check the <a href="https://www.drupal.org/node/318">Drupal coding standards</a>).
FILE: /home/USERNAME/projects/pareviewsh/pareview_temp/README.md ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 3 | WARNING | Line exceeds 80 characters; contains 116 characters ---------------------------------------------------------------------- Time: 50ms; Memory: 8MB
</li>
Oops! Something went wrong! :(
ESLint: 8.57.0
/home/USERNAME/projects/pareviewsh/node_modules/eslint-plugin-prettier/eslint-plugin-prettier.js:64
(context.sourceCode ?? context.getSourceCode()).getLocFromIndex(index),
^
SyntaxError: Unexpected token '?'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at ConfigArrayFactory._loadPlugin (/home/USERNAME/projects/pareviewsh/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3433:42)
at ConfigArrayFactory._loadExtendedPluginConfig (/home/USERNAME/projects/pareviewsh/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3233:29)
at ConfigArrayFactory._loadExtends (/home/USERNAME/projects/pareviewsh/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3154:29)
<li><a href="http://eslint.org/">ESLint</a> has found some issues with your code (please check the <a href="https://www.drupal.org/node/172169">JavaScript coding standards</a>).
</li>
<li><a href="https://stylelint.io/">Stylelint</a> has found some issues with your code (please check the <a href="https://www.drupal.org/docs/develop/standards/css">CSS coding standards</a>).
/home/USERNAME/projects/pareviewsh/node_modules/cosmiconfig/dist/index.js:78 if (metaConfig.config?.loaders) { ^ SyntaxError: Unexpected token '.' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (internal/modules/cjs/loader.js:963:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.<anonymous> (/home/USERNAME/projects/pareviewsh/node_modules/stylelint/lib/createStylelint.js:3:45) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
</li>
<li>No automated test cases were found, did you consider writing <a href="https://www.drupal.org/simpletest">Simpletests</a> or <a href="https://www.drupal.org/phpunit">PHPUnit tests</a>? This is not a requirement but encouraged for professional software development.</li>
</ul>
<i>This automated report was generated with <a href="https://www.drupal.org/project/pareviewsh">PAReview.sh</a>, your friendly project application review script.</i>
Info:
PAReview.sh version: 1.0.x-dev (6d5676eb73f4390b4e348e947c757355bc96fb9f)
npm@8.5.1
Closed: works as designed
1.0
Default