Skip to content

More syntax tests #1419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Feb 28, 2017
Merged

More syntax tests #1419

merged 8 commits into from
Feb 28, 2017

Conversation

etpinard
Copy link
Contributor

This PR:

  • makes the 'file name must be in lower case' syntax test run on (almost) all files
  • add a new check that there's a \n at end of file for JSON and .glsl files
  • update files that weren't adhering to these rules

- except some .md files and mathjax dist/extras/
- run it on .json image test mocks and .glsl files
- no need it to run it on .js files as eslint
  already takes care of that.
path.join(constants.pathToRoot, 'test', 'image', 'mocks', '*')
]);

var regex = /\r?\n$/;
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we want to make sure they end in exactly one newline, no more?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah. Good call. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done in f13091c

@alexcjohnson
Copy link
Collaborator

Thanks, 💃

Not sure what GH thinks changed in 9f1c6c4#diff-ebde94117620b050ec349c85b9a200ea but anyway it all looks good.

@etpinard
Copy link
Contributor Author

GH thinks changed in 9f1c6c4#diff-ebde94117620b050ec349c85b9a200ea but anyway it all looks good.

I think that's because my vim changed the DOS EOL to a UNIX EOL on save.

@etpinard etpinard merged commit 5627584 into master Feb 28, 2017
@etpinard etpinard deleted the more-syntax-tests branch February 28, 2017 15:16
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.

2 participants