Coder Social home page Coder Social logo

sublimelinter-contrib-proselint's Introduction

SublimeLinter-contrib-proselint

Build Status

This linter plugin for SublimeLinter provides an interface to proselint. It will be used with files that have the “markdown”, “text”, or “plain text” syntaxes.

Installation

SublimeLinter 3 must be installed in order to use this plugin. If SublimeLinter 3 is not installed, please follow the instructions here.

Linter installation

Before using this plugin, you must ensure that proselint is installed on your system. To install proselint, do the following:

  1. Install Python and pip.

  2. Install proselint by typing the following in a terminal:

    [sudo] pip install proselint
    

Note: This plugin requires proselint 0.3.4 or later.

Linter configuration

In order for proselint to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. Before going any further, please read and follow the steps in “Finding a linter executable” through “Validating your PATH” in the documentation.

Once you have installed and configured proselint, you can proceed to install the SublimeLinter-contrib-proselint plugin if it is not yet installed.

Plugin installation

Please use Package Control to install the linter plugin. This will ensure that the plugin will be updated when new versions are available. If you want to install from source so you can modify the source code, you probably know what you are doing so we won’t cover that here.

To install via Package Control, do the following:

  1. Within Sublime Text, bring up the Command Palette and type install. Among the commands you should see Package Control: Install Package. If that command is not highlighted, use the keyboard or mouse to select it. There will be a pause of a few seconds while Package Control fetches the list of available plugins.

  2. When the plugin list appears, type proselint. Among the entries you should see SublimeLinter-contrib-proselint. If that entry is not highlighted, use the keyboard or mouse to select it.

Settings

For general information on how SublimeLinter works with settings, please see Settings. For information on generic linter settings, please see Linter Settings.

In addition to the standard SublimeLinter settings, SublimeLinter-contrib-proselint provides its own settings through a config file, .proselintrc.

Contributing

If you would like to contribute enhancements or fixes, please do the following:

  1. Fork the main repository, http://github.com/amperser/proselint. This plugin can be found in /plugins/sublime/
  2. Hack on a separate topic branch off the latest master.
  3. Commit to the topic branch and push it.
  4. Create a pull request.
  5. Be patient. ;-)

Please note that modifications should follow these coding guidelines:

  • Indent is 4 spaces.
  • Code should pass flake8 and pep257 linters.
  • Vertical whitespace helps readability; don’t be afraid to use it.
  • Please use descriptive variable names. No abbreviations unless they are well known.

Thank you for helping out!

sublimelinter-contrib-proselint's People

Contributors

agentydragon avatar andrenanninga avatar laraross avatar mpacer avatar qaid avatar suchow 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

sublimelinter-contrib-proselint's Issues

Markdown linting issue

I'm using MarkdownEditing sublime3 plugin and if I select 'Markdown' or 'Multimarkdown' syntax linter not working. Only 'Markdown GFM' syntax trigger the linter.

Could you please activate it for every markdown type?

Does this work with current SublimeLinter?

I get the following errors.

SublimeLinter: ERROR:
=====================

proselint: Defining 'cls.syntax' has no effect anymore. Use http://www.sublimelinter.com/en/stable/linter_settings.html#selector instead.


SublimeLinter: ERROR:
=====================

proselint: Defining 'cls.selectors' has no effect anymore. Use http://www.sublimelinter.com/en/stable/linter_settings.html#selector instead.


SublimeLinter: ERROR:
=====================

proselint disabled. 'selector' is mandatory in 'cls.defaults'.
 See http://www.sublimelinter.com/en/stable/linter_settings.html#selector

adding to 'syntax' ?

I use proselint mainly w/ LaTeX (and LaTeXing syntax). I've just forked/edited the linter.py to add those to the 'syntax' line. Not sure if I should pull-request those to you or if I should be changing/adding those in one of the 10^6 settings files that talk to Sublime Linter.

HTML linting issue

On HTML code <form action="." it displays an issue Use curly quotes which, I believe, would be not correct HTML code.

Not seeing any linting in ST3 / PL 0.7

proselint is installed and available to ST3

SublimeLinter: proselint version query: /Users/flip/anaconda2/bin/proselint --version 
SublimeLinter: proselint version: 0.7.0 
SublimeLinter: proselint: (>= 0.0.0) satisfied by 0.7.0 
SublimeLinter: proselint activated: /Users/flip/anaconda2/bin/proselint

(btw- that >= 0.0.0 sort-of feels wrong)

And I keep seeing invocations of proselint in my console

SublimeLinter: proselint: vv1 Protocol.md ['/Users/flip/anaconda2/bin/proselint'] 

and

SublimeLinter: proselint: <unsaved> ['/Users/flip/anaconda2/bin/proselint'] 

But I'm not seeing any lint results anywhere?
Regressing, invoking this proselint version from the command line leaves me with no output (but a .proselint in my home directory. Perhaps proselints behavior has changed recently?

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.