Git Product home page Git Product logo

Comments (11)

seebi avatar seebi commented on August 20, 2024

yes please!

maybe we have different level here:
level 0:

  • only hardcore errors do block the commit, including trying to commit into the master branch
  • this is established with "make install" so its default
    level 1:
  • our suggested level of quality checks, which is more accurate

btw: does make cs-install works on Darwin as well @pfrischmuth, maybe you can test that?

from ontowiki.

seebi avatar seebi commented on August 20, 2024

sorry, wrong button ... :)

from ontowiki.

seebi avatar seebi commented on August 20, 2024

additional requests:

  • cs-install should test for root (to avoid errors)
  • 2x cs-install crashes
  • bad words: var_dump, exit; die, _POST, _GET, _REQUEST
  • keine tabs
  • no whitespaces at the end of the line

from ontowiki.

seebi avatar seebi commented on August 20, 2024

after working a little bit with the pre_commit hook, I would like to change that to pre_push if this exist:
the reason: implementing a feature and fixing the code quality should be different commits and I can't commit the feature first ...

what do you think about that?

from ontowiki.

seebi avatar seebi commented on August 20, 2024

@Lars: what about this issue? These additional requirements are important:

  • cs-install should test for root (to avoid errors)
  • 2x cs-install crashes
  • test for bad words: var_dump, exit; die, _POST, _GET, _REQUEST
  • test for tabs
  • test for whitespaces at the end of the line

from ontowiki.

seebi avatar seebi commented on August 20, 2024

can we drop Internal.NoCodeFound errors on "make cs-check"

these errors appear on Makefiles, N3 files, ...

from ontowiki.

Lars avatar Lars commented on August 20, 2024

Seebi, the opening user was @larseidam not myself.

Thanks

from ontowiki.

seebi avatar seebi commented on August 20, 2024

@Lars: thanks ... and sorry :)

from ontowiki.

larseidam avatar larseidam commented on August 20, 2024

@ALL

now there is a CodeSniffer Update on commit 714ce22

Attention: some Makefile commands have changed (look at 'make help')

fixed issue:

  • cs-install should test for root (to avoid errors)
  • 2x cs-install crashes
  • test for bad words: var_dump, exit; die, _POST, _GET, _REQUEST (also print_r and error_log)
  • test for tabs
  • test for whitespaces at the end of the line
  • install CS on submodules/extensions
  • run CS with specific sniffs

open issue:

  • wikipage for sniff explanation
  • CS integration for Vim
  • forbid the committing in the master branch
  • install CS on all submodules/extensions

@seebi

What do you mean with this??

can we drop Internal.NoCodeFound errors on "make cs-check"
these errors appear on Makefiles, N3 files, ...

Do you want a sniff that shows files they have no php code, files they are empty or something else??
Maybe we can talk about it on our meeting today.

from ontowiki.

seebi avatar seebi commented on August 20, 2024

lars, looks great!

regarding your question: I just dont want an error if the sniffer founds a file which is not php

one solution: the sniffer looks only for php and phtml files
another solution: it looks in every file but do not complain about files without php code

from ontowiki.

larseidam avatar larseidam commented on August 20, 2024

all issues in this thread are done or rather in a other Issus-thread

from ontowiki.

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.