Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New sniffs #359

Closed
wants to merge 6 commits into from
Closed

New sniffs #359

wants to merge 6 commits into from

Conversation

whikloj
Copy link
Member

@whikloj whikloj commented Feb 22, 2019

JIRA Ticket: No JIRA, work related to Islandora/islandora#714

This will also test the use case for Islandora/islandora#716

What does this Pull Request do?

Updates code for new code sniffs

How should this be tested?

Travis is green and then check that testing is complete.

Additional Notes:

Example:

  • Does this change the interface, add a new feature, or otherwise change behaviours that would require updating documentation? no
  • Does this change add any new dependencies? no
  • Does this change require any other modifications to be made to the repository (ie. Regeneration activity, etc.)? no
  • Could this change impact execution of existing code? no

Interested parties

@Islandora/7-x-1-x-committers

@jonathangreen
Copy link

jonathangreen commented Feb 25, 2019

for a cleaner look maybe could do this:

env:
  global:
    - CODESNIFFER_IGNORE="vendor,*.info,*.txt,*.md,SolrPhpClient"
  matrix:
    - FEDORA_VERSION="3.5"
    - FEDORA_VERSION="3.6.2"
    - FEDORA_VERSION="3.7.0"
    - FEDORA_VERSION="3.8.1"

@whikloj
Copy link
Member Author

whikloj commented Feb 27, 2019

I can make that change but as coder is failing on the embedded Apache Solr Client I'll need to figure that out first and I have no idea how to get it to stop.

@bondjimbond
Copy link

@whikloj I'm coming here from Islandora/islandora#722 ... so am I to understand that the failures we're seeing here are because the affected files are supposed to be ignored, but are not getting skipped? And that's due to the "style" check?

And, furthermore, the "style" check is redundant because we run phpcs anyway?

@whikloj
Copy link
Member Author

whikloj commented Jul 16, 2019

Annnnnnd coder still checks the embedded SolrPhpClient. The only solution I now see is pulling the SolrPhpClient out of islandora_solr_search and keeping it separate, but I don't think I have the interest in doing that right now.

@DiegoPino
Copy link

DiegoPino commented Jul 16, 2019

@whikloj
Copy link
Member Author

whikloj commented Jul 16, 2019

I couldn't find one, but that doesn't mean there isn't one.

@DiegoPino
Copy link

DiegoPino commented Jul 16, 2019

@whikloj it seems like the syntax is wrong
So this is how that thing
CODESNIFFER_IGNORE="vendor,*.info,*.txt,*.md,SolrPhpClient" is passed to travis here:

https://github.com/Islandora/islandora/blob/7.x/tests/scripts/travis_scripts.sh#L42

And my guts tell me it should be

CODESNIFFER_IGNORE="vendor,*.info,*.txt,*.md,/SolrPhpClient" ?

@whikloj
Copy link
Member Author

whikloj commented Jul 16, 2019

@DiegoPino That is for PHPCS and while there are issues appearing currently for PHPCS here the one that checks ApacheSolrClient is drush coder here and it fails here

@DiegoPino
Copy link

DiegoPino commented Jul 16, 2019 via email

@DiegoPino
Copy link

DiegoPino commented Jul 17, 2019 via email

@whikloj whikloj closed this by deleting the head repository Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants