GithubHelp home page GithubHelp logo

idok / coffee-lint-plugin Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 3.0 652 KB

Intellij coffee lint plugin

Home Page: http://plugins.jetbrains.com/plugin/7723

License: MIT License

HTML 0.17% Java 99.61% CoffeeScript 0.22%

coffee-lint-plugin's People

Stargazers

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

Watchers

 avatar  avatar  avatar

coffee-lint-plugin's Issues

does not work properly for idea 15

gives following

3:30:13 PM CoffeeLint plugin: 
undefined:3
_ = require("underscore")
^
SyntaxError: Unexpected token _
  at Object.parse (native)
  at readConfigFile (/usr/local/lib/node_modules/coffeelint/lib/commandline.js:118:17)
  at loadConfig (/usr/local/lib/node_modules/coffeelint/lib/commandline.js:126:18)
  at Object. (/usr/local/lib/node_modules/coffeelint/lib/commandline.js:228:14)
  at Object. (/usr/local/lib/node_modules/coffeelint/lib/commandline.js:254:4)
  at Module._compile (module.js:456:26)
  at Object.Module._extensions..js (module.js:474:10)
  at Module.load (module.js:356:32)
  at Function.Module._load (module.js:312:12)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Object. (/usr/local/lib/node_modules/coffeelint/bin/coffeelint:34:5)
  at Module._compile (module.js:456:26)
  at Object.Module._extensions..js (module.js:474:10)
  at Module.load (module.js:356:32)
  at Function.Module._load (module.js:312:12)
  at Function.Module.runMain (module.js:4... (show balloon)
3:30:13 PM StreamException:  : input contained no data

Settings:

Node interpreter=/usr/local/bin/node
Path to coffeelint bin = /usr/local/bin/coffeelint
Coffeelint config file = blah/blah/blah/Gruntfile.coffee

Coffeelint settings are as following in the Gruntfile.coffee

 coffeelint:
      app: ["<%= yeoman.app %>/src/{,**/}*.coffee"]
      options:
        "max_line_length":
          "level": "ignore"
          "value": 120
        "no_trailing_semicolons":
          "level": "error"
        "no_trailing_whitespace":
          "level": "error"
          "allowed_in_comments": false
          "allowed_in_empty_lines": true
        "camel_case_classes":
          "level": "error"
        "coffeescript_error":
          "level": "error"
        "spacing":
          "left": 0
          "right": 1
        "cyclomatic_complexity":
          "level": "ignore"
          "value": 10

Intellij 15.0.5

What could be wrong do u think?

Doesn't seem to work with RubyMine7.0.4

Update:
RubyMine version 7.1.4
It appears that the coffeelint plugin works within certain directories but not all.
For example, the plugin will work great within my repoName/spec/javascripts test directory. However, it appears the plugin will not work within the Rails asset pipeline when working on javascript files within the repoName/app/assets/javascripts directory.
I can't tell if this is an issue with the coffeelint plugin, RubyMine editor or the Rails asset pipeline.
Any help would be greatly appreciated.

Windows: How to find node interpreter?

Hi there,

I am trying Webstorm for my Meteor development with coffeescript.
I have installed this plugin and, using the instructions, set up the path to the coffeelint file.

I have nodejs installed (using it all the time, so it's definitely in my path etc).

However, the instructions say nothing about what the node "interpreter" is supposed to be and where to find it.

What am I expected to put into this path?

Many thanks.

Meteor restarts due to temporary files

Windows 7, WebStorm 10.

  1. Create meteor project. Enable coffeelint plugin. Add coffeescript package. Run meteor.
  2. Edit any coffeescript file (autosave disabled).
  3. coffee-lint-plugin creates the file "filename_scsslint_tmp9013504531595693637.coffee"
  4. Meteor detects this file and restarts.

Meteor should be restarted only after the files are saved. Could you create temporary files in the system temporary folder? Or rename their extension to .tmp?

Argument for @NotNull parameter 'path' of com/coffeelint/cli/CoffeeLintRunner.buildSettings must not be null

The following error appears when the plugin is executed:

10:31:22 CoffeeLint plugin: Error running CoffeeLint inspection: Argument for @NotNull parameter 'path' of com/coffeelint/cli/CoffeeLintRunner.buildSettings must not be null
10:31:22 IllegalArgumentException: Error running CoffeeLint inspection: Argument for @NotNull parameter 'path' of com/coffeelint/cli/CoffeeLintRunner.buildSettings must not be null

My config:

Node: C:\Program Files\nodejs\node.exe
Path to coffeelint bin: C:\Users\rodolfo\AppData\Roaming\npm\coffeelint.cmd

Windows 8.1
WebStorm 10.0.3
Coffeelint 1.9.7

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.