Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpplint: init at 1.3.0 #47836

Merged
merged 1 commit into from Oct 12, 2018
Merged

cpplint: init at 1.3.0 #47836

merged 1 commit into from Oct 12, 2018

Conversation

bhipple
Copy link
Contributor

@bhipple bhipple commented Oct 4, 2018

Static analyzer for C++ code. Licensed under a very permissive, generic Google license.

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@bhipple
Copy link
Contributor Author

bhipple commented Oct 4, 2018

@GrahamcOfBorg build cpplint

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: cpplint

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/46kggqmhymhxw3yghab9qrxdd6s19ivb-cpplint-1.3.0
strip is /nix/store/428gs2z4b8f9byvghzlpbjwjb3a7jwxx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/46kggqmhymhxw3yghab9qrxdd6s19ivb-cpplint-1.3.0/lib  /nix/store/46kggqmhymhxw3yghab9qrxdd6s19ivb-cpplint-1.3.0/bin
patching script interpreter paths in /nix/store/46kggqmhymhxw3yghab9qrxdd6s19ivb-cpplint-1.3.0
checking for references to /build in /nix/store/46kggqmhymhxw3yghab9qrxdd6s19ivb-cpplint-1.3.0...
wrapping `/nix/store/46kggqmhymhxw3yghab9qrxdd6s19ivb-cpplint-1.3.0/bin/cpplint'...
running install tests
/nix/store/fih47c6k33lkf0hblsfg1dyp05kw22xa-stdenv-linux/setup: ./cpplint_unittest.py: /usr/bin/env: bad interpreter: No such file or directory
builder for '/nix/store/hwf5vd0gf6a00q2x8mmzvfilki76qjyv-cpplint-1.3.0.drv' failed with exit code 126
error: build of '/nix/store/hwf5vd0gf6a00q2x8mmzvfilki76qjyv-cpplint-1.3.0.drv' failed

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: cpplint

Partial log (click to expand)

shrinking RPATHs of ELF executables and libraries in /nix/store/l9gwhja5lzmw8d5phmfpadj661s2dqvb-cpplint-1.3.0
strip is /nix/store/dxf1m7dhc4qb655bdljc1fsd74v1nag3-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/l9gwhja5lzmw8d5phmfpadj661s2dqvb-cpplint-1.3.0/lib  /nix/store/l9gwhja5lzmw8d5phmfpadj661s2dqvb-cpplint-1.3.0/bin
patching script interpreter paths in /nix/store/l9gwhja5lzmw8d5phmfpadj661s2dqvb-cpplint-1.3.0
checking for references to /build in /nix/store/l9gwhja5lzmw8d5phmfpadj661s2dqvb-cpplint-1.3.0...
wrapping `/nix/store/l9gwhja5lzmw8d5phmfpadj661s2dqvb-cpplint-1.3.0/bin/cpplint'...
running install tests
/nix/store/2hjlb5wim3ghl2p1r65bb49y06ckd3g1-stdenv-linux/setup: ./cpplint_unittest.py: /usr/bin/env: bad interpreter: No such file or directory
builder for '/nix/store/mk0hj530mgsjfbs4iq4drn950xix9nwf-cpplint-1.3.0.drv' failed with exit code 126
error: build of '/nix/store/mk0hj530mgsjfbs4iq4drn950xix9nwf-cpplint-1.3.0.drv' failed

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: cpplint

Partial log (click to expand)

wrapping `/nix/store/f7n505ihj5d1k954n3b8f3fqz76iaw74-cpplint-1.3.0/bin/cpplint'...
running install tests
................................................................................/cpplint_unittest.py:96: DeprecationWarning: Please use assertTrue instead.
  ' which is not in _ERROR_CATEGORIES' % (message, category))
........................................................................................................
----------------------------------------------------------------------
Ran 183 tests in 1.747s

OK
/nix/store/f7n505ihj5d1k954n3b8f3fqz76iaw74-cpplint-1.3.0

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: cpplint

Partial log (click to expand)

wrapping `/nix/store/mcpr6rl1v86l8axm2fzk7ka5jjcrn21m-cpplint-1.3.0/bin/cpplint'...
running install tests
................................................................................/cpplint_unittest.py:96: DeprecationWarning: Please use assertTrue instead.
  ' which is not in _ERROR_CATEGORIES' % (message, category))
........................................................................................................
----------------------------------------------------------------------
Ran 183 tests in 0.849s

OK
/nix/store/mcpr6rl1v86l8axm2fzk7ka5jjcrn21m-cpplint-1.3.0

@bhipple
Copy link
Contributor Author

bhipple commented Oct 4, 2018

CC @grahamc this bot is awesome. It just caught an issue where it "worked on my machine" but would've failed after the fact on Hydra / NixOS, and saved me or a frustrated user some debugging time 👍

@grahamc
Copy link
Member

grahamc commented Oct 4, 2018

🐱 🙌 🎉

@bhipple
Copy link
Contributor Author

bhipple commented Oct 4, 2018

CC @FRidh for python review

homepage = https://github.com/cpplint/cpplint;
description = "Static code checker for C++";
maintainers = [ maintainers.bhipple ];
license = [ licenses.free ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this license correct?

@@ -0,0 +1,29 @@
{ lib, buildPythonApplication, fetchFromGitHub }:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a Python library, so pass in python or pythonPackages and use its attributes (buildPythonApplication).

@bhipple
Copy link
Contributor Author

bhipple commented Oct 9, 2018

Thanks @FRidh! Updated accordingly. The license is here:
https://github.com/cpplint/cpplint/blob/master/LICENSE

I don't think this is a specific license, which is why I just put licenses.free, but if there's a better one I'm happy to iterate further.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: cpplint

Partial log (click to expand)

patching script interpreter paths in /nix/store/59159d08wbrj0h5yd9hg8qrd1ipia5w3-cpplint-1.3.0
checking for references to /build in /nix/store/59159d08wbrj0h5yd9hg8qrd1ipia5w3-cpplint-1.3.0...
wrapping `/nix/store/59159d08wbrj0h5yd9hg8qrd1ipia5w3-cpplint-1.3.0/bin/cpplint'...
running install tests
.......................................................................................................................................................................................
----------------------------------------------------------------------
Ran 183 tests in 0.748s

OK
/nix/store/59159d08wbrj0h5yd9hg8qrd1ipia5w3-cpplint-1.3.0

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: cpplint

Partial log (click to expand)

patching script interpreter paths in /nix/store/9xrjq0rxsvhg3rr8377l2853kc0rpj71-cpplint-1.3.0
checking for references to /build in /nix/store/9xrjq0rxsvhg3rr8377l2853kc0rpj71-cpplint-1.3.0...
wrapping `/nix/store/9xrjq0rxsvhg3rr8377l2853kc0rpj71-cpplint-1.3.0/bin/cpplint'...
running install tests
.......................................................................................................................................................................................
----------------------------------------------------------------------
Ran 183 tests in 1.459s

OK
/nix/store/9xrjq0rxsvhg3rr8377l2853kc0rpj71-cpplint-1.3.0

@bhipple bhipple mentioned this pull request Oct 9, 2018
9 tasks
@c0bw3b
Copy link
Contributor

c0bw3b commented Oct 11, 2018

@bhipple this license text is actually the BSD 3-clause wording.
So you should rather set licenses.bsd3

@bhipple
Copy link
Contributor Author

bhipple commented Oct 11, 2018

Aha, thanks!

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: cpplint

Partial log (click to expand)

patching script interpreter paths in /nix/store/59159d08wbrj0h5yd9hg8qrd1ipia5w3-cpplint-1.3.0
checking for references to /build in /nix/store/59159d08wbrj0h5yd9hg8qrd1ipia5w3-cpplint-1.3.0...
wrapping `/nix/store/59159d08wbrj0h5yd9hg8qrd1ipia5w3-cpplint-1.3.0/bin/cpplint'...
running install tests
.......................................................................................................................................................................................
----------------------------------------------------------------------
Ran 183 tests in 0.748s

OK
/nix/store/59159d08wbrj0h5yd9hg8qrd1ipia5w3-cpplint-1.3.0

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: cpplint

Partial log (click to expand)

patching script interpreter paths in /nix/store/9xrjq0rxsvhg3rr8377l2853kc0rpj71-cpplint-1.3.0
checking for references to /build in /nix/store/9xrjq0rxsvhg3rr8377l2853kc0rpj71-cpplint-1.3.0...
wrapping `/nix/store/9xrjq0rxsvhg3rr8377l2853kc0rpj71-cpplint-1.3.0/bin/cpplint'...
running install tests
.......................................................................................................................................................................................
----------------------------------------------------------------------
Ran 183 tests in 1.449s

OK
/nix/store/9xrjq0rxsvhg3rr8377l2853kc0rpj71-cpplint-1.3.0

Static analyzer for C++ code. Licensed under a very permissive, generic Google license (BSD3 wording).
@bhipple
Copy link
Contributor Author

bhipple commented Oct 12, 2018

I rebased and squashed up my commits to keep the history clean after implementing all the code review changes.

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: cpplint

Partial log (click to expand)

patching script interpreter paths in /nix/store/xqb2cnd8axxjczv98priw4q0yjkbql01-cpplint-1.3.0
checking for references to /build in /nix/store/xqb2cnd8axxjczv98priw4q0yjkbql01-cpplint-1.3.0...
wrapping `/nix/store/xqb2cnd8axxjczv98priw4q0yjkbql01-cpplint-1.3.0/bin/cpplint'...
running install tests
.......................................................................................................................................................................................
----------------------------------------------------------------------
Ran 183 tests in 0.752s

OK
/nix/store/xqb2cnd8axxjczv98priw4q0yjkbql01-cpplint-1.3.0

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: cpplint

Partial log (click to expand)

patching script interpreter paths in /nix/store/vd2dmchv9r5gqla1ssyd1nlm2hdzwqhg-cpplint-1.3.0
checking for references to /build in /nix/store/vd2dmchv9r5gqla1ssyd1nlm2hdzwqhg-cpplint-1.3.0...
wrapping `/nix/store/vd2dmchv9r5gqla1ssyd1nlm2hdzwqhg-cpplint-1.3.0/bin/cpplint'...
running install tests
.......................................................................................................................................................................................
----------------------------------------------------------------------
Ran 183 tests in 1.463s

OK
/nix/store/vd2dmchv9r5gqla1ssyd1nlm2hdzwqhg-cpplint-1.3.0

@c0bw3b c0bw3b merged commit 7a90980 into NixOS:master Oct 12, 2018
@bhipple bhipple deleted the add/cpplint branch February 27, 2019 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants