Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 21 18:58

    pbludov on master

    (compare)

  • Jan 21 18:16

    pbludov on master

    Issue #7468: disable 'external-… minor: add space before xml com… dependency: bump junit.version … and 1 more (compare)

  • Jan 20 21:45

    pbludov on issue-7487-has-children

    Issue #7475: resolve Cognitive … doc: extend Indentation Check e… dependency: bump antlr4.version… and 3 more (compare)

  • Jan 18 12:40

    pbludov on master

    Issue #7492: enforce jdk 1.8 by… Issue #7472: disable instatiati… minor: add missing test case to… (compare)

  • Jan 18 11:00

    pbludov on master

    minor: add missing test case to… (compare)

  • Jan 18 10:37

    pbludov on master

    misc: add missing test case to … (compare)

  • Jan 18 10:29

    pbludov on master

    minor: fix headers in various f… minor: remove unnecessary optio… config: add .ci/bump-license-ye… and 11 more (compare)

  • Jan 17 19:41

    pbludov on issue-7487-has-children

    dependency: bump junit-pioneer … Issue #5604: activation of sona… Issue #6972: NoEnumTrailingComm… and 25 more (compare)

  • Jan 17 19:26

    pbludov on issue-7487-has-children

    Issue #7487: add method hasChil… Issue #7487: refactor code to u… (compare)

  • Jan 17 19:18

    pbludov on issue-7487-has-children

    Issue #7487: refactor code to u… (compare)

  • Jan 17 19:15

    pbludov on issue-7487-has-children

    minor: fix headers in various f… minor: remove unnecessary optio… config: add .ci/bump-license-ye… and 12 more (compare)

  • Jan 12 05:21

    pbludov on issue-7446-xdocs-checks

    (compare)

  • Jan 11 19:51

    pbludov on issue-7446-xdocs-checks

    Issue #7446: ensure all checks … (compare)

  • Jan 11 17:13

    pbludov on issue-7446-xdocs-checks

    Issue #7446: ensure all checks … (compare)

  • Jan 11 16:48

    pbludov on issue-7446-xdocs-checks

    Issue #7446: ensure all checks … (compare)

  • Jan 11 16:31

    pbludov on issue-7446-xdocs-checks

    Issue #7446: ensure all checks … (compare)

  • Jan 11 16:28

    pbludov on issue-7446-xdocs-checks

    Revert "config: disable sonarqu… config: enable sonar build on m… doc: sync summaries of all chec… (compare)

  • Jan 10 23:11

    pbludov on issue-7446-xdocs-checks

    doc: sync summaries of all chec… (compare)

  • Jan 10 22:15

    pbludov on issue-7446-xdocs-checks

    doc: sync summaries of all chec… (compare)

  • Jan 10 22:11

    pbludov on issue-7446-xdocs-checks

    doc: sync summaries of all chec… (compare)

Eugenio Romano
@eromano
sure no problem
thanks
Eugenio Romano
@eromano
matrixbot
@matrixbot
BuZZ-dEE hi is possible to convert an old checkstyle configuration / xml file to a new version if for example there breaking changes from the old one to the new one?
Roman Ivanov
@romani
I do know such tool
I do not know such tool
Roman Ivanov
@romani
We try to be accurate and clearly define bracking changes and provide migration notes in issues
From what version you are upgrading ?
Roman Ivanov
@romani
======
code freeze till I finish release 8.24
Roman Ivanov
@romani
Done
Mincong Huang
@mincong-h
Thank you @romani :raised_hands:
Mincong Huang
@mincong-h

Hi everyone, I would like to know if there is a check in Checkstyle which verifies the correctness of placeholders in String.formator any similar formatting method?

Here are 3 examples:

jshell> String.format("Hello, %s", "Checkstyle");
$1 ==> "Hello, Checkstyle"

jshell> String.format("Hello, %s", "check", "style");
$1 ==> "Hello, check"

jshell> String.format("Hello, %s");
|  Exception java.util.MissingFormatArgumentException: Format specifier 'Exception in thread "main" java.util.MissingFormatArgumentException: Format specifier '%s'
    at java.base/java.util.Formatter.format(Formatter.java:2672)
    at java.base/java.io.PrintStream.format(PrintStream.java:1053)
    at java.base/java.io.PrintStream.printf(PrintStream.java:949)
    at jdk.jshell/jdk.internal.jshell.tool.JShellTool.error(JShellTool.java:728)
    at jdk.jshell/jdk.internal.jshell.tool.JShellTool.errormsg(JShellTool.java:867)
    at jdk.jshell/jdk.internal.jshell.tool.JShellTool.displayEvalException(JShellTool.java:3451)
    at jdk.jshell/jdk.internal.jshell.tool.JShellTool.displayException(JShellTool.java:3425)
    at jdk.jshell/jdk.internal.jshell.tool.JShellTool.displayException(JShellTool.java:3418)
    at jdk.jshell/jdk.internal.jshell.tool.JShellTool.handleEvent(JShellTool.java:3582)
    at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSource(JShellTool.java:3550)
    at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processSourceCatchingReset(JShellTool.java:1301)
    at jdk.jshell/jdk.internal.jshell.tool.JShellTool.processInput(JShellTool.java:1203)
    at jdk.jshell/jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:1176)
    at jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:975)
    at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder.start(JShellToolBuilder.java:254)
    at jdk.jshell/jdk.internal.jshell.tool.JShellToolProvider.main(JShellToolProvider.java:120)
Roman Ivanov
@romani
there is no such Check
Mincong Huang
@mincong-h
Thank you, Roman.
sreejith-sjrs
@sreejith-sjrs
Hello All,
Newbie here, so please go easy on me. I have some binary source files which I do not want to fingerprint. Obviously UTF-8 encoding is not correct. I was wondering if there was a way to avoid such error messages.
[CheckStyle] [-ERROR-] Can't create fingerprints for some files:
[CheckStyle] [-ERROR-] - 'C:/Jenkins/workspace/example_master/Add.vi', provided encoding 'UTF-8' seems to be wrong
My analysis step in my pipeline looks like this:
recordIssues(
enabledForFailure: true, forensicsDisabled: true, unstableTotalAll: 1, healthy: 1, unhealthy: 10,
tools: [checkStyle(pattern: 'build_temp\VIA_results.xml', reportEncoding: 'UTF-8')]
Please help.
Thanks in advance.
rnveach
@rnveach
Unfortunately that error is not coming from main Checkstyle jar, so I don't know how to help you. You would have to look more into jenkins
sreejith-sjrs
@sreejith-sjrs
OK. Thanks very much for getting back to me. I will try to reach out Jenkins folks
Roman Ivanov
@romani
Roman Ivanov
@romani
code freeze till release 8.26 completed
Roman Ivanov
@romani
https://checkstyle.org/releasenotes.html#Release_8.26 - done, thanks a lot to all contributors
Chethan Prakash
@chethan
Hi, Is there any easy way to add custom checkstyle rules, to fail build for using specific classes
Roman Ivanov
@romani
While checkstyle/checkstyle#6481 is not done, no very easy way, but you are welcome to contribute such implementation
Pavel Bludov
@pbludov
Pitest is broken because I messed up the System.err and System.out when migrating to Junit5. Soon there will be a PR with a fix.
rnveach
@rnveach
happy holidays
Roman Ivanov
@romani
Merry Christmas !
Suchet-Agg
@Suchet-Agg
Hi, I am Suchet Aggarwal and am new to this organization and would like to contribute to this organization, can someone help me get started...
rnveach
@rnveach
@Suchet-Agg Read over https://checkstyle.org/beginning_development.html . You can pick any issue from our repository of things needing fixing. If you want us to assign you an issue we think will be good for beginners, let us know. You just need to say "I am on it" in the issue you are working on to let others know.