ricardofbarros / semistandard-format

converts your code into SemiStandard JavaScript Format
28 stars 4 forks source link

Indentation error not corrected #15

Open opngrumd opened 8 years ago

opngrumd commented 8 years ago

Trying to format a file with invalid format,

semistandard -F index.js

, i get this output:

index.js:6:13: Expected indentation of 10 space characters but found 12.

However, the file does not get formatted even if the error is detected.

Example file, index.js:

module.exports = function (opt) {
  return {
    start: function () {
      var connection = {
        ssl: opt.ssl || {
            enabeled: false
        }
      };
      console.log(connection);
    }
  };
};
fabiosantoscode commented 8 years ago

This error also affects standard-format. Because this project is a fork of standard-format, you may want to direct your issue there.