Scalastyle 0.3.0 released

96 views
Skip to first unread message

Matthew Farwell

unread,
May 19, 2013, 5:26:04 AM5/19/13
to scalasty...@googlegroups.com
Scalastyle 0.3.0 has been released. It contains the following changes:

  • Support for 2.10
  • Skip PublicMethodsHaveTypeChecker for constructors
  • Skip PublicMethodsHaveTypeChecker when function body does not exist
  • Added ignoreOverride parameter for PublicMethodsHaveTypeChecker, if true, don’t check methods with override
  • For method names, ignore mutators by default (foo=_())
  • Allow declaration of a customID for rules, if a rule has more than one instance (for example a regex)
  • Add rule for block imports
  • Catch usage of ??? operator


As normal, you can use this through:

There are several ways of using it:

Maven Plugin
Eclipse plugin (for 3.7 Indigo, 4.2 Juno and 3.6 Helios)
SBT plugin
Command line

See http://www.scalastyle.org for more informaiton.

Matthew Farwell.

Simon Schäfer

unread,
May 19, 2013, 7:25:54 AM5/19/13
to scalasty...@googlegroups.com
Hi Matthew,

thanks for the new release. I'm just unable to use the Maven plugin of version 0.3.0:

[ERROR] Failed to execute goal org.scalastyle:scalastyle-maven-plugin:0.3.0:check (default-cli) on project first-maven-plugin: Execution default-cli of goal org.scalastyle:scalastyle-maven-plugin:0.3.0:check failed: Plugin org.scalastyle:scalastyle-maven-plugin:0.3.0 or one of its dependencies could not be resolved: Could not find artifact com.jsuereth:scala-mojo-support_2.10:jar:0.5-SNAPSHOT in sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots) -> [Help 1]

What went wrong with the dependency?


On 05/19/2013 11:26 AM, Matthew Farwell wrote:
Scalastyle 0.3.0 has been released. It contains the following changes:
  • Support for 2.10
  • Skip PublicMethodsHaveTypeChecker for constructors
  • Skip PublicMethodsHaveTypeChecker when function body does not exist
  • Added ignoreOverride parameter for PublicMethodsHaveTypeChecker, if true, don�t check methods with override
  • For method names, ignore mutators by default (foo=_())
  • Allow declaration of a customID for rules, if a rule has more than one instance (for example a regex)
  • Add rule for block imports
  • Catch usage of ??? operator


As normal, you can use this through:

There are several ways of using it:

Maven Plugin
Eclipse plugin (for 3.7 Indigo, 4.2 Juno and 3.6 Helios)
SBT plugin
Command line

See http://www.scalastyle.org for more informaiton.

Matthew Farwell.
--
Vous recevez ce message, car vous �tes abonn� au groupe Google Groupes�Scalastyle users.
Pour vous d�sabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail � l'adresse scalastyle-use...@googlegroups.com.
Pour envoyer un message � ce groupe, adressez un e-mail �scalasty...@googlegroups.com.
Visitez ce groupe � l'adresse http://groups.google.com/group/scalastyle-users?hl=fr .
Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
�
�

Matthew Farwell

unread,
May 21, 2013, 8:41:09 AM5/21/13
to scalasty...@googlegroups.com
Hello,

Yes indeed. My bad. I'll do a 0.3.1 later on, hopefully this evening or tomorrow.

Thanks.

Matthew Farwell.


2013/5/19 Simon Schäfer <ma...@antoras.de>
Hi Matthew,

thanks for the new release. I'm just unable to use the Maven plugin of version 0.3.0:

[ERROR] Failed to execute goal org.scalastyle:scalastyle-maven-plugin:0.3.0:check (default-cli) on project first-maven-plugin: Execution default-cli of goal org.scalastyle:scalastyle-maven-plugin:0.3.0:check failed: Plugin org.scalastyle:scalastyle-maven-plugin:0.3.0 or one of its dependencies could not be resolved: Could not find artifact com.jsuereth:scala-mojo-support_2.10:jar:0.5-SNAPSHOT in sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots) -> [Help 1]

What went wrong with the dependency?


On 05/19/2013 11:26 AM, Matthew Farwell wrote:
Scalastyle 0.3.0 has been released. It contains the following changes:
  • Support for 2.10
  • Skip PublicMethodsHaveTypeChecker for constructors
  • Skip PublicMethodsHaveTypeChecker when function body does not exist
  • Added ignoreOverride parameter for PublicMethodsHaveTypeChecker, if true, don’t check methods with override
  • For method names, ignore mutators by default (foo=_())
  • Allow declaration of a customID for rules, if a rule has more than one instance (for example a regex)
  • Add rule for block imports
  • Catch usage of ??? operator


As normal, you can use this through:

There are several ways of using it:

Maven Plugin
Eclipse plugin (for 3.7 Indigo, 4.2 Juno and 3.6 Helios)
SBT plugin
Command line

See http://www.scalastyle.org for more informaiton.

Matthew Farwell.
--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes Scalastyle users.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse scalastyle-use...@googlegroups.com.
Pour envoyer un message à ce groupe, adressez un e-mail à scalasty...@googlegroups.com.
Visitez ce groupe à l'adresse http://groups.google.com/group/scalastyle-users?hl=fr .

Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
 
 

--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes Scalastyle users.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse scalastyle-use...@googlegroups.com.
Pour envoyer un message à ce groupe, adressez un e-mail à scalasty...@googlegroups.com.
Visitez ce groupe à l'adresse http://groups.google.com/group/scalastyle-users?hl=fr .

Matthew Farwell

unread,
May 22, 2013, 3:22:11 AM5/22/13
to scalasty...@googlegroups.com
Hi,

There is now a version of scalastyle and the scalastyle maven plugin 0.3.1 which doesn't have the dependency.

For info, I'll be doing a cut of 0.3.1 for sbt later.

Sorry for any inconvenience caused.

Matthew Farwell.


2013/5/21 Matthew Farwell <mat...@farwell.co.uk>

Simon Schäfer

unread,
May 22, 2013, 5:27:52 AM5/22/13
to scalasty...@googlegroups.com

On 05/22/2013 09:22 AM, Matthew Farwell wrote:
Hi,

There is now a version of scalastyle and the scalastyle maven plugin 0.3.1 which doesn't have the dependency.
Thanks for all your work Matthew, it works fine now.

I just found a bug in Scalastyle: it doesn't proceed with empty Scala files. I will try to fix it and open a PR later, shouldn't be that difficult to fix it.

For info, I'll be doing a cut of 0.3.1 for sbt later.

Sorry for any inconvenience caused.

Matthew Farwell.


2013/5/21 Matthew Farwell <mat...@farwell.co.uk>
Hello,

Yes indeed. My bad. I'll do a 0.3.1 later on, hopefully this evening or tomorrow.

Thanks.

Matthew Farwell.


2013/5/19 Simon Sch�fer <ma...@antoras.de>
Hi Matthew,

thanks for the new release. I'm just unable to use the Maven plugin of version 0.3.0:

[ERROR] Failed to execute goal org.scalastyle:scalastyle-maven-plugin:0.3.0:check (default-cli) on project first-maven-plugin: Execution default-cli of goal org.scalastyle:scalastyle-maven-plugin:0.3.0:check failed: Plugin org.scalastyle:scalastyle-maven-plugin:0.3.0 or one of its dependencies could not be resolved: Could not find artifact com.jsuereth:scala-mojo-support_2.10:jar:0.5-SNAPSHOT in sonatype-nexus-snapshots (https://oss.sonatype.org/content/repositories/snapshots) -> [Help 1]

What went wrong with the dependency?


On 05/19/2013 11:26 AM, Matthew Farwell wrote:
Scalastyle 0.3.0 has been released. It contains the following changes:
  • Support for 2.10
  • Skip PublicMethodsHaveTypeChecker for constructors
  • Skip PublicMethodsHaveTypeChecker when function body does not exist
  • Added ignoreOverride parameter for PublicMethodsHaveTypeChecker, if true, don�t check methods with override
  • For method names, ignore mutators by default (foo=_())
  • Allow declaration of a customID for rules, if a rule has more than one instance (for example a regex)
  • Add rule for block imports
  • Catch usage of ??? operator


As normal, you can use this through:

There are several ways of using it:

Maven Plugin
Eclipse plugin (for 3.7 Indigo, 4.2 Juno and 3.6 Helios)
SBT plugin
Command line

See http://www.scalastyle.org for more informaiton.

Matthew Farwell.
--
Vous recevez ce message, car vous �tes abonn� au groupe Google Groupes�Scalastyle users.
Pour vous d�sabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail � l'adresse scalastyle-use...@googlegroups.com.
Pour envoyer un message � ce groupe, adressez un e-mail �scalasty...@googlegroups.com.
Visitez ce groupe � l'adresse http://groups.google.com/group/scalastyle-users?hl=fr .

Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
�
�

--
Vous recevez ce message, car vous �tes abonn� au groupe Google Groupes�Scalastyle users.
Pour vous d�sabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail � l'adresse scalastyle-use...@googlegroups.com.
Pour envoyer un message � ce groupe, adressez un e-mail �scalasty...@googlegroups.com.
Visitez ce groupe � l'adresse http://groups.google.com/group/scalastyle-users?hl=fr .

Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
�
�


--
Vous recevez ce message, car vous �tes abonn� au groupe Google Groupes�Scalastyle users.
Pour vous d�sabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail � l'adresse scalastyle-use...@googlegroups.com.
Pour envoyer un message � ce groupe, adressez un e-mail �scalasty...@googlegroups.com.
Visitez ce groupe � l'adresse http://groups.google.com/group/scalastyle-users?hl=fr .

Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
�
�

Arthur Kho

unread,
Sep 21, 2013, 10:18:38 PM9/21/13
to scalasty...@googlegroups.com
Hello Matthew, 

I am not an Eclipse user and I am new to Scala. I am using scalaide.org's eclipse bundle on my Mac. I can't find the "select Scalastyle->Add Scalastyle Nature" option in Eclipse. Can you give me a hint on how I can  add Scalastyle to my Eclipse?

Thanks!

Art

Matthew Farwell

unread,
Oct 6, 2013, 12:49:00 AM10/6/13
to scalasty...@googlegroups.com
Hello,

Which version are you using?

In Eclipse, in Help->Install New Software, add the site which matches your version from http://www.scalastyle.org, and then install Scalastyle from there.

Have fun,

Matthew Farwell.


2013/9/22 Arthur Kho <beijin...@gmail.com>
--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes Scalastyle users.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse scalastyle-use...@googlegroups.com.
Pour envoyer un message à ce groupe, adressez un e-mail à scalasty...@googlegroups.com.
Visitez ce groupe à l'adresse http://groups.google.com/group/scalastyle-users .

manu john

unread,
Feb 20, 2017, 6:34:59 AM2/20/17
to Scalastyle users
hi Mathew ,
     Am also facing the same issue, i am using scalaIDE with maven , i added all the dependencies and the build got successfull also but am not able to find this 
     select Scalastyle->Add Scalastyle Nature" option in Eclipse.

Reply all
Reply to author
Forward
0 new messages