Giter Club home page Giter Club logo

Comments (3)

osrf-migration avatar osrf-migration commented on June 15, 2024

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


I think it would be nice to provide a default code_check script, though an individual project may want to add more checks.

@sloretz, do you have any recommendations from your ros2 work about how we could improve our static analysis?

from gz-cmake.

osrf-migration avatar osrf-migration commented on June 15, 2024

Original comment by Shane Loretz (Bitbucket: Shane Loretz, GitHub: sloretz).


I think this issue's scope should be limited to getting what we have (cppcheck) into ign-cmake. It would match the ROS 2 project to put style scripts into a comon spot. ROS2 has ament/ament_lint which are cmake packages that turn style checks into tests.

I can make separate tickets for enhancements if this ticket is going to be implemented.

ROS2 uses cppcheck too, but they also use a tool called uncrustify. It makes fixing errors super easy. The output includes a diff of the change needed to comply.

5: Code style divergence in file 'src/rcl/arguments.c':
5: 
5: --- src/rcl/arguments.c
5: +++ src/rcl/arguments.c.uncrustify
5: @@ -276 +276 @@
5: -  if (args_impl-> num_remap_rules > 0) {
5: +  if (args_impl->num_remap_rules > 0) {
5: 
5: 1 files with code style divergence

Uncrustify doesn't catch everything. There has been some talk about adding support for clang-format.

from gz-cmake.

osrf-migration avatar osrf-migration commented on June 15, 2024

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


  • changed state from "new" to "resolved"

added to ignition-cmake1 in pull request #60

from gz-cmake.

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.