Git Product home page Git Product logo

Comments (11)

sawenzel avatar sawenzel commented on July 29, 2024

Thanks for this report.
@ZdravkoD : Can you please take a look into this bug report?

Please note that the namespace check is development is progress. Please disable it for the moment. The only checks in production are the ones listed in the o2checkcode.sh recipe.
We might have to go to a real release model ... now that people are starting to use the checks -:)

from o2codechecker.

sawenzel avatar sawenzel commented on July 29, 2024

@PascalBoeschoten: I merged an improved namespace checker. Would you mind trying it out and seeing if the bug is solved?

from o2codechecker.

PascalBoeschoten avatar PascalBoeschoten commented on July 29, 2024

If I run

run_O2CodeChecker.py -clang-tidy-binary `which O2codecheck` -checks=-*,aliceO2-namespace-naming -fix

it doesn't seem to find/change anything, even though my namespace names are camelcase. But it also doesn't break anonymous namespaces anymore.

from o2codechecker.

ZdravkoD avatar ZdravkoD commented on July 29, 2024

@PascalBoeschoten Can you try running O2codecheck --list-checks --checks="alice*" and check if aliceO2-namespace-naming appears in the list? The command that you gave runs fine and finds namespace errors when I run it at ~/alice/sw/BUILD/O2-latest/O2/.

from o2codechecker.

PascalBoeschoten avatar PascalBoeschoten commented on July 29, 2024

It appears in the list.
The command I gave also lists only aliceO2-namespace-naming as check (others are all disabled)

$> run_O2CodeChecker.py -clang-tidy-binary `which O2codecheck` -checks=-*,aliceO2-namespace-naming -fix
Enabled checks:
    aliceO2-namespace-naming

from o2codechecker.

sawenzel avatar sawenzel commented on July 29, 2024

@PascalBoeschoten : Ok, I believe I know why this is: We recently needed to added filtering of the source path of the translation unit and we have probably put something with O2 ... not knowing that other repos want to use the tool as well. @ZdravkoD : We need to add configuration of the path from the outside.

from o2codechecker.

sawenzel avatar sawenzel commented on July 29, 2024

@PascalBoeschoten : We now added a configuration possibility to let the tool know which repository it is checking. Can you please add a .clang-tidy file inside your project as mentioned in this commit 642b8f4 and provide the proper regular expression matching your source tree.

Feedback is highly welcome.

from o2codechecker.

sawenzel avatar sawenzel commented on July 29, 2024

@PascalBoeschoten : see also AliceO2Group/AliceO2#583; I checked that this works for O2 and the namespace checks.

from o2codechecker.

PascalBoeschoten avatar PascalBoeschoten commented on July 29, 2024

So the file would contain something like this?

CheckOptions:
  - key: CheckPathRegex
    value: '.*/ReadoutCard/.*'

from o2codechecker.

ZdravkoD avatar ZdravkoD commented on July 29, 2024

@PascalBoeschoten : Yes, that should work if your files are located at a subfolder of ReadoutCard.

from o2codechecker.

PascalBoeschoten avatar PascalBoeschoten commented on July 29, 2024

Done

from o2codechecker.

Related Issues (6)

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.