Skip to content

Google style indentation #715

@thernstig

Description

@thernstig

Motivation

Indentation matters for readability, especially having a consistent indentation of documentation. I want to be able to use google style indentation for @parameter and @return as an example.

Current behavior

This might be part of check-indentation but I could not get it work with it.

Desired behavior

I want this to be invalid:

  /**
   * Do something.
   *
   * @param {string} fooA - Some text
   * @param {string} fooB - If defined, it foos
   * a lot all day long.
   */

I want this to be valid (with the new rule)

  /**
   * Do something.
   *
   * @param {string} fooA - Some text
   * @param {string} fooB - If defined, it foos
   *     a lot all day long. // This has been double-indented (4 spaces, we use 2 spaces for indents)
   */

This is called google style indent. It makes it easier to read the documentation.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions