GithubHelp home page GithubHelp logo

dduan / drstring Goto Github PK

View Code? Open in Web Editor NEW
168.0 5.0 6.0 4.49 MB

DrString finds issues in your Swift docstrings and fixes them for you.

License: MIT License

Makefile 0.48% Swift 93.25% Python 0.81% Shell 5.46%
swift linter documentation formatter docstrings

drstring's People

Contributors

dduan avatar jpsim avatar kastiglione avatar keith avatar maxdesiatov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

drstring's Issues

Guaka help for flags is ugly

The idea is sound but the implementation is naive. Right now, the help text is too wide due to potential enum values. And as far as I can tell there's no way to customize the text.

Maybe it's time to get rid of Guaka 😢.

CLI help is rudimentary

The stuff the cli app prints out is generally correct but really not good enough to get user anywhere. It should aim for self sufficiency and reference online documentation.

No way to concatenate continuous lines

When an docstring entry spans multiple lines, there's no option to join them in addition to breaking over-the-column-limit lines up to newlines. Sometimes user may prefer automatic joining behavior. For example, when authoring comments, I may add some words in one line of comment as an edit and it would be nice when this comment gets folded into multiple lines, the next line can join up with end of the last newly created lines, as opposed to stay on the next line.

Tutorial is missing

Practical instructions to get folks started

  • Usage of CLI for check and explain
  • Usage with config

Missing logo

Logo should be Dr. Strange inspired. Font, if any, should resemble the title graphic of Dr. Strange in the Multiverse of Madness 😋

Missing explanation of modules

A architecture.md would help a lot. In it the goofy module names should be explained (maybe even illustrated with comic characters?!?!?! too much?)

Does't lint for local vertical alignment

right now this is a valid entry for returns:

/// - returns: description blah blah
/// description continues.

… which is fine.

But one can see a use case where folks prefer (and therefore want to lint and format) the second line to start on the same column with the first line:

/// - returns: description blah blah
///            description continues.

Superficial exclusion report starts weird

Modules/RequestFlow/Sources/Protocols/ModeSelectorBannerDisplayable.swift:0:0: warning: 1 docstring problem regarding ``
|E015| This file is explicitly excluded, but it has no docstring problems.

Because documentable name is empty string, you end up with a empty backtick quoted string at end of first line.

Bug formatting empty docstring items

/// Notice how `foo` doesn't have any content
///
/// - Parameter foo:

will be formatted into

/// Notice how `foo` doesn't have any content
///
/// - Parameter foo: ///

Doesn’t really format

The ads claim that this is a “formatter”. But as far as I can tell it only lints for issues. What gives?

Zero space in TTY format is not easy to read

whenever the literal whitespace is part of a problem description, and the problematic amount is 0 whitespace, it won't show up as a colored ANSI string (because there's no literal to color). The format need to be improved.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.