We are using a sinlge line notice looking like this: ``` java //Copyright © 2015 Acme Inc. All Rights Reserved. package com.acme; class AcmeClass{ ``` It took me some time to figure out the correct configuration: ``` xml <?xml version="1.0" encoding="ISO-8859-1"?> <additionalHeaders> <doubleslash_single_style> <beforeEachLine>//</beforeEachLine> <firstLineDetectionPattern>(\s|\t)*//.*$</firstLineDetectionPattern> <lastLineDetectionPattern>(\s|\t)*//.*$</lastLineDetectionPattern> <allowBlankLines>false</allowBlankLines> <isMultiline>false</isMultiline> <padLines>false</padLines> </doubleslash_single_style> </additionalHeaders> ``` I'd send you a pull request but I can't find where to add it in the source
Activity
mathieucarbou commentedon Apr 25, 2016
It's in
HeaderType. You'll have to send a unit test also to make sure your pattern is working.Close #77: Added new style: SINGLE_LINE_DOUBLESLASH_STYLE
Merge pull request #148 from mycila/issue/77