Skip to content

Conversation

@JaKXz
Copy link
Contributor

@JaKXz JaKXz commented Jan 16, 2017

@sergesemashko to get a better handle on the code from #53 I took a stab at [some minor nits &] refactoring and staying green :) let me know if there's anything that concerns you.

Thanks!

JaKXz added 2 commits January 16, 2017 17:44
as opposed to reduce. also use lodash.defaultto for comparing numeric
values to avoid falsy JS bugs
and clean up some assertions and specs
@coveralls
Copy link

coveralls commented Jan 16, 2017

Coverage Status

Coverage decreased (-0.02%) to 98.63% when pulling e7b9ab8 on refactor/lint-dirty-modules-only into 7e60e9b on master.

@coveralls
Copy link

coveralls commented Jan 16, 2017

Coverage Status

Coverage increased (+0.02%) to 98.667% when pulling 7aa018c on refactor/lint-dirty-modules-only into 7e60e9b on master.

@sergesemashko
Copy link
Contributor

looks good to me 👍

@JaKXz
Copy link
Contributor Author

JaKXz commented Jan 16, 2017

Are there any other test cases you can think of?

@sergesemashko
Copy link
Contributor

actually, can't think of anything else. all cases that I'm aware of are covered

@coveralls
Copy link

coveralls commented Jan 16, 2017

Coverage Status

Coverage increased (+0.02%) to 98.667% when pulling b3b3223 on refactor/lint-dirty-modules-only into 7e60e9b on master.

to enable the recursive flag in mocha.
@sergesemashko
Copy link
Contributor

@JaKXz, all works fine on my local with and without lintDirtyModulesOnly flag.

The unrelated thing, I'm seeing that messages are duplicated when quiet flag is set to false - http://take.ms/GQb4g.
I think, this line is the reason

@coveralls
Copy link

coveralls commented Jan 17, 2017

Coverage Status

Coverage increased (+0.02%) to 98.667% when pulling ab31c52 on refactor/lint-dirty-modules-only into 7e60e9b on master.

@coveralls
Copy link

coveralls commented Jan 17, 2017

Coverage Status

Coverage increased (+0.02%) to 98.667% when pulling 51213ee on refactor/lint-dirty-modules-only into 7e60e9b on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 98.667% when pulling 89c0b3d on refactor/lint-dirty-modules-only into 7e60e9b on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 98.667% when pulling 89c0b3d on refactor/lint-dirty-modules-only into 7e60e9b on master.

@JaKXz JaKXz merged commit e2f33b8 into master Jan 17, 2017
@JaKXz JaKXz deleted the refactor/lint-dirty-modules-only branch January 17, 2017 02:16
@JaKXz
Copy link
Contributor Author

JaKXz commented Jan 17, 2017

@sergesemashko would you mind making a new issue for that? I think I have a fix, I'll make a PR in the next few minutes.

joshwiens pushed a commit that referenced this pull request Mar 31, 2018
* refactor: use filter on filetimestamps' keys

as opposed to reduce. also use lodash.defaultto for comparing numeric
values to avoid falsy JS bugs

* refactor: use Arrange Act Assert model for tests

and clean up some assertions and specs

* refactor: pulls out defaultFilesGlob constant

* refactor: clean up typos

* refactor: use .test.js file suffix

to enable the recursive flag in mocha.

* refactor: better names for all fixtures

* tests: add coverage for without plugin config

* tests: update NoErrorsPlugin tests

Verify that existing behaviour works as expected

* refactor: minor test tweaks

* tests: correct test of empty plugin config

* tests: remove extra context from lint dirty modules plugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants