Commit Graph

18 Commits

Author SHA1 Message Date
David Glasser
82e3edf27f Fix jshint cache 2015-08-11 19:55:55 -07:00
Slava Kim
173bfb7c03 Expose and use wrapped fs/path moduldes in Plugins 2015-07-23 13:10:26 -07:00
David Glasser
772034d176 Change linter API name to processFilesForPackage
Linters run on one package at a time rather than one target at a
time. This is mostly because they need to run outside the context of
apps in various places (eg when you publish the package, though that's
currently unimplemented).
2015-07-14 21:46:21 -07:00
David Glasser
3c98084ee0 improve jshint config handling
reset the cache when the config changes
2015-07-09 16:39:36 -07:00
David Glasser
ea45e6a9f1 Allow plugins to register specific filenames
This is in addition to registering for extensions. Note that only the
new SourceProcessor APIs allow this, not registerSourceHandler.

The filename in question is the basename of the file.  The file can be
found in any directory in any package.  If you want to be more picky,
you can just ignore other ones in your processFilesForTarget.

This introduces the SourceProcessorSet abstraction, which simplifies a
lot of repeated code around matching filenames with processors and
avoiding duplicates.

Missing tests.

See also #3985.
2015-07-08 17:23:31 -07:00
Slava Kim
cecbc51639 Put global imports for linters and minfier mode for minifiers into options 2015-06-27 11:32:46 -07:00
Slava Kim
a92ec5c6bb Remove wipeLinterCache logic 2015-06-26 10:57:29 -07:00
Slava Kim
f254ac0be1 Revert the behavior of printing linting errors only for the changed files 2015-06-25 11:24:06 -07:00
Slava Kim
0072c5b538 implement getArch for LintingFile type
Fixes the overcaching of files for different arches in jshint
2015-06-22 19:49:31 -07:00
Slava Kim
366afe5c9a Fix no-relinting for unchanged files in jshint 2015-06-22 19:23:07 -07:00
Slava Kim
f651ae1707 Don't reprint linting messages for packages or files in packages that didn't
change
2015-06-22 15:25:46 -07:00
Slava Kim
fe9d69a9f7 wip linting packages 2015-06-16 19:51:52 -07:00
Slava Kim
aaa9e606d4 Fix bugs with running linters and passing imports 2015-06-04 01:19:10 -07:00
Slava Kim
ed22b3420a WIP Linting with global imports passed in 2015-06-04 01:19:10 -07:00
Slava Kim
dca05e25fb Fix bugs in the jshint package 2015-06-04 01:19:10 -07:00
Slava Kim
0ba51af564 An attempt in displaying errors from linters
Doesn't work that well yet
2015-06-04 01:19:09 -07:00
Slava Kim
986b7a62ee Run appropriate linters 2015-06-04 01:19:09 -07:00
Slava Kim
e7811a67fa Add a JSHint linter plugin to core
Later should be moved to the non-core folder
2015-06-04 01:19:09 -07:00