Maven 1.x Checkstyle Plugin

Allow Checkstyle plugin to access checks file from a URL

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.4
  • Component/s: None
  • Labels:
    None
  • Environment:
    Windows NT
  • Number of attachments :
    2

Description

Currently the checkstyle plugin allows you to set your own file for the checkstyle properties. It would be nice to be able to have the plugin access a URL instead, to allow users to share a common file more easily.

  1. patch.txt
    14/Aug/03 9:13 AM
    6 kB
    Michael Phillimore-Brown
  2. plugin.jelly
    14/Aug/03 9:15 AM
    8 kB
    Michael Phillimore-Brown

Activity

Hide
Michael Phillimore-Brown added a comment -

Please find attached an updated plugin that allows you to specify the property maven.checkstyle.propertiesURL. This should work on all systems, but we've only tested on Windows NT.

Show
Michael Phillimore-Brown added a comment - Please find attached an updated plugin that allows you to specify the property maven.checkstyle.propertiesURL. This should work on all systems, but we've only tested on Windows NT.
Hide
Mark Wilkinson added a comment -

Can you not share your checkstyle configurations more easily by checking them into your source control system with the rest of your project, rather than posting them on a web server somewhere?

Show
Mark Wilkinson added a comment - Can you not share your checkstyle configurations more easily by checking them into your source control system with the rest of your project, rather than posting them on a web server somewhere?
Hide
Michael Phillimore-Brown added a comment -

Hi Mark,

I'm not sure what you mean... We have, in our group, about 6-7 separate projects that all share a single coding style. As more projects are added, these will also share that coding style. I don't see how we could place the checks anywhere in a source code repository that would allow all projects to access the same file and receive instant updates if we add or remove checks.

If every project simply points at a URL (be it file, FTP, HTTP) then every project will always obtain the latest checks no matter what. Furthermore we eliminate duplication in a simple way as there is only ever one master copy of the group's checkstyle file.

Our other thinking was to make it part of the repository somehow, but this seemed too convoluted a solution.

What did you have in mind?

Cheers,

Mike

Show
Michael Phillimore-Brown added a comment - Hi Mark, I'm not sure what you mean... We have, in our group, about 6-7 separate projects that all share a single coding style. As more projects are added, these will also share that coding style. I don't see how we could place the checks anywhere in a source code repository that would allow all projects to access the same file and receive instant updates if we add or remove checks. If every project simply points at a URL (be it file, FTP, HTTP) then every project will always obtain the latest checks no matter what. Furthermore we eliminate duplication in a simple way as there is only ever one master copy of the group's checkstyle file. Our other thinking was to make it part of the repository somehow, but this seemed too convoluted a solution. What did you have in mind? Cheers, Mike
Hide
Maarten Coene added a comment -

I also need this functionality. Could you please commit the patch ?

thanks
Maarten

Show
Maarten Coene added a comment - I also need this functionality. Could you please commit the patch ? thanks Maarten
Hide
Mauro Botelho added a comment -

I also need this feature.

Show
Mauro Botelho added a comment - I also need this feature.
Hide
Emmanuel Venisse added a comment -

Applied.

Show
Emmanuel Venisse added a comment - Applied.

People

Vote (2)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: