Git Product home page Git Product logo

Comments (6)

ryanwelcher avatar ryanwelcher commented on July 28, 2024 1

@juanmaguitar this should be fixed now. I am basically bypassing the linting steps on the deploy branch merge.

from block-development-examples.

ryanwelcher avatar ryanwelcher commented on July 28, 2024

@juanmaguitar can we just remove the linting step from this branch/workflow? Any code that gets to this point will already have been linted. Perhaps I can adjust the action to ignore this branch.

from block-development-examples.

ryanwelcher avatar ryanwelcher commented on July 28, 2024

#70

from block-development-examples.

juanmaguitar avatar juanmaguitar commented on July 28, 2024

@ryanwelcher this is still not working properly
composer run lint fails both locally and in the GitHub Action.
I have removed "*.php": [ "composer run lint"] again from lint-staged until this issue is solved.

Note: I wouldn't consider this a high priority for now, but something to try to get fixed before the end of the year.

from block-development-examples.

ryanwelcher avatar ryanwelcher commented on July 28, 2024

@juanmaguitar if there are failures locally then my guess is that it's due to actual linting issues.

I just ran composer run lint on trunk locally and got the following error:

FILE: ...enberg-examples-2023/plugins/block-dynamic-rendering-64756b/src/render.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 11 | ERROR | All output should be run through an escaping function (see the
    |       | Security sections in the WordPress Developer Handbooks), found
    |       | 'get_block_wrapper_attributes'.
----------------------------------------------------------------------

This is correct and expected. My guess is that it was introduced with this commit. Specifically with the remove of the // phpcs:ignore comment.

from block-development-examples.

juanmaguitar avatar juanmaguitar commented on July 28, 2024

Solved as per #73

from block-development-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.