Hi there, DrupalCI maintainer here.

We recently added javascript linting to the testrunners and it happens to be finding the ember app that you have embedded in your repository, which is huge, which is causing the testrunners to find several warnings in those files. And by several I mean 165,665 warnings - https://dispatcher.drupalci.org/job/drupal_contrib/11655/

Could you please add an .eslintignore file to your repo that excludes the ember/assets directory ? (see here for how: http://eslint.org/docs/user-guide/command-line-interface#ignoring-files-...)

Thank you.

Comments

Mixologic created an issue. See original summary.

eshta’s picture

Status: Active » Needs review
StatusFileSize
new236 bytes

Attaching a patch for an .eslintignore file.

Status: Needs review » Needs work

The last submitted patch, 2: 2855156.eslintignore.2.patch, failed testing.

scor’s picture

Status: Needs work » Reviewed & tested by the community

Thanks @eshta! It seems like Jenkins is a lot happier now at https://dispatcher.drupalci.org/job/drupal8_contrib_patches/426/: Checkstyle: 0 warnings. We'll include this in our next release. Thanks @Mixologic for noticing this and suggesting a fix.

  • scor committed 7269f94 on 8.x-1.x authored by eshta
    Issue #2855156 by eshta: Add .eslintignore file for embedded ember app
    
scor’s picture

Status: Reviewed & tested by the community » Fixed
scor’s picture

Status: Fixed » Needs work

Sadly I have to reopen this as it seems we still have a couple of warnings left according to the latest run at https://www.drupal.org/pift-ci-job/622505:

acquia_contenthub_subscriber/ember/assets/ch-ember-app-56e51d07e3a707e0d7ab170eb0cfcb77.css
1	File appears to be minified and cannot be processed
acquia_contenthub_subscriber/ember/assets/vendor-89eff7a65d88ec4676c95e83159e2fe6.css
1	File appears to be minified and cannot be processed
scor’s picture

Title: Add .eslintignore file for embedded ember app » Ignore JS and CSS linting for embedded ember app

Ah, what's left are the CSS files. Sadly the csslint tool does not support .csslintignore(https://github.com/CSSLint/csslint/issues/330). @Mixologic any idea if there are any workarounds on d.o for this?

Mixologic’s picture

It seems to be working for core: did you try a .csslintrc in your module's directory:

http://cgit.drupalcode.org/drupal/tree/.csslintrc#n39

scor’s picture

Status: Needs work » Needs review
StatusFileSize
new184 bytes

@Mixologic I don't know why I didn't think to check core :(. Let's see what happens.

scor’s picture

StatusFileSize
new185 bytes

previous patch didn't work, trying again with different path.

scor’s picture

StatusFileSize
new234 bytes

I don't know why it's not honoring the rule in the .csslintrc file. Trying with explicit filename to see if it makes any difference.

scor’s picture

StatusFileSize
new236 bytes

even a filename is not supported. trying relative path.

scor’s picture

CSS lint is still checking the file acquia_contenthub_subscriber/ember/assets/ch-ember-app-56e51d07e3a707e0d7ab170eb0cfcb77.css even though it's explicitely excluded in the .csslintrc file (https://www.drupal.org/pift-ci-job/630924). At this point I'm at a loss to understand what's going on. @Mixologic any idea?

scor’s picture

It looks like the phpcs is no longer executed on patches? https://dispatcher.drupalci.org/job/drupal8_contrib_patches/5329/console shows "ERROR: the "Drupal" coding standard is not installed.". @Mixologic could you indicate what has changed on drupalCI?

Mixologic’s picture

A change to drupal core broke some assumptions that DrupalCI was making. This is fixed now.