Giter Site home page Giter Site logo

mattbasta / amo-validator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mozilla/amo-validator

14.0 14.0 0.0 12.82 MB

Validator for addons.mozilla.org

License: BSD 3-Clause "New" or "Revised" License

Python 75.54% Shell 0.14% JavaScript 24.27% CSS 0.04%

amo-validator's People

Contributors

almet avatar clouserw avatar cvan avatar eviljeff avatar fox2mike avatar kmaglione avatar kumar303 avatar kwierso avatar mattbasta avatar nmaier avatar rob--w avatar robhudson avatar sancus avatar tymofij avatar wagnerand avatar wraithan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

amo-validator's Issues

Error bundler needs to be better

  • Expose compatibility data via output (and update readme)
  • Unify the name with the module name
  • Break logic out of main module and into helper modules
    • Resource helper
    • Compatibility helper (for_appversions, supports_version, etc.)
    • Subpackage helper (push, pop, etc.)

mozIAsyncFavicons.getFaviconDataForPage gives deprecated warning

nsIFaviconService members removed.
Warning: Several deprecated functions were removed from nsIFaviconService. See https://developer.mozilla.org/docs/XPCOM_Interface_Reference/mozIAsyncFavicons for supported alternatives.
See bug https://bugzilla.mozilla.org/show_bug.cgi?id=838839 for more information.
chrome/content/bookmark.js
221
222
223
.getService(Components.interfaces.mozIAsyncFavicons);
faviconService.getFaviconDataForPage(uri, { onComplete:
function(aURI, aDataLen, aData, aMimeType) {

Allow tier limiter

Add a command line parameter and/or error bundler attribute that limits the tests to a particular tier. This will help to complete bug 596417.

Getting the following error when running `pip install -r requirements.txt`

error: command 'gcc-4.2' failed with exit status 1


Command /usr/bin/python -c "import setuptools;file='/github/amo-validator/build/coverage/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --single-version-externally-managed --record /var/folders/1X/1Xsh0G-AHtKgAUtmvTMG7k+++TI/-Tmp-/pip-TSkBxN-record/install-record.txt failed with error code 1
Exception information:
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/pip-1.0-py2.6.egg/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/Library/Python/2.6/site-packages/pip-1.0-py2.6.egg/pip/commands/install.py", line 228, in run
requirement_set.install(install_options, global_options)
File "/Library/Python/2.6/site-packages/pip-1.0-py2.6.egg/pip/req.py", line 1093, in install
requirement.install(install_options, global_options)
File "/Library/Python/2.6/site-packages/pip-1.0-py2.6.egg/pip/req.py", line 566, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "/Library/Python/2.6/site-packages/pip-1.0-py2.6.egg/pip/init.py", line 255, in call_subprocess
% (command_desc, proc.returncode))
InstallationError: Command /usr/bin/python -c "import setuptools;file='/github/amo-validator/build/coverage/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --single-version-externally-managed --record /var/folders/1X/1Xsh0G-AHtKgAUtmvTMG7k+++TI/-Tmp-/pip-TSkBxN-record/install-record.txt failed with error code 1

MPL-Tri licensing

The current license is not only no MPL license, but also GPL incompatible (advertisement clause).
The thing should be re-licensed under MPL-Tri

JS Arguments

The arguments variable needs to be instantiated as a lazy JSArray in every function expression and declaration.

Universal Debug Mode

A better way of managing debug mode needs to be created.

  • CLI argument or validate() parameter to enable, rather than a hardcoded switch
  • Levels of verbosity
    • Types of output (markup only, JS only, etc.)
    • Ability to fail on exceptions
    • Ability to enter PDB
    • Flow codes, parse codes, both, none
  • Lambda evaluation of debug output to prevent performance issues while not in debug mode

Literal members

At least in the case of JSLiteral(str), a bunch of functions and properties need to be implemented (eventually):

split
replace
substr
substring
length
charAt
charCodeAt
concat
fromCharCode
indexOf
lastIndexOf
match
replace
search
slice
toLowerCase
toUpperCase
valueOf

Also, submembers (chars) need to be implemented for JSLiteral(str):

str[index]

For JSLiteral(int):

MIN_VALUE
MAX_VALUE
NEGATIVE_INFINITY
POSITIVE_INFINITY
toExponential
toFixed
toPrecision
toString
valueOf

And JSLiteral(bool):

toString
valueOf

Move state tests to registration decorator

Tests like the following should be moved to the registration decorator:

  • chrome.manifest presence
  • install.rdf presence
  • detected_type comparison (against specific value or tuple of values)
  • is_subpackage

Dangerous JS objects

The "dangerous" property for predefined entities should allow a string value. This value should allow the output of a custom error message.

L10n Object Caching

When looking through L10n documents for errors, the entities being compared against (i.e.: en-US) should be cached instead of regenerated on each use. Granted, this is how the SILME library worked, but we should still be more efficient than that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.