Git Product home page Git Product logo

Comments (4)

vmassol avatar vmassol commented on June 8, 2024

Note that when Manuel wrote this ticket he didn't know about (https://revapi.org/revapi-site/main/faq.html#_how_to_deal_with_external_class_exposed_in_api) and that we're already excluding this check for XWiki classes (see https://github.com/xwiki/xwiki-commons/blame/master/xwiki-commons-tools/xwiki-commons-tool-verification-resources/src/main/resources/revapi.json#L81-L93).

Now the bug or problem seems to be that we're still getting these errors reported even though we're ignoring them.

@metlos do you see anything wrong at https://github.com/xwiki/xwiki-commons/blame/master/xwiki-commons-tools/xwiki-commons-tool-verification-resources/src/main/resources/revapi.json#L81-L93 ?

I noticed that in your example at https://revapi.org/revapi-site/main/faq.html#_how_to_deal_with_external_class_exposed_in_api you don't escape the .s inside the <code> element, whereas we do. Isn't the regex also for <code>?

Thx!

from revapi.

metlos avatar metlos commented on June 8, 2024

I think your use of escaped dots is ok.
But notice that the configuration uses the package regex: com\\.xpn\\.xwiki\\..*, whereas the package of class com.xpn.xwiki.XWikiException for example is com.xpn.xwiki. The regex only captures subpackages, not the com.xpn.xwiki itself. I think this should work if you changed your package regex to com\\.xpn\\.xwiki(\\..*)?...

from revapi.

metlos avatar metlos commented on June 8, 2024

Let me close this issue for now but please open a new one if you find any trouble with this.

from revapi.

vmassol avatar vmassol commented on June 8, 2024

Thanks a lot @metlos. I've now updated our code to use the new regex (thanks for noticing!): xwiki/xwiki-commons@43f427e

We'll see if it works.

from revapi.

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.