Giter Club home page Giter Club logo

grunt-trimtrailingspaces's People

Contributors

antonionoca avatar bitdeli-chef avatar croizier avatar dependabot[bot] avatar greenkeeperio-bot avatar jtfairbank avatar paazmaya avatar rbrcurtis avatar renovate-bot avatar rvalitov avatar shinnn avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

grunt-trimtrailingspaces's Issues

Doesn't work with paths starting with "#"

When path for the src option starts with the "#" sign, I'm getting the following error:
Warning: Unable to read "undefined" file (Error code: ENOENT)
Here's my path: src: ['#work/db/**/*.sql']
My Grunt's version is v0.4.5.
Is this an issue with Grunt?

Error: to: wrong arguments

I'm running your grunt task with the following options:

 trimtrailingspaces: {
    extensions: ['js', 'css', 'html'],
    directories: ['.', 'Html5Controls/ControlSamples/Release'],
    encoding: 'utf8'
}

When the task runs i get...

Running "trimtrailingspaces" task
to: wrong arguments

The task does seem to function correctly but I'm wondering why i get this error?

Can it be configured to specific files?

Add issue template

Include things like Node.js version, npm version, Grunt version, OS, ...

Grunt 1.5.x doesn't satisfy what grunt-trimtrailingspaces require

Expected behaviour

Package should support latest grunt version 1.5.x

Actual behaviour

grunt version 1.5.3, which doesn't satisfy what grunt-trimtrailingspaces requests

Versions and environment

  • Operating system: MacOs
  • Node.js: 16.14.2
  • npm: 8.5.0
  • Grunt.js:
  • grunt-trimtrailingspaces: latest

Thank you and have some ๐Ÿ•.

Optionally Fail the Task if Whitespace is Removed

I was trying to use the githooks grunt plugin to run tests and the trimtrailingspaces plugin in the pre-commit hook. It works great, except that trimtrailingspaces passes even if it finds whitespace to trim. This means I have a bunch of files with nothing but whitespace removed from them marked as modified after the commit (which goes through).

It'd be really nice to have setting that tells this plugin to fail the task if whitespace was removed (after all files are processed), so that I have a chance to add the files into the commit and try again.

I'm actually going to code this up real quick, so look for the pull request soon. ;)

Provide a Way to Exclude Files

This is very useful for including my whole app, except the libraries / js 'binaries' I use. Something similar to how grunt-contrib-jshint does it:

      ...
      files: ['Gruntfile.js', 'app/**/*.js'],
      options: {
        ignores: ['app/lib/**/*.js'],
      }
      ...

I can try and add this in the next few weeks if you want.

Can't install with Grunt 1.2.1

Hi! I'm using Grunt 1.2.1, but I can't install your package, because you hard-coded to use Grunt ~1.1 only. It would be great if you will not put such strict limitations. Thank you!

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.