Coder Social home page Coder Social logo

guykisel / inline-plz Goto Github PK

View Code? Open in Web Editor NEW
32.0 4.0 14.0 60.87 MB

Inline your lint messages

License: ISC License

Python 41.66% JavaScript 3.12% Batchfile 2.43% Shell 6.34% XSLT 46.31% HCL 0.14%
code-quality static-analysis python linters code-review

inline-plz's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

inline-plz's Issues

running eslint is failing

00:03:50.131 Traceback (most recent call last):
00:03:50.131   File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
00:03:50.131     "__main__", fname, loader, pkg_name)
00:03:50.131   File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
00:03:50.131     exec code in run_globals
00:03:50.131   File "/usr/local/lib/python2.7/dist-packages/inlineplz/main.py", line 76, in <module>
00:03:50.131     exit(main())
00:03:50.132   File "/usr/local/lib/python2.7/dist-packages/inlineplz/main.py", line 29, in main
00:03:50.132     return inline(args)
00:03:50.132   File "/usr/local/lib/python2.7/dist-packages/inlineplz/main.py", line 56, in inline
00:03:50.132     messages = linters.lint(args.install)
00:03:50.132   File "/usr/local/lib/python2.7/dist-packages/inlineplz/linters/__init__.py", line 57, in lint
00:03:50.134     output = subprocess.check_output(config.get('run')).decode('utf-8')
00:03:50.134   File "/usr/lib/python2.7/subprocess.py", line 566, in check_output
00:03:50.134     process = Popen(stdout=PIPE, *popenargs, **kwargs)
00:03:50.134   File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
00:03:50.134     errread, errwrite)
00:03:50.134   File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
00:03:50.134     raise child_exception
00:03:50.134 OSError: [Errno 2] No such file or directory

Possible jshint bug, not commenting missing semicolon

Ran into this- locally I have missing semicolon issue:

λ npm test

jshint . && jscs .

commands.js: line 295, col 87, Missing semicolon.
commands.js: line 554, col 2, Missing semicolon.

2 errors
npm ERR! Test failed. See above for more details.

UnicodeDecodeError if pull request diff includes non ASCII characters

To reproduce:

Commit a change that adds or removes a non-ascii character. (e.g. a copyright sign ©)
Create a PR and run inline-plz on it

Result:

  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/jenkins/workspace/inline_pull_request_comments/inline-env/lib/python2.7/site-packages/inlineplz-0.10.0-py2.7.egg/inlineplz/main.py", line 130, in <module>
    exit(main())
  File "/jenkins/workspace/inline_pull_request_comments/inline-env/lib/python2.7/site-packages/inlineplz-0.10.0-py2.7.egg/inlineplz/main.py", line 46, in main
    return inline(args)
  File "/jenkins/workspace/inline_pull_request_comments/inline-env/lib/python2.7/site-packages/inlineplz-0.10.0-py2.7.egg/inlineplz/main.py", line 115, in inline
    args.url
  File "/jenkins/workspace/inline_pull_request_comments/inline-env/local/lib/python2.7/site-packages/inlineplz-0.10.0-py2.7.egg/inlineplz/interfaces/stash.py", line 30, in __init__
    self.diff = git.diff(self.parent_sha, self.last_sha)
  File "/jenkins/workspace/inline_pull_request_comments/inline-env/local/lib/python2.7/site-packages/inlineplz-0.10.0-py2.7.egg/inlineplz/util/git.py", line 15, in diff
    ).strip().decode('utf-8')
  File "/jenkins/workspace/inline_pull_request_comments/inline-env/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa9 in position 26782: invalid start byte
Build step 'Execute shell' marked build as failure

Interface keyerror

00:09:58.494 Traceback (most recent call last):
00:09:58.494   File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
00:09:58.494     "__main__", fname, loader, pkg_name)
00:09:58.495   File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
00:09:58.495     exec code in run_globals
00:09:58.495   File "/usr/local/lib/python2.7/dist-packages/inlineplz/main.py", line 78, in <module>
00:09:58.495     exit(main())
00:09:58.495   File "/usr/local/lib/python2.7/dist-packages/inlineplz/main.py", line 31, in main
00:09:58.495     return inline(args)
00:09:58.495   File "/usr/local/lib/python2.7/dist-packages/inlineplz/main.py", line 65, in inline
00:09:58.495     my_interface = interfaces.INTERFACES[args.interface](
00:09:58.495 KeyError: None

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.