Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CodeMirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Moritz Aurel Pascal Schubotz
CodeMirror
Commits
d8a762c4
Commit
d8a762c4
authored
11 years ago
by
Marijn Haverbeke
Browse files
Options
Downloads
Patches
Plain Diff
Add a bin/lint for easy running of the linter
parent
2700c8cd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CONTRIBUTING.md
+5
-3
5 additions, 3 deletions
CONTRIBUTING.md
bin/lint
+11
-0
11 additions, 0 deletions
bin/lint
with
16 additions
and
3 deletions
CONTRIBUTING.md
+
5
−
3
View file @
d8a762c4
...
...
@@ -56,6 +56,8 @@ should be asked on the
test suite under
`mode/XXX/test.js`
. Feel free to add new test
suites to modes that don't have one yet (be sure to link the new
tests into
`test/index.html`
).
-
Follow the general code style of the rest of the project (see
below). Run
`bin/lint`
to verify that the linter is happy.
-
Make sure all tests pass. Visit
`test/index.html`
in your browser to
run them.
-
Submit a pull request
...
...
@@ -65,6 +67,6 @@ should be asked on the
-
2 spaces per indentation level, no tabs.
-
Include semicolons after statements.
-
Note that the linter (
`
test/l
in
t
/lint
.js
`
) which is run after each
commit
complains about unused variables and functions. Prefix their
names
with an underscore to muffle it.
-
Note that the linter (
`
b
in/lint`
) which is run after each
commit
complains about unused variables and functions. Prefix their
names
with an underscore to muffle it.
This diff is collapsed.
Click to expand it.
bin/lint
0 → 100755
+
11
−
0
View file @
d8a762c4
#!/usr/bin/env node
var
lint
=
require
(
"
../test/lint/lint
"
);
process
.
chdir
(
__dirname
.
slice
(
0
,
__dirname
.
lastIndexOf
(
"
/
"
)));
lint
.
checkDir
(
"
mode
"
);
lint
.
checkDir
(
"
lib
"
);
lint
.
checkDir
(
"
addon
"
);
process
.
exit
(
lint
.
success
()
?
0
:
1
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment