Skip to content

Conversation

@tarekoraby
Copy link
Contributor

Unlike vaadin.whitelisted-packages which can be specified with both '.' and '/', vaadin.blacklisted-packages only works with '/'.
This is suboptimal, as rightly noted in this issue, because packages use . not /.

@CLAassistant
Copy link

CLAassistant commented Nov 17, 2021

CLA assistant check
All committers have signed the CLA.

} else {
neverScan = Arrays.stream(neverScanProperty.split(","))
.map(String::trim).collect(Collectors.toList());
.map(onlyFolder -> onlyFolder.replace('.', '/').trim())
Copy link
Member

Choose a reason for hiding this comment

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

onlyFolder - what does that refer to?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To use the folder instead of package (to be symmetrical to how onlyPackages is used with vaadin.whitelisted-packages)

Copy link
Contributor Author

@tarekoraby tarekoraby Nov 17, 2021

Choose a reason for hiding this comment

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

Though I now realize that "only" probably refers to the inclusion criterion of whitelisted packages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to pkg

@Artur- Artur- enabled auto-merge (squash) November 18, 2021 07:51
@vaadin-bot
Copy link
Collaborator

SonarQube analysis reported 21 issues

  • CRITICAL 5 critical
  • MAJOR 4 major
  • MINOR 12 minor

Top 10 issues

  1. CRITICAL VaadinServletContextInitializer.java#L179: Move constants to a class or enum. rule
  2. CRITICAL VaadinServletContextInitializer.java#L807: Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed. rule
  3. CRITICAL VaadinServletContextInitializer.java#L821: Refactor this code to not nest more than 3 if/for/while/switch/try statements. rule
  4. CRITICAL VaadinServletContextInitializer.java#L828: Refactor this code to not nest more than 3 if/for/while/switch/try statements. rule
  5. CRITICAL VaadinServletContextInitializer.java#L834: Refactor this code to not nest more than 3 if/for/while/switch/try statements. rule
  6. MAJOR VaadinServletContextInitializer.java#L192: Define and throw a dedicated exception instead of using a generic one. rule
  7. MAJOR VaadinServletContextInitializer.java#L395: Define and throw a dedicated exception instead of using a generic one. rule
  8. MAJOR VaadinServletContextInitializer.java#L425: Define and throw a dedicated exception instead of using a generic one. rule
  9. MAJOR VaadinServletContextInitializer.java#L460: Define and throw a dedicated exception instead of using a generic one. rule
  10. MINOR VaadinServletContextInitializer.java#L66: Remove this unused import 'com.vaadin.flow.internal.ReflectTools'. rule

@Artur- Artur- merged commit c548166 into master Nov 18, 2021
@Artur- Artur- deleted the tarekoraby-patch-1 branch November 18, 2021 08:27
manolo pushed a commit to vaadin/flow that referenced this pull request Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants