From users-return-2554-archive-asf-public=cust-asf.ponee.io@netbeans.apache.org Fri Mar 15 08:37:18 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id E1111180627 for ; Fri, 15 Mar 2019 09:37:16 +0100 (CET) Received: (qmail 26820 invoked by uid 500); 15 Mar 2019 08:37:15 -0000 Mailing-List: contact users-help@netbeans.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@netbeans.apache.org Received: (qmail 26810 invoked by uid 99); 15 Mar 2019 08:37:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Mar 2019 08:37:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 79C92C2D11 for ; Fri, 15 Mar 2019 08:37:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.799 X-Spam-Level: ** X-Spam-Status: No, score=2.799 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 7mizdIf8JSDu for ; Fri, 15 Mar 2019 08:37:12 +0000 (UTC) Received: from mail-vs1-f66.google.com (mail-vs1-f66.google.com [209.85.217.66]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 467766117A for ; Fri, 15 Mar 2019 08:37:12 +0000 (UTC) Received: by mail-vs1-f66.google.com with SMTP id b8so4897904vsq.11 for ; Fri, 15 Mar 2019 01:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=V4wUvSi6V50WnzA3Qk2eY8r/43e6TWQiOPb06TFW8GU=; b=WPSPzlUTPXN0g5bkQ359T0w4i+EUUVXR8FKKROUFbQACMdvigEDmcV2honG0PAG1Ev Qil2o4EtNjZfo7pTTzgiBtz9DBZ1b6/pI9t5iPEznhEQW1qFU8EYFIX6pqoIbZcClsTd 1XrlfNMOq8PVqkzCesy2E0sWHyk5bvqdfuEYFVrkL+DXDkmySMFPZeu5IicB4aga2KQW 9KdvIqt2Oa5An6pWAZKLmhX8I0mHERGx+p6ZHk19b8CQnQuvx+a450xMLosUDpjDl1/N Syl9emzK+RgiWqHv2DXWxwdBIYYI9O7YaHfdtswRvuGCY+1fxXsWBIJn8OpNNYAfMwKJ /E8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=V4wUvSi6V50WnzA3Qk2eY8r/43e6TWQiOPb06TFW8GU=; b=RVjG8agfHx5lOw1B+vVjG3sr3QXFTvYmacxkDh3g9dLokWFkmgEj/AjSjX5g+GD8dd vLR0JoxE24V27yDH3FdGG0cywaBcV3RPxfHgeBw59mCymaj3ibFpqESn6zDVUI/J2VtV r+wQemrLDLckF5nPTRxDAZmtehWHinC0uiokKkIaTWpD6zGku2XtjQsU163MgbgIhGam ZROFlm1NatDD6XbDbPdYtTJJg8J5ucbNBazTlYPGKvpH33OEyWcfcp6XMMD1LiWQXykn up4Y2gslf5E5+lApkYXZrC4O88MuV7sqaf4OGOJkVcN8e1RyRLnddLG7eQNIjKj+h1F9 +sHA== X-Gm-Message-State: APjAAAVxv9U5hTEhbuTFYV21sxqkpKr8CtT+Xy6G8QBml/CAck2i1KZa iKAG6sJMELGWQnAWDEihHLiTY34WbaoDzVmeFqg= X-Google-Smtp-Source: APXvYqzn+O0mcLbuyJPUb8bXM8YTfzsaohtubE24EAyJVgRrIF0T1fkgYDxheo7XBvKx6SF8cVgx32L+j/nvCDRIUJc= X-Received: by 2002:a67:fd81:: with SMTP id k1mr1315521vsq.91.1552639031653; Fri, 15 Mar 2019 01:37:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Philip Durbin Date: Fri, 15 Mar 2019 04:37:00 -0400 Message-ID: Subject: Re: Checkstyle configuration from NetBeans configuration To: Enrico Olivelli Cc: NetBeans Mailing List Content-Type: multipart/alternative; boundary="000000000000f238a805841df11e" --000000000000f238a805841df11e Content-Type: text/plain; charset="UTF-8" I'm glad to hear you're working on this! Phil On Mon, Feb 25, 2019 at 8:58 AM Enrico Olivelli wrote: > Working on this, > as soon as we have something useful I will be happy to share > > Enrico > > > Il giorno sab 19 gen 2019 alle ore 21:32 Enrico Olivelli > ha scritto: > > > > We are going to work on this in my company. > > I will be back with news > > > > Once wr have a baseline maybe we could create some Netbeans plugin to > create the file given the current configuration. > > > > I guess it is not so easy > > > > Enrico > > > > Il mar 8 gen 2019, 19:27 Philip Durbin ha > scritto: > >> > >> Enrico, I want the same thing. We encourage all contributors to use > NetBeans to reformat code using the default settings before making a pull > request and I would love to be able to point these contributors to a single > Checkstyle file that confirms to the out of the box NetBeans formatting > defaults. > >> > >> John, are you saying that one of those four files (avalon_checks.xml, > maven_checks.xml, sun_checks.xml, or turbine_checks.xml) is the file I > should try? Do you or anyone else know which one matches the NetBeans > formatting defaults? > >> > >> In the absence of having a Checkstyle file that implements the default > NetBeans formatting rules, in our project (Dataverse) we have started > constructing a Checkstyle file in which we try to mimic Netbeans but right > now we only have two rules (spaces instead of tabs and curly brace > placement). Please see > http://guides.dataverse.org/en/4.10/developers/coding-style.html#checking-your-formatting-with-checkstyle > for our write up and > https://github.com/IQSS/dataverse/blob/v4.10/checkstyle.xml for our file > that has only the two checks above. I would love to be able to replace our > file with only the two checks with the "real" Checkstyle file that > implements all the out of the box NetBeans formatting rules. > >> > >> Thanks, > >> > >> Phil > >> > >> On Tue, Jan 8, 2019 at 3:24 AM Enrico Olivelli > wrote: > >>> > >>> Il giorno mar 8 gen 2019 alle ore 09:09 John McDonnell > >>> ha scritto: > >>> > > >>> > Are you using a maven project? > >>> > > >>> > I think OOTB the maven checkstyle support uses one of the 3 'checks' > files in here: > https://github.com/apache/incubator-netbeans/tree/master/java/maven.checkstyle/src/org/netbeans/modules/maven/format/checkstyle/config > >>> > > >>> > After adding the plugin to the pom.xml file. > >>> > >>> > >>> This is true, and that integration is great, > >>> but my main problem is that I have many (Maven based) projects in > >>> which I would like to enable checkstyle, > >>> and they are all formatted with default NetBeans formatter, > >>> it is hard to have a checkstyle configuration which is okay with them > >>> > >>> > >>> Enrico > >>> > >>> > >>> > > >>> > Regards > >>> > > >>> > John > >>> > > >>> > On Tue, 8 Jan 2019 at 07:31, Enrico Olivelli > wrote: > >>> >> > >>> >> > >>> >> > >>> >> Il lun 7 gen 2019, 18:07 marccollin7379@gmail.com < > marccollin7379@gmail.com> ha scritto: > >>> >>> > >>> >>> Have you tried to download checkstyle plugin? > >>> >>> you can choose a configuration file > >>> >>> https://www.sickboy.cz/checkstyle/screenshots.html > >>> >> > >>> >> > >>> >> That's cool but my primary need is to make code formatted > automatically by netbeans compliant with a checkstyle rules sheet. > >>> >> > >>> >> In most all of my projects I have always used netbeans with default > configuration so I am looking for a checkstyle configuration file which > covers that configuration. > >>> >> > >>> >> I don't need hints on the UI. > >>> >> There is a minimal integration for checkstyle Maven plugin but it > is not covering many aspects > >>> >> > >>> >> So instead of making code formatted by netbeans compliant with my > rules..let's create the rules which suit netbeans way of working > >>> >> > >>> >> Enrico > >>> >> > >>> >>> > >>> >>> > >>> >>> On 2019/01/07 12:26:47, Enrico Olivelli > wrote: > >>> >>> > Hi, > >>> >>> > is there any way to create a checkstyle configuration file given > the > >>> >>> > current NetBeans configuration for automatic reformat of Java > code ? > >>> >>> > > >>> >>> > I would like to have a default checkstyle configuration file > which > >>> >>> > works out-of-the box with the out-of-the-box configuration of > >>> >>> > NetBeans. > >>> >>> > > >>> >>> > PS. NetBeans 10 works like a charm, thank you ! > >>> >>> > > >>> >>> > Cheers > >>> >>> > Enrico > >>> >>> > > >>> >>> > > --------------------------------------------------------------------- > >>> >>> > To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org > >>> >>> > For additional commands, e-mail: users-help@netbeans.apache.org > >>> >>> > > >>> >>> > For further information about the NetBeans mailing lists, visit: > >>> >>> > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > >>> >>> > > >>> >>> > > >>> >>> > >>> >>> > --------------------------------------------------------------------- > >>> >>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org > >>> >>> For additional commands, e-mail: users-help@netbeans.apache.org > >>> >>> > >>> >>> For further information about the NetBeans mailing lists, visit: > >>> >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > >>> >>> > >>> >> -- > >>> >> > >>> >> > >>> >> -- Enrico Olivelli > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org > >>> For additional commands, e-mail: users-help@netbeans.apache.org > >>> > >>> For further information about the NetBeans mailing lists, visit: > >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > >>> > > -- > > > > > > -- Enrico Olivelli > --000000000000f238a805841df11e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm glad to hear you're working on this!

Phil

On Mon, Feb 25, 2019 at 8:58 AM Enrico O= livelli <eolivelli@gmail.com&= gt; wrote:
Worki= ng on this,
as soon as we have something useful I will be happy to share

Enrico


Il giorno sab 19 gen 2019 alle ore 21:32 Enrico Olivelli
<eolivelli@gmai= l.com> ha scritto:
>
> We are going to work on this in my company.
> I will be back with news
>
> Once wr have a baseline maybe we could create some Netbeans plugin to = create the file given the current configuration.
>
> I guess it is not so easy
>
> Enrico
>
> Il mar 8 gen 2019, 19:27 Philip Durbin <philipdurbin@gmail.com> ha scritto:=
>>
>> Enrico, I want the same thing. We encourage all contributors to us= e NetBeans to reformat code using the default settings before making a pull= request and I would love to be able to point these contributors to a singl= e Checkstyle file that confirms to the out of the box NetBeans formatting d= efaults.
>>
>> John, are you saying that one of those four files (avalon_checks.x= ml, maven_checks.xml, sun_checks.xml, or turbine_checks.xml) is the file I = should try? Do you or anyone else know which one matches the NetBeans forma= tting defaults?
>>
>> In the absence of having a Checkstyle file that implements the def= ault NetBeans formatting rules, in our project (Dataverse) we have started = constructing a Checkstyle file in which we try to mimic Netbeans but right = now we only have two rules (spaces instead of tabs and curly brace placemen= t). Please see http://guides.dataverse.org/en/4.10/developers/coding-s= tyle.html#checking-your-formatting-with-checkstyle for our write up and= https://github.com/IQSS/dataverse/blob/v= 4.10/checkstyle.xml for our file that has only the two checks above. I = would love to be able to replace our file with only the two checks with the= "real" Checkstyle file that implements all the out of the box Ne= tBeans formatting rules.
>>
>> Thanks,
>>
>> Phil
>>
>> On Tue, Jan 8, 2019 at 3:24 AM Enrico Olivelli <eolivelli@gmail.com> wrote= :
>>>
>>> Il giorno mar 8 gen 2019 alle ore 09:09 John McDonnell
>>> <mcdonnell.john@gmail.com> ha scritto:
>>> >
>>> > Are you using a maven project?
>>> >
>>> > I think OOTB the maven checkstyle support uses one of the= 3 'checks' files in here: https:= //github.com/apache/incubator-netbeans/tree/master/java/maven.checkstyle/sr= c/org/netbeans/modules/maven/format/checkstyle/config
>>> >
>>> > After adding the plugin to the pom.xml file.
>>>
>>>
>>> This is true, and that integration is great,
>>> but my main problem is that I have many (Maven based) projects= in
>>> which I would like to enable checkstyle,
>>> and they are all formatted with default NetBeans formatter, >>> it is hard to have a checkstyle configuration which is okay wi= th them
>>>
>>>
>>> Enrico
>>>
>>>
>>> >
>>> > Regards
>>> >
>>> > John
>>> >
>>> > On Tue, 8 Jan 2019 at 07:31, Enrico Olivelli <eolivelli@gmail.com&g= t; wrote:
>>> >>
>>> >>
>>> >>
>>> >> Il lun 7 gen 2019, 18:07 marccollin7379@gmail.com <marccollin7379@gmail= .com> ha scritto:
>>> >>>
>>> >>> Have you tried to download checkstyle plugin?
>>> >>> you can choose a configuration file
>>> >>> https://www.sickboy.cz/c= heckstyle/screenshots.html
>>> >>
>>> >>
>>> >> That's cool but my primary need is to make code f= ormatted automatically by netbeans compliant with a checkstyle rules sheet.=
>>> >>
>>> >> In most all of my projects I have always used netbean= s with default configuration so I am looking for a checkstyle configuration= file which covers that configuration.
>>> >>
>>> >> I don't need hints on the UI.
>>> >> There is a minimal integration for checkstyle Maven p= lugin but it is not covering many aspects
>>> >>
>>> >> So instead of making code formatted by netbeans compl= iant with my rules..let's create the rules which suit netbeans way of w= orking
>>> >>
>>> >> Enrico
>>> >>
>>> >>>
>>> >>>
>>> >>> On 2019/01/07 12:26:47, Enrico Olivelli <eolivelli@gmail.com= > wrote:
>>> >>> > Hi,
>>> >>> > is there any way to create a checkstyle conf= iguration file given the
>>> >>> > current NetBeans configuration for automatic= reformat of Java code ?
>>> >>> >
>>> >>> > I would like to have a default checkstyle co= nfiguration file which
>>> >>> > works out-of-the box with the out-of-the-box= configuration of
>>> >>> > NetBeans.
>>> >>> >
>>> >>> > PS. NetBeans 10 works like a charm, thank yo= u !
>>> >>> >
>>> >>> > Cheers
>>> >>> > Enrico
>>> >>> >
>>> >>> > --------------------------------------------= -------------------------
>>> >>> > To unsubscribe, e-mail: users-unsubscribe@ne= tbeans.apache.org
>>> >>> > For additional commands, e-mail: users-help@netbean= s.apache.org
>>> >>> >
>>> >>> > For further information about the NetBeans m= ailing lists, visit:
>>> >>> > htt= ps://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>> >>> >
>>> >>> >
>>> >>>
>>> >>> -------------------------------------------------= --------------------
>>> >>> To unsubscribe, e-mail: users-unsubscribe@netbean= s.apache.org
>>> >>> For additional commands, e-mail: users-help@netbeans.apa= che.org
>>> >>>
>>> >>> For further information about the NetBeans mailin= g lists, visit:
>>> >>> https://= cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>> >>>
>>> >> --
>>> >>
>>> >>
>>> >> -- Enrico Olivelli
>>>
>>> --------------------------------------------------------------= -------
>>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org<= /a>
>>> For additional commands, e-mail:
users-help@netbeans.apache.org >>>
>>> For further information about the NetBeans mailing lists, visi= t:
>>> https://cwiki.apache.= org/confluence/display/NETBEANS/Mailing+lists
>>>
> --
>
>
> -- Enrico Olivelli
--000000000000f238a805841df11e--