csscomb.js icon indicating copy to clipboard operation
csscomb.js copied to clipboard

Add detect() method for the tab-size.js

Open drugan opened this issue 7 years ago • 3 comments

To reproduce:

Put mystyle.css into the project root directory. mystyle.css.txt

Run: csscomb -d mystyle.css

Observe: no-tab-size

Apply the current PR changes, run the command again and observe: tab-size-detected

drugan avatar May 17 '17 09:05 drugan

Hey @drugan, builds for your detect PRs seem to be failing. Could you please take a look?

tonyganch avatar Jun 01 '17 10:06 tonyganch

The culprit was in test/options/integral/detect/test.js. This file uses the default csscomb.json to check options' values against but it does not have tab-size option though with the current patch the respective value is detected.

Also, the logic for detect() in the tab-size.js is improved (hopefully).

drugan avatar Jun 02 '17 16:06 drugan

Hi! Me again again :smile:

Would you can refresh this too?

mariovalney avatar Mar 27 '19 14:03 mariovalney