Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Misc: do not modify CST in check mode #2252

Merged
merged 1 commit into from
May 18, 2016
Merged

Conversation

markelog
Copy link
Member

  • Slightly changes token-assert API by providing result of the check
    with return values
  • Apply fixes only in fix mode
  • Modify couple rules to adjust to new strategy
  • Make "fixed" property of the Error instance consistent
  • Introduce "fix" property of the Error class
  • Divide fix behaviour on "common" and "specific" actions

Consequently should speed up linting

Fixes #2250

/cc @mdevils

* Slightly changes token-assert API by providing result of the check
with return values

* Apply fixes only in fix mode

* Modify couple rules to adjust to new strategy

* Make "fixed" property of the Error instance consistent

* Introduce "fix" property of the Error class

* Divide fix behaviour on "common" and "specific" actions

Consequently should speed up linting

Fixes jscs-dev#2250
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 96.747% when pulling cbf974c on markelog:2250 into 9eaa1f7 on jscs-dev:master.

@markelog
Copy link
Member Author

Coverage decreased (-0.03%)

I think we can live with that in maintenance mode

@markelog markelog merged commit 3dfeb1b into jscs-dev:master May 18, 2016
markelog added a commit that referenced this pull request May 18, 2016
* Slightly changes token-assert API by providing result of the check
with return values

* Apply fixes only in fix mode

* Modify couple rules to adjust to new strategy

* Make "fixed" property of the Error instance consistent

* Introduce "fix" property of the Error class

* Divide fix behaviour on "common" and "specific" actions

Consequently should speed up linting

Fixes #2244
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

internalError: Error running rule requirePaddingNewLineAfterVariableDeclaration
2 participants