Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Add specs #121

Merged
merged 1 commit into from
Aug 9, 2017
Merged

Add specs #121

merged 1 commit into from
Aug 9, 2017

Conversation

lucasdf
Copy link
Member

@lucasdf lucasdf commented Aug 5, 2017

Implement specs and add linter.

The specs were based on the specs from linter-flake8. Added coffeelint to the dev dependencies.

Now that the specs are implemented Travis can be enabled for this repository. If it is already enabled then it just a matter of adding the .travis.yml file.

Fix #42

@Arcanemagus
Copy link
Member

Oh wow, this one is still on CoffeeScript? 😞

Looking over this now.

Copy link
Member

@Arcanemagus Arcanemagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks pretty good, a few things not mentioned but that's just because they need to be handled in a rewrite to JS.

@@ -0,0 +1,5 @@
{
"max_line_length": {
"level": "ignore"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally I would say this should be 120 at most, but I plan on re-writing this in JS anyway so this is fine.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I agree. However, this linter has a couple of large lines and I did not want to add the specs and change the code at once. Would it be cool if I send another PR after this one gets merged to fix this?

'use babel';

import { join } from 'path';
import { beforeEach, it } from 'jasmine-fix';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's preemptively stop any accidental bizarreness later and make this:

// eslint-disable-next-line no-unused-vars
import { it, fit, wait, beforeEach, afterEach } from 'jasmine-fix';

For example if you later try to focus a test that is async it will always show as passing when it really fails if you aren't importing the fit from jasmine-fix.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

editor = await atom.workspace.open(badPath);
});

it('finds at least one message', async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 I've been moving specs to just drop this one and check everything in the test after this.

Copy link
Member Author

@lucasdf lucasdf Aug 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, if there isn't at least one message then the next test will fail anyway. done.

Implement specs and add lint.

Fix AtomLinter#42
@lucasdf
Copy link
Member Author

lucasdf commented Aug 9, 2017

@Arcanemagus I am curious, why are you planning to re-write this to JS? I am new to the "atom world", but it seemed to me that Coffee Script had become the standard. Would you say that most packages are moving to JS now or is this a particular decision regarding the linters?

@Arcanemagus
Copy link
Member

Atom core itself is moving to JS, and personally I find the hacks the language does to make itself work and lack of proper tooling surrounding it make CoffeeScript unusable.

@Arcanemagus Arcanemagus merged commit 09a90b7 into AtomLinter:master Aug 9, 2017
@Arcanemagus
Copy link
Member

Thanks!

@lucasdf lucasdf deleted the specs branch August 9, 2017 17:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants