SublimeLinter | The code linting framework for Sublime Text | Code Analyzer library

 by   SublimeLinter Python Version: 4.21.0 License: MIT

kandi X-RAY | SublimeLinter Summary

kandi X-RAY | SublimeLinter Summary

SublimeLinter is a Python library typically used in Code Quality, Code Analyzer applications. SublimeLinter has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. However SublimeLinter build file is not available. You can download it from GitHub.

The code linting framework for Sublime Text
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              SublimeLinter has a medium active ecosystem.
              It has 1971 star(s) with 277 fork(s). There are 56 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 23 open issues and 1236 have been closed. On average issues are closed in 118 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of SublimeLinter is 4.21.0

            kandi-Quality Quality

              SublimeLinter has 0 bugs and 0 code smells.

            kandi-Security Security

              SublimeLinter has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              SublimeLinter code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              SublimeLinter is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              SublimeLinter releases are available to install and integrate.
              SublimeLinter has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions are available. Examples and code snippets are not available.
              SublimeLinter saves you 2438 person hours of effort in developing the same functionality from scratch.
              It has 5405 lines of code, 466 functions and 31 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed SublimeLinter and discovered the below as its top functions. This is intended to give you an instant insight into SublimeLinter implemented functionality, and help decide if they suit your requirements.
            • Validate project settings file
            • Print a deprecation warning message
            • Format the record
            • Show a message
            • Find the path to the runtime executable
            • Gets the path
            • Try to find the given command
            • Determine which executable should be used
            • Looks for the executable in the virtual environments
            • Called when a window is clicked
            • Runs the message
            • Try to find the executable path for this plugin
            • Called when a view is closed
            • Decorator for ignore rules
            • Emit a message
            • Open tooltip on hover zone
            • Run the window
            • Run the given command
            • Called when a new view is activated
            • Run a quick action
            • Try to find the executable for the given cmd
            • Gathers a list of filenames and update the results
            • Redraw a file
            • Run linter
            • Called when the plugin is loaded
            • Check if a view is linterable
            Get all kandi verified functions for this library.

            SublimeLinter Key Features

            No Key Features are available at this moment for SublimeLinter.

            SublimeLinter Examples and Code Snippets

            SublimeLinter-inline-errors,Settings
            Pythondot img1Lines of Code : 92dot img1License : Permissive (MIT)
            copy iconCopy
            {
              // Show warning hints
              "show_warnings": true,
            
              // Show error hints
              "show_errors": true,
            
              // Show summary on top of the view
              "show_summary": true,
            
              // Hint font size
              "font_size": "0.9rem",
            
              // If true, shows hint inline, otherwise b  
            Theme Developers
            Pythondot img2Lines of Code : 38dot img2License : Permissive (MIT)
            copy iconCopy
            {
                // skin
                "Boxy Tomorrow (Green)": {
                    // Packages/User/Preferences.sublime-settings
                    "Preferences": {
                        "color_scheme": "Packages/Boxy Theme/schemes/Boxy Tomorrow.tmTheme",
                        "theme": "Boxy Tomorrow.sublime-t  
            SublimeLinter-gcc,Settings
            Pythondot img3Lines of Code : 27dot img3License : Permissive (MIT)
            copy iconCopy
            {
                "linters":
                {
                    "gcc": {
                        "disable": false,
                        "executable": ["gcc"],
                        "args": ["-fsyntax-only", "-std=c90"],
                        "I": [
                            "${file_path}/include",
                            "${folder}/include"  

            Community Discussions

            QUESTION

            Parsing error: The keyword 'import' is reserved
            Asked 2022-Mar-12 at 16:11

            In Visual Studio Code I get Parsing error: The keyword 'import' is reserved. 1

            What actions would you recommend to remedy this error?

            I provide my .eslintrc.json and package.json files below.
            However, they will likely not be sufficient to reproduce the error.
            So here is a link to a zip file containing all the necessary project files. 2

            The project is (locally) installed by running npm install – this may take about 5-9 minutes.
            Then npm start should open the project in the default web browser. 3

            When I do this and hit F12, I get no errors but two warnings in the console of the browser.
            The warnings are:

            • 'unUsedArgument' is defined but never used. Allowed unused args must match /^_/u no-unused-vars, and

            • 'unUsedVariable' is assigned a value but never used. Allowed unused vars must match /^_/u no-unused-vars.

            The error in the title, Parsing error: The keyword 'import' is reserved, shows up when I open App.js in VS Code.

            But this error has nothing to do with my choice of text editor,
            which is easy to confirm by running ESLint from the command line.
            Use the first line if you are on Microsoft Windows (backslashes).
            Use the second line if you are on any other operating system (forward slashes).

            ...

            ANSWER

            Answered 2022-Mar-12 at 16:11
            0. Prerequisites

            If the server is running, close it by hitting Ctrl+C.

            I strongly recommend uninstalling any global installations of ESLint.
            To see what global packages are installed, in the command line run: 1

            Source https://stackoverflow.com/questions/71352590

            QUESTION

            Sublime Text 4 - How To Setup LSP-eslint
            Asked 2021-Jul-19 at 13:48

            When using Sublime text 3 I had SublimeLinter with SublimeLinter-eslint packages, along with eslint & babel-eslint global node modules for JS & JSX syntax.

            With the switch to Sublime 4 I decided to give LSP a try. I Installed it, also LSP-css (which ran fine out of the box) & LSP-eslint, which couldn't get to work.

            If I check Sublime's status bar I see the language server apparently running (?)

            This is within a project with it's own eslintrc.js config file, which works out of the box in VScode. Part of it below:

            ...

            ANSWER

            Answered 2021-Jul-19 at 13:48

            Installing LSP-typescript did the trick, works out of the box, lsp-eslint not even needed. Unreal.

            Found the info here after days of research (thanks chrsap!).

            If you are running ST3, check LSP-typescript's readme for needed packages.

            Source https://stackoverflow.com/questions/68425838

            QUESTION

            Python code complexity as Sublime Text 3 Linter
            Asked 2021-Jun-25 at 15:26

            I like the python package radon and use it fairly often to help find/reduce complex code.

            I'm normally developing in Sublime Text, and running radon beside in console, but would really like to have radon (or something similar) in sublime that will flag my function w/ a complexity that gives me any ranking less than "A"..kinda like pylint does when my code is junk.

            I looked around for a SublimeLinter plugin that would check code complexity as you are typing out function etc. Has anyone seen a SublimeLinter plugin like that?

            Thanks!

            ...

            ANSWER

            Answered 2021-Jun-25 at 15:26

            QUESTION

            Ignore flake8 warning in SublimeLinter
            Asked 2021-Feb-20 at 03:58

            I have installed SublimeLinter-flake8. I would like to exclude the W191 warning when I am using SublimeLinter with flake8. I have checked the SublimeLinter docs and tried adding "--ignore W191" to my user settings file and reloaded plugins but I still get warned about the usage of tabs.

            The following is my Packages/User/SublimeLinter.sublime-settings file.

            ...

            ANSWER

            Answered 2021-Feb-20 at 03:58

            The linter_name has to be the specific plugin you're looking to configure (in this case flake8) -- try this:

            Source https://stackoverflow.com/questions/66287672

            QUESTION

            Can I delay Pylint on a second running it on save in Sublime Text 3?
            Asked 2020-Nov-25 at 17:38

            I'm using Pylint with Sublime Text 3 on Windows 8.1. It is configured to run on save with Ctrl+S:

            ...

            ANSWER

            Answered 2020-Nov-25 at 17:38

            You could write a plugin that inherits the ViewEventListener class and implement the on_post_save_async() callback method to sleep for a second (is that really enough, will it always be enough!?) and then use self.view.run_command() to launch Pylint. Ensure run_on_save is false if you do so. Here's the relevant bit of the API.

            BUT doing that is NOT a good idea — you're asking for further problems with the output panels, error messages, and Sublime crashes.

            I suggest you take full control of manually launching the linter. Set the Pylint run_on_save setting to false. Assign convenient keys to launch the linter when you want it and get out of the habit of running it automatically every time you save a file. Linters are like spell checkers, it is much more efficient to run them from time to time and make all the necessary changes in one go, rather than having the linter run over and over again, repeatedly validating the same code, just to check the most recent few lines.

            If you try and write larger and larger amounts of code without building or linting then in time the accuracy and speed of your coding will improve.

            Source https://stackoverflow.com/questions/64960370

            QUESTION

            How can I fix this issue with SublimeLinter?
            Asked 2020-May-11 at 10:44

            I hope it is ok to ask this even though it is not specifically a programming question. I installed the SublimeLinter and SublimeLinter-flake8 packages in Sublime Text 3. I did pip install flake8 and restarted but the console shows the following message:

            SublimeLinter: WARNING: cannot locate 'flake8'. Fill in the 'python' or 'executable' setting. WARNING:SublimeLinter.lint.base_linter.python_linter:cannot locate 'flake8'.Fill in the 'python' or 'executable' setting

            I suspect it may have to do with setting a path in the user settings, but I am not sure how to go about it. As you may see I am a relative newbie. Thanks.

            ...

            ANSWER

            Answered 2020-May-11 at 10:44

            Please ensure you've followed these steps:

            1. Install SublimeText packages (help)

              • SublimeLinter
              • SublimeLinter-flake8
            2. Install Flake8 (use pip, or pip3 if you have multiple python versions)

              • pip3 install flake8
            3. Configure flake8 settings
              1. Open Sublime Text
              2. Sublime Text -> Preferences -> Package Settings -> Sublime Linter -> Settings
              3. Set the path to the desired python version:

            Notice: Custom settings needs to be on the right(user) side!

            Source https://stackoverflow.com/questions/61689149

            QUESTION

            Linting customization in Anaconda Package Sublime
            Asked 2020-Feb-27 at 20:16

            I am using the Anaconda package for Sublime 3, and it works perfectly. My only problem is that linting highlights all kind of errors, warnings and PEP8 recommendations in the same color, white. I would like to change it so errors are red, warnings are yellow etc... But I can't figure out how to do that. I found this resource that basically tells me to add some XML code to my current theme to change the linting color, but I tried doing that, and it did nothing.

            First of all I believe now themes are using json and not XML anymore, in filenames of the type ".sublime-color-scheme" or ".sublime-theme". Thus I found a custom theme that indeed had a ".tmtheme" file, and pasted the XML code given here, but linting was still completely white.

            Then I tried translating this XML code into json, and pasting it into the ".sublime-color-scheme" file, but then again, linting was white. To be precise, I pasted it in the "rules" :[] entry, since that seemed to fit the format.

            Anybody with more experience could tell me what I'm doing wrong, or point me to another way of changing linting color ? I am aware of package such as SublimeLinter, but I'd rather stick with the built-in linter of the Anaconda package since its working perfectly beside the coloring.

            ...

            ANSWER

            Answered 2020-Feb-27 at 20:16

            As you've noted, there are two different types of color schemes in Sublime Text:

            1. The tmTheme format, which is an XML plist file. This format is still supported, but is considered to be a legacy file format at this point.

            2. The sublime-color-scheme format, which is a JSON file. This format can do everything that the tmTheme format can do, and has extra capabilities that tmTheme files don't.

            NOTE: Despite the name, tmTheme files are color schemes, not Themes. The format is unfortunately named, but in Sublime Text a Theme is an entirely different thing that styles the application look as a whole.

            This distinction isn't particularly important here, but it can catch you unaware if you go searching for information because you sometimes end up finding information that doesn't seem to apply to anything.

            It's hard to say exactly what you might have done wrong since you didn't include the content that you tried adding to the files. Generally I would expect that anything you added in there would either work or cause an error of some sort (either a popup or in the Sublime console), barring any configuration issues with the package itself.

            As an added note, I don't use this package (or linters in general), so for test purposes the Anaconda settings I tested with are stock except for the following two settings:

            Source https://stackoverflow.com/questions/60397387

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install SublimeLinter

            Install SublimeLinter and linters via [Package Control](https://packagecontrol.io/search/SublimeLinter).

            Support

            Please use the [debug mode](http://www.sublimelinter.com/en/stable/troubleshooting.html#debug-mode) and include all console output, and your settings in your [bug report](https://github.com/SublimeLinter/SublimeLinter/issues/new). If your issue is specific to a particular linter, please report it on that linter’s repository instead.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/SublimeLinter/SublimeLinter.git

          • CLI

            gh repo clone SublimeLinter/SublimeLinter

          • sshUrl

            git@github.com:SublimeLinter/SublimeLinter.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Code Analyzer Libraries

            javascript

            by airbnb

            standard

            by standard

            eslint

            by eslint

            tools

            by rome

            mypy

            by python

            Try Top Libraries by SublimeLinter

            SublimeLinter-eslint

            by SublimeLinterPython

            SublimeLinter-jshint

            by SublimeLinterPython

            SublimeLinter-php

            by SublimeLinterPython

            SublimeLinter-jscs

            by SublimeLinterPython

            SublimeLinter-shellcheck

            by SublimeLinterPython