Giter VIP home page Giter VIP logo

pronto-phpcs's People

Contributors

buschjost avatar ellisv avatar taufek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pronto-phpcs's Issues

Can't run with pronto 0.11.2

I'm getting error while try to use this runner in GitLab CI:

$ pronto run -f gitlab_mr -c origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME
To use retry middleware with Faraday v2.0+, install `faraday-retry` gem
/usr/local/lib/ruby/2.7.0/rubygems/specification.rb:2247:in `raise_if_conflicts': Unable to activate pronto-phpcs-0.4.0, because pronto-0.11.2 conflicts with pronto (~> 0.9.0) (Gem::ConflictError)
	from /usr/local/lib/ruby/2.7.0/rubygems/specification.rb:1369:in `activate'
	from /usr/local/lib/ruby/2.7.0/rubygems.rb:217:in `rescue in try_activate'
	from /usr/local/lib/ruby/2.7.0/rubygems.rb:210:in `try_activate'
	from /usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:151:in `rescue in require'
	from /usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:147:in `require'
	from /usr/local/bundle/gems/pronto-0.11.2/lib/pronto/cli.rb:57:in `block in run'
	from /usr/local/bundle/gems/pronto-0.11.2/lib/pronto/cli.rb:56:in `each'
	from /usr/local/bundle/gems/pronto-0.11.2/lib/pronto/cli.rb:56:in `run'
	from /usr/local/bundle/gems/thor-1.3.0/lib/thor/command.rb:28:in `run'
	from /usr/local/bundle/gems/thor-1.3.0/lib/thor/invocation.rb:127:in `invoke_command'
	from /usr/local/bundle/gems/thor-1.3.0/lib/thor.rb:527:in `dispatch'
	from /usr/local/bundle/gems/thor-1.3.0/lib/thor/base.rb:584:in `start'
	from /usr/local/bundle/gems/pronto-0.11.2/bin/pronto:6:in `<top (required)>'
	from /usr/local/bundle/bin/pronto:23:in `load'
	from /usr/local/bundle/bin/pronto:23:in `<main>'
/usr/local/lib/ruby/2.7.0/rubygems/specification.rb:2247:in `raise_if_conflicts': Unable to activate pronto-phpcs-0.4.0, because pronto-0.11.2 conflicts with pronto (~> 0.9.0) (Gem::ConflictError)
	from /usr/local/lib/ruby/2.7.0/rubygems/specification.rb:1369:in `activate'
	from /usr/local/lib/ruby/2.7.0/rubygems.rb:211:in `try_activate'
	from /usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:151:in `rescue in require'
	from /usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:147:in `require'
	from /usr/local/bundle/gems/pronto-0.11.2/lib/pronto/cli.rb:57:in `block in run'
	from /usr/local/bundle/gems/pronto-0.11.2/lib/pronto/cli.rb:56:in `each'
	from /usr/local/bundle/gems/pronto-0.11.2/lib/pronto/cli.rb:56:in `run'
	from /usr/local/bundle/gems/thor-1.3.0/lib/thor/command.rb:28:in `run'
	from /usr/local/bundle/gems/thor-1.3.0/lib/thor/invocation.rb:127:in `invoke_command'
	from /usr/local/bundle/gems/thor-1.3.0/lib/thor.rb:527:in `dispatch'
	from /usr/local/bundle/gems/thor-1.3.0/lib/thor/base.rb:584:in `start'
	from /usr/local/bundle/gems/pronto-0.11.2/bin/pronto:6:in `<top (required)>'
	from /usr/local/bundle/bin/pronto:23:in `load'
	from /usr/local/bundle/bin/pronto:23:in `<main>'
/usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require': cannot load such file -- pronto/phpcs (LoadError)
	from /usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
	from /usr/local/bundle/gems/pronto-0.11.2/lib/pronto/cli.rb:57:in `block in run'
	from /usr/local/bundle/gems/pronto-0.11.2/lib/pronto/cli.rb:56:in `each'
	from /usr/local/bundle/gems/pronto-0.11.2/lib/pronto/cli.rb:56:in `run'
	from /usr/local/bundle/gems/thor-1.3.0/lib/thor/command.rb:28:in `run'
	from /usr/local/bundle/gems/thor-1.3.0/lib/thor/invocation.rb:127:in `invoke_command'
	from /usr/local/bundle/gems/thor-1.3.0/lib/thor.rb:527:in `dispatch'
	from /usr/local/bundle/gems/thor-1.3.0/lib/thor/base.rb:584:in `start'
	from /usr/local/bundle/gems/pronto-0.11.2/bin/pronto:6:in `<top (required)>'
	from /usr/local/bundle/bin/pronto:23:in `load'
	from /usr/local/bundle/bin/pronto:23:in `<main>'

JSON Parse Error When Setting PRONTO_PHPCS_STANDARD to 'phpcs.xml'

I'm getting below error when running pronto with pronto-phpcs while overriding the standard flag to 'phpcs.xml' file.

> [email protected] \
  PRONTO_BITBUCKET_PASSWORD=mypassword \
  PRONTO_PHPCS_STANDARD=phpcs.xml \
  pronto run -f bitbucket_pr -c origin/master

/usr/lib/ruby/2.1.0/json/common.rb:155:in `parse': 757: unexpected token at 'Time: 237ms; Memory: 4Mb (JSON::ParserError)
'
        from /usr/lib/ruby/2.1.0/json/common.rb:155:in `parse'
        from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.1/lib/pronto/phpcs.rb:39:in `run_phpcs'
        from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.1/lib/pronto/phpcs.rb:28:in `inspect'
        from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.1/lib/pronto/phpcs.rb:18:in `block in run'
        from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.1/lib/pronto/phpcs.rb:18:in `map'
        from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.1/lib/pronto/phpcs.rb:18:in `run'
        from /var/lib/gems/2.1.0/gems/pronto-0.9.5/lib/pronto/runners.rb:20:in `block in run'
        from /var/lib/gems/2.1.0/gems/pronto-0.9.5/lib/pronto/runners.rb:13:in `each'
        from /var/lib/gems/2.1.0/gems/pronto-0.9.5/lib/pronto/runners.rb:13:in `run'
        from /var/lib/gems/2.1.0/gems/pronto-0.9.5/lib/pronto.rb:64:in `run'
        from /var/lib/gems/2.1.0/gems/pronto-0.9.5/lib/pronto/cli.rb:61:in `block in run'
        from /var/lib/gems/2.1.0/gems/pronto-0.9.5/lib/pronto/cli.rb:60:in `chdir'
        from /var/lib/gems/2.1.0/gems/pronto-0.9.5/lib/pronto/cli.rb:60:in `run'
        from /var/lib/gems/2.1.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
        from /var/lib/gems/2.1.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
        from /var/lib/gems/2.1.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
        from /var/lib/gems/2.1.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
        from /var/lib/gems/2.1.0/gems/pronto-0.9.5/bin/pronto:6:in `<top (required)>'
        from /usr/local/bin/pronto:23:in `load'
        from /usr/local/bin/pronto:23:in `<main>'

Really appreciate if someone can help me with this issue.

It works fine when I removed PRONTO_PHPCS_STANDARD environment variable.

The phpcs.xml does exists and it works fine when I ran with phpcs command. The phpcs.xml content can be found in below link:

https://gist.github.com/paulund/8aacc8e8216c21136c182576fc078ec4

Problem with non-ASCII character in folder name

There seems to be a problem when you have a non-ascii letter in the folder name.

I had a folder with an "ΓΆ" inside an got this error.

pronto run -f gitlab -r phpcs -c origin/master
/usr/lib/ruby/2.1.0/json/common.rb:155:in `encode': "\xC3" on US-ASCII (Encoding::InvalidByteSequenceError)
    from /usr/lib/ruby/2.1.0/json/common.rb:155:in `initialize'
    from /usr/lib/ruby/2.1.0/json/common.rb:155:in `new'
    from /usr/lib/ruby/2.1.0/json/common.rb:155:in `parse'
    from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.0/lib/pronto/phpcs.rb:39:in `run_phpcs'
    from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.0/lib/pronto/phpcs.rb:28:in `inspect'
    from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.0/lib/pronto/phpcs.rb:18:in `block in run'
    from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.0/lib/pronto/phpcs.rb:18:in `map'
    from /var/lib/gems/2.1.0/gems/pronto-phpcs-0.2.0/lib/pronto/phpcs.rb:18:in `run'
    from /var/lib/gems/2.1.0/gems/pronto-0.8.2/lib/pronto/runners.rb:20:in `block in run'
    from /var/lib/gems/2.1.0/gems/pronto-0.8.2/lib/pronto/runners.rb:13:in `each'
    from /var/lib/gems/2.1.0/gems/pronto-0.8.2/lib/pronto/runners.rb:13:in `run'
    from /var/lib/gems/2.1.0/gems/pronto-0.8.2/lib/pronto.rb:56:in `run'
    from /var/lib/gems/2.1.0/gems/pronto-0.8.2/lib/pronto/cli.rb:54:in `block in run'
    from /var/lib/gems/2.1.0/gems/pronto-0.8.2/lib/pronto/cli.rb:53:in `chdir'
    from /var/lib/gems/2.1.0/gems/pronto-0.8.2/lib/pronto/cli.rb:53:in `run'
    from /var/lib/gems/2.1.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
    from /var/lib/gems/2.1.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
    from /var/lib/gems/2.1.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
    from /var/lib/gems/2.1.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
    from /var/lib/gems/2.1.0/gems/pronto-0.8.2/bin/pronto:6:in `<top (required)>'
    from /usr/local/bin/pronto:23:in `load'
    from /usr/local/bin/pronto:23:in `<main>'
ERROR: Job failed: exit code 1

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.