Giter Club home page Giter Club logo

Comments (7)

Hywan avatar Hywan commented on May 17, 2024

Hoa already uses PSR-2 standards. Code is fixed by PHP-CS-Fixer by hoa devtools:cs (see https://github.com/hoaproject/Devtools/tree/master/Resource/PHPCSFixer for all configurations and extra fixers).

from compiler.

SerafimArts avatar SerafimArts commented on May 17, 2024

Hoa already uses PSR-2 standards.

@Hywan Are mutable objects (in particular, the transfer of arguments by reference, like this) are not side effects?

from compiler.

SerafimArts avatar SerafimArts commented on May 17, 2024

Besides:

Property names SHOULD NOT be prefixed with a single underscore to indicate protected or private visibility.

The fields declared in this way violate the PSR

from compiler.

SerafimArts avatar SerafimArts commented on May 17, 2024

Other than this, there are other code problems which are not associated with PSR:

  1. https://scrutinizer-ci.com/g/SerafimArts/Compiler/?branch=master
  2. https://scrutinizer-ci.com/g/SerafimArts/Compiler/code-structure/master

=\

from compiler.

Hywan avatar Hywan commented on May 17, 2024

Hoa already uses PSR-2 standards.
@Hywan Are mutable objects (in particular, the transfer of arguments by reference, like this) are not side effects?

This algorithm is particularily difficult to implement, and this is an optimisation. I dare you to build the same algorithm with random PSR conventions.

Property names SHOULD NOT be prefixed with a single underscore to indicate protected or private visibility.
The fields declared in this way violate the PSR

“should not”, this is not a “must not” :-). No violation.

Other than this, there are other code problems which are not associated with PSR:

  1. https://scrutinizer-ci.com/g/SerafimArts/Compiler/?branch=master

For what I checked, there are full of jokes, stupid code duplication like this:

screen shot 2017-10-27 at 13 22 38

  1. https://scrutinizer-ci.com/g/SerafimArts/Compiler/code-structure/master

It gives me an empty page, all sections are empty.

I am totally willing to change Hoa's code, but a compiler is difficult to implement and PSR-2 are only about code style, that we respect :-).

from compiler.

SerafimArts avatar SerafimArts commented on May 17, 2024

This algorithm is particularily difficult to implement, and this is an optimisation. I dare you to build the same algorithm with random PSR conventions.

:D

“should not”, this is not a “must not” :-). No violation.

=\

It gives me an empty page, all sections are empty.

The link leads to the overall statistics of the code, the places that can be improved. Maybe permissions =(

image

This is a free service (e.g. you can create the same inspection for hoa) that improves readability and code support. It sometimes buggy, but very often gives very useful advice (for example, about duplicating the code, as you can see).

from compiler.

Hywan avatar Hywan commented on May 17, 2024

I think Scrutinizer can help having a better quality for sure. However, this issue is related to PSR. I guess we are OK with that. If you feel a boost of energy, you can open on issue on https://github.com/hoaproject/Central related to Scrutinizer. I am sure some @hoaproject/hoackers will take it :-).

Thanks for the reports!

from compiler.

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.