Skip to content

Add support for single line doubleslash style #77

Closed

Description

@jakub-bochenski

We are using a sinlge line notice looking like this:

//Copyright © 2015 Acme Inc. All Rights Reserved.
package com.acme;

class AcmeClass{

It took me some time to figure out the correct configuration:

<?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

  1. added
    is:enhancement
    on Jul 15, 2015
  2. mathieucarbou commented on Apr 25, 2016

    @mathieucarbou
    Owner

    It's in HeaderType. You'll have to send a unit test also to make sure your pattern is working.

  3. added
    todo
    on Aug 12, 2016
  4. added a commit that references this issue on Feb 6, 2019
    ee4548b
  5. ghost removed
    todo
    on Feb 6, 2019
  6. modified the milestone: 4.0 on Feb 6, 2019
  7. added a commit that references this issue on Feb 6, 2019
    ccf2c36
  8. removed
    todo
    on Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

is:enhancement

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions