I think you have to add the following code in the XML file you created from the highlighted area of code concerning checkstyle in the pom file :
<?xml version="1.0"?> *<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd <http://www.puppycrawl.com/dtds/configuration_1_3.dtd>">* <module name="Checker"> ... (it may be possible to proceed differently but this is what I did on my side) Pierre 2016-02-23 17:00 GMT+01:00 DAVID SMITH <[email protected]>: > Pierre > I have loaded Formatter file as you suggested, and that works I have tried > both links for the checkstyle config, one gives me a 404 error the other > takes me to the NiFi pom file and highlights a area of code which is a > maven checkstyle plugin, I tried saving it as an xml file and importing it > but again I got 'Document is invalid - No grammer found' error. > Dave > > On Tuesday, 23 February 2016, 15:12, Pierre Villard < > [email protected]> wrote: > > > Hi David, > > Regarding the formatter file, it is supposed to be loaded in Preferences / > Java / Code style / Formatter. > > For the checkstyle configuration, if I remember correctly there are two > links pointing to the configuration file but only one is valid. Did you > manage to add the checkstyle conf? > > Pierre > > 2016-02-23 16:02 GMT+01:00 DAVID SMITH <[email protected]>: > > > Hi > > As I am looking to submit code I looked on the Contributors Guide at the > > Code Style section.I am using Eclipse Mars and I loaded the Checksytyle > > plugin, I downloaded the eclipse-formatter.xml from the link, but it will > > not load into the Check Configuration panel in Eclipse, I get the > following > > error:Unable to parse configuration stream - Document is invalid: no > > grammar found.:12:10 > > Has anyone seen this error before and managed to overcome it? > > Also under the Eclipse Users heading the 'checkstyle rules' hyperlink > > always returns error 404. > > ThanksDave > > > >
