nit.git
6 years agogtksourceview: Rewrite the language definition
Jean-Christophe Beaupré [Mon, 26 Jun 2017 18:42:21 +0000 (14:42 -0400)]
gtksourceview: Rewrite the language definition

The new definition includes:
* A more accurate and up-to-date grammar
* A more accurate style list
* A list of built-in annotations
* Heuristics for embedded languages
* Spell-checking only enabled for comments
* Styles for operators and lower-case identifiers available if needed
  (but not highlighted by default)

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agoexamples: Add a test case for syntax highlighters
Jean-Christophe Beaupré [Wed, 28 Jun 2017 18:20:56 +0000 (14:20 -0400)]
examples: Add a test case for syntax highlighters

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agoMerge: Clean benches
Jean Privat [Mon, 19 Jun 2017 20:23:40 +0000 (16:23 -0400)]
Merge: Clean benches

Some cleanup in the benchmark/ directory to remove the yellow dots in http://gresil.org/jenkins/job/nit_bench/

Pull-Request: #2505

6 years agoMerge: frontend: introduce `parse_annotations` phase
Jean Privat [Mon, 19 Jun 2017 20:23:39 +0000 (16:23 -0400)]
Merge: frontend: introduce `parse_annotations` phase

A simple annotations access framework.

Useful when you only need to know if a module, class or property definition contains an annotation in its source code and you don't have a modelbuilder.

One the phase is applied one can access the annotations through the related MEntity:
~~~nit
fun is_annotated_with_foo(mentity: AnnotatedMEntity): Bool do
    return mentity.has_annotation("foo")
end
~~~

I introduced a specific super class to avoid the introduction of `annotations` directly into the MEntity since the concept of annnotations is weird when talking about a MClass or a MType.

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

Pull-Request: #2504

6 years agoMerge: neo4j: Prevent accidental code injections in the tests
Jean Privat [Mon, 19 Jun 2017 20:23:26 +0000 (16:23 -0400)]
Merge: neo4j: Prevent accidental code injections in the tests

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

Pull-Request: #2503

6 years agobench/engines: add a sanitary check to just run the various benched programs
Jean Privat [Mon, 19 Jun 2017 20:03:17 +0000 (16:03 -0400)]
bench/engines: add a sanitary check to just run the various benched programs

Signed-off-by: Jean Privat <jean@pryen.org>

6 years agobench/engines: remove `jwrapper` output directory
Jean Privat [Mon, 19 Jun 2017 19:59:16 +0000 (15:59 -0400)]
bench/engines: remove `jwrapper` output directory

Signed-off-by: Jean Privat <jean@pryen.org>

6 years agobench/markdown: disable pandoc
Jean Privat [Mon, 19 Jun 2017 19:41:50 +0000 (15:41 -0400)]
bench/markdown: disable pandoc

Signed-off-by: Jean Privat <jean@pryen.org>

6 years agobench/string: check force run on fast instances
Jean Privat [Mon, 19 Jun 2017 19:19:52 +0000 (15:19 -0400)]
bench/string: check force run on fast instances

Signed-off-by: Jean Privat <jean@pryen.org>

6 years agobench/string: fix typo in shell script
Jean Privat [Mon, 19 Jun 2017 19:19:25 +0000 (15:19 -0400)]
bench/string: fix typo in shell script

Signed-off-by: Jean Privat <jean@pryen.org>

6 years agofrontend: introduce `parse_annotations` phase
Alexandre Terrasa [Mon, 19 Jun 2017 17:03:04 +0000 (13:03 -0400)]
frontend: introduce `parse_annotations` phase

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agoneo4j: Prevent accidental code injections in the tests
Jean-Christophe Beaupré [Sat, 17 Jun 2017 04:50:22 +0000 (00:50 -0400)]
neo4j: Prevent accidental code injections in the tests

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agoneo4j: Fix the example for `CypherQuery::set`
Jean-Christophe Beaupré [Sat, 17 Jun 2017 04:45:50 +0000 (00:45 -0400)]
neo4j: Fix the example for `CypherQuery::set`

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agoMerge: Use prefixed chars instead of raw values
Jean Privat [Sat, 17 Jun 2017 00:25:19 +0000 (20:25 -0400)]
Merge: Use prefixed chars instead of raw values

The title says everything, basically all uses of `0xXXu8` in `core::text::flat` were replaced by their prefixed versions for better readability.

This PR will however need c_src to be regenerated for integration.

I PR this now however to make sure it is not forgotten when a c_src is later regenerated and for review purposes.

Pull-Request: #2059
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Jean-Christophe Beaupré <jcbrinfo.public@gmail.com>

6 years agoMerge: subset: Add grammar and kind
Jean Privat [Sat, 17 Jun 2017 00:24:44 +0000 (20:24 -0400)]
Merge: subset: Add grammar and kind

Implement the syntactic, inheritance and instantiation rules.

Obsoletes: #2469

Pull-Request: #2483
Reviewed-by: Jean Privat <jean@pryen.org>

6 years agoMerge: gamnit: customize writing with BMFont
Jean Privat [Sat, 17 Jun 2017 00:24:33 +0000 (20:24 -0400)]
Merge: gamnit: customize writing with BMFont

Add format services to `TestSprites` implemented (only) by `BMFont`: `align, valign, wrap, max_width` and `max_height`. You can see the result in the screenshot of the new showcase/test program:

![screenshot from 2017-06-15 15 53 28](https://user-images.githubusercontent.com/208057/27199185-1b9a36dc-51e3-11e7-9700-8dde5724e98a.png)

Pull-Request: #2499
Reviewed-by: Jean Privat <jean@pryen.org>

6 years agogamnit: add an example to showcase fonts support
Alexis Laferrière [Tue, 13 Jun 2017 14:36:02 +0000 (10:36 -0400)]
gamnit: add an example to showcase fonts support

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

6 years agogamnit: implement new `TextSprites` settings in `BMFont`
Alexis Laferrière [Wed, 14 Jun 2017 13:35:16 +0000 (09:35 -0400)]
gamnit: implement new `TextSprites` settings in `BMFont`

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

6 years agogamnit: add customization settings to `TextSprites`
Alexis Laferrière [Tue, 13 Jun 2017 14:34:58 +0000 (10:34 -0400)]
gamnit: add customization settings to `TextSprites`

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

6 years agogamnit: fix actually using the attribute partial_line_skip
Alexis Laferrière [Tue, 13 Jun 2017 11:50:59 +0000 (07:50 -0400)]
gamnit: fix actually using the attribute partial_line_skip

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

6 years agogamnit: accept float values in `BMFont`
Alexis Laferrière [Mon, 12 Jun 2017 20:26:40 +0000 (16:26 -0400)]
gamnit: accept float values in `BMFont`

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

6 years agoMerge: oot: add 2 random projects found on the Internet.
Jean Privat [Fri, 16 Jun 2017 18:56:43 +0000 (14:56 -0400)]
Merge: oot: add 2 random projects found on the Internet.

They seems to be free software, so I think it is ok to include them...

Pull-Request: #2484
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

6 years agoMerge: neo4j: Add a fluent interface to set queries’ parameters
Jean Privat [Fri, 16 Jun 2017 18:56:41 +0000 (14:56 -0400)]
Merge: neo4j: Add a fluent interface to set queries’ parameters

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

Pull-Request: #2498

6 years agoMerge: modelize_property: Add a variable to shorten some code
Jean Privat [Fri, 16 Jun 2017 18:56:04 +0000 (14:56 -0400)]
Merge: modelize_property: Add a variable to shorten some code

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

Pull-Request: #2492

6 years agoMerge: docker: don't let `strip` fails the build because nit-makepackage is not a...
Jean Privat [Fri, 16 Jun 2017 18:56:03 +0000 (14:56 -0400)]
Merge: docker: don't let `strip` fails the build because nit-makepackage is not a binary

Pull-Request: #2502
Reviewed-by: Jean-Christophe Beaupré <jcbrinfo.public@gmail.com>

6 years agooot: update force-change the repo url
Jean Privat [Fri, 16 Jun 2017 18:42:59 +0000 (14:42 -0400)]
oot: update force-change the repo url

Signed-off-by: Jean Privat <jean@pryen.org>

6 years agooot: add 2 random projects found on the Internet.
Jean Privat [Fri, 9 Jun 2017 14:07:01 +0000 (10:07 -0400)]
oot: add 2 random projects found on the Internet.

Signed-off-by: Jean Privat <jean@pryen.org>

6 years agodocker: don't let `strip` fails the build because nit-makepackage is not a binary
Jean Privat [Fri, 16 Jun 2017 13:01:10 +0000 (09:01 -0400)]
docker: don't let `strip` fails the build because nit-makepackage is not a binary

Signed-off-by: Jean Privat <jean@pryen.org>

6 years agoMerge: Attempt to fix the tests neo4j
Jean Privat [Thu, 15 Jun 2017 19:46:37 +0000 (15:46 -0400)]
Merge: Attempt to fix the tests neo4j

The issue was related to a non-cleaned DB, so we try to force-clean.

Pull-Request: #2496
Reviewed-by: Jean-Christophe Beaupré <jcbrinfo.public@gmail.com>

6 years agoMerge: nitc: use ccache again
Jean Privat [Thu, 15 Jun 2017 19:46:35 +0000 (15:46 -0400)]
Merge: nitc: use ccache again

c02e04291807cf97228068cc5b52f453d84ab37b unexpectedly disable ccache.
Since CC is set by default [1], the ?= attempt did never assign anything [2].

The solution is to assign unless if CC is set by another mean.
This can be done thanks to the origin function [3].

  [1]: https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html
  [2]: https://www.gnu.org/software/make/manual/html_node/Flavors.html
  [3]: https://www.gnu.org/software/make/manual/html_node/Origin-Function.html

Pull-Request: #2497

6 years agoMerge: modelize_class: Refactor
Jean Privat [Thu, 15 Jun 2017 19:43:39 +0000 (15:43 -0400)]
Merge: modelize_class: Refactor

Various refactorings that will be useful for later.

Pull-Request: #2486
Reviewed-by: Jean Privat <jean@pryen.org>

6 years agoMerge: gamnit: replace missing textures by a checker texture
Jean Privat [Thu, 15 Jun 2017 19:43:37 +0000 (15:43 -0400)]
Merge: gamnit: replace missing textures by a checker texture

Use a checker texture to replace textures that fail to load. This replaces the previous behavior where an invalid texture name was passed to OpenGL ES which displayed it as full black.

In support, revamp the implementation of `CheckerTexture` to be only black and white and to have a size of 32 pixels by default. The new color is more neutral while being easier to spot and report by an end user (see the tower in the screenshot below). And the new size will make it easier to see than the previous 2x2 on non-scaled 2D sprites.

Also intro `CustomTexture`, a texture build programmatically by setting the color of each pixel. This can be used to create very simple textures (like the crosshair or the fuel indicator in the screenshot) or to represent end user drawings. This API is not very optimized, but clients can still subclass `Texture` for performance critical textures.

![screenshot from 2017-06-10 14 30 13](https://user-images.githubusercontent.com/208057/27045782-11600cde-4f70-11e7-80ac-742e3ab96204.png)

Pull-Request: #2490

6 years agoMerge: tests: measure time with elapsed time instead of user-mode time
Jean Privat [Thu, 15 Jun 2017 19:43:36 +0000 (15:43 -0400)]
Merge: tests: measure time with elapsed time instead of user-mode time

This will help to identify where the real elapsed time is going.

Pull-Request: #2491
Reviewed-by: Jean-Christophe Beaupré <jcbrinfo.public@gmail.com>

6 years agoMerge: modelize_property: Remove an unreachable case
Jean Privat [Thu, 15 Jun 2017 19:43:35 +0000 (15:43 -0400)]
Merge: modelize_property: Remove an unreachable case

Exploit the De Morgan’s law.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

Pull-Request: #2493

6 years agoMerge: nit-makepackage: add missing manpage
Jean Privat [Thu, 15 Jun 2017 19:43:34 +0000 (15:43 -0400)]
Merge: nit-makepackage: add missing manpage

jenkins does not like missing manpages, even for trivial tools.

Pull-Request: #2494

6 years agoMerge: core: move file related services from `String` to `Text`
Jean Privat [Thu, 15 Jun 2017 19:43:31 +0000 (15:43 -0400)]
Merge: core: move file related services from `String` to `Text`

Update services from `core::file` to accept any `Text` as receiver or argument. In order to avoid breaking any clients, the return type is left to `String`. However, to get better performances, future improvements could also change the return type to `Text`, and update all the clients.

Pull-Request: #2495

6 years agomodelize_property: Add a variable to shorten some code
Jean-Christophe Beaupré [Thu, 15 Jun 2017 19:16:36 +0000 (15:16 -0400)]
modelize_property: Add a variable to shorten some code

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agomodelize_class: Link `subset_kind` with its corresponding production
Jean-Christophe Beaupré [Fri, 9 Jun 2017 05:30:16 +0000 (01:30 -0400)]
modelize_class: Link `subset_kind` with its corresponding production

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agoparser: Recompile
Jean-Christophe Beaupré [Fri, 9 Jun 2017 04:38:35 +0000 (00:38 -0400)]
parser: Recompile

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agoparser: Add the concrete grammar for predicate definitions
Jean-Christophe Beaupré [Fri, 9 Jun 2017 04:38:02 +0000 (00:38 -0400)]
parser: Add the concrete grammar for predicate definitions

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agoneo4j: Add a fluent interface to set queries’ parameters
Jean-Christophe Beaupré [Thu, 15 Jun 2017 17:24:37 +0000 (13:24 -0400)]
neo4j: Add a fluent interface to set queries’ parameters

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agonitc: use ccache again
Jean Privat [Thu, 15 Jun 2017 15:29:35 +0000 (11:29 -0400)]
nitc: use ccache again

c02e04291807cf97228068cc5b52f453d84ab37b unexpectedly disable ccache.
Since CC is set by default[1], the ?= attempt did never assign anything[2].

The solution is to assign unless if CC is set by another mean.
This can be done thanks to the origin function[3].

  [1]: https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html
  [2]: https://www.gnu.org/software/make/manual/html_node/Flavors.html
  [3]: https://www.gnu.org/software/make/manual/html_node/Origin-Function.html

Signed-off-by: Jean Privat <jean@pryen.org>

6 years agotests/neo4j: hardening the test not_empty to `length == 1`
Jean Privat [Thu, 15 Jun 2017 13:18:58 +0000 (09:18 -0400)]
tests/neo4j: hardening the test not_empty to `length == 1`

Signed-off-by: Jean Privat <jean@pryen.org>

6 years agotests/neo4j: clear the potential existing elements before starting the tests
Jean Privat [Thu, 15 Jun 2017 13:16:43 +0000 (09:16 -0400)]
tests/neo4j: clear the potential existing elements before starting the tests

Signed-off-by: Jean Privat <jean@pryen.org>

6 years agomodelize_property: Remove an unreachable case
Jean-Christophe Beaupré [Wed, 14 Jun 2017 03:48:23 +0000 (23:48 -0400)]
modelize_property: Remove an unreachable case

Exploit the De Morgan’s law.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agomodelize_property: Implement `is_new` like `is_init`
Jean-Christophe Beaupré [Wed, 14 Jun 2017 21:15:30 +0000 (17:15 -0400)]
modelize_property: Implement `is_new` like `is_init`

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agocore: move more servies to Text (receiver and args only)
Alexis Laferrière [Mon, 12 Jun 2017 15:57:56 +0000 (11:57 -0400)]
core: move more servies to Text (receiver and args only)

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

6 years agogamnit: intro `CustomTexture::fill`
Alexis Laferrière [Wed, 14 Jun 2017 01:52:23 +0000 (21:52 -0400)]
gamnit: intro `CustomTexture::fill`

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

6 years agogamnit: move `pixelated=` up to `Texture`
Alexis Laferrière [Sat, 10 Jun 2017 18:39:45 +0000 (14:39 -0400)]
gamnit: move `pixelated=` up to `Texture`

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

6 years agogamnit: intro custom textures, built programmatically pixel per pixel
Alexis Laferrière [Sun, 11 Jun 2017 02:54:06 +0000 (22:54 -0400)]
gamnit: intro custom textures, built programmatically pixel per pixel

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

6 years agonit-makepackage: add missing manpage
Jean Privat [Wed, 14 Jun 2017 13:08:41 +0000 (09:08 -0400)]
nit-makepackage: add missing manpage

jenkins does not like missing manpages, even for trivial tools.

Signed-off-by: Jean Privat <jean@pryen.org>

6 years agotest: use `command` instead of `env` to bypass Bash’s built-ins
Jean Privat [Wed, 14 Jun 2017 12:44:40 +0000 (08:44 -0400)]
test: use `command` instead of `env` to bypass Bash’s built-ins

Signed-off-by: Jean Privat <jean@pryen.org>

6 years agoparser: Add the abstract grammar for predicate definitions
Jean-Christophe Beaupré [Fri, 9 Jun 2017 04:37:33 +0000 (00:37 -0400)]
parser: Add the abstract grammar for predicate definitions

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agoparser_nodes: Allow to flag predicate definitions
Jean-Christophe Beaupré [Fri, 9 Jun 2017 04:34:16 +0000 (00:34 -0400)]
parser_nodes: Allow to flag predicate definitions

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agoparser: Add the grammar for subset definitions
Jean-Christophe Beaupré [Thu, 8 Jun 2017 23:38:23 +0000 (19:38 -0400)]
parser: Add the grammar for subset definitions

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agoparser_nodes: Add a class kind for class subsets
Jean-Christophe Beaupré [Thu, 8 Jun 2017 23:34:03 +0000 (19:34 -0400)]
parser_nodes: Add a class kind for class subsets

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agomodel: Add a class kind for class subsets
Jean-Christophe Beaupré [Fri, 9 Jun 2017 15:06:44 +0000 (11:06 -0400)]
model: Add a class kind for class subsets

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agomodel: Don’t blacklist in specialization rules
Jean-Christophe Beaupré [Fri, 9 Jun 2017 15:06:33 +0000 (11:06 -0400)]
model: Don’t blacklist in specialization rules

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agomodel: Add `can_customize_isa` and `can_init` attributes to class kinds
Jean-Christophe Beaupré [Mon, 29 May 2017 15:44:06 +0000 (11:44 -0400)]
model: Add `can_customize_isa` and `can_init` attributes to class kinds

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agotests: measure time with elapsed time instead of user-mode time
Jean Privat [Tue, 13 Jun 2017 15:21:16 +0000 (11:21 -0400)]
tests: measure time with elapsed time instead of user-mode time

This will help to identify where the real elapsed time is going.

Signed-off-by: Jean Privat <jean@pryen.org>

6 years agomodelize_class: Test the handling of a formal supertypes
Jean-Christophe Beaupré [Tue, 13 Jun 2017 00:30:13 +0000 (20:30 -0400)]
modelize_class: Test the handling of a formal supertypes

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agomodelize_class: Fix the wording of an error message.
Jean-Christophe Beaupré [Tue, 13 Jun 2017 00:29:06 +0000 (20:29 -0400)]
modelize_class: Fix the wording of an error message.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agomodelize_class: Don’t crash on a formal supertype
Jean-Christophe Beaupré [Tue, 13 Jun 2017 00:28:18 +0000 (20:28 -0400)]
modelize_class: Don’t crash on a formal supertype

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agoMerge: nitweb: use ui-router
Jean Privat [Mon, 12 Jun 2017 20:39:34 +0000 (16:39 -0400)]
Merge: nitweb: use ui-router

A lot of refactoring to replace ng-router by ui-router.

The finality is to provide direct links within documentations tabs:
 * link to dependencies: http://nitweb.moz-code.org/doc/core/graph
 * link to code: http://nitweb.moz-code.org/doc/core::kernel/code
 * link to linearization: http://nitweb.moz-code.org/doc/core::Array/lin

Also removed the special pages for mclassdefs and mpropdefs. They now link directly to their relative mclass/mproperty linearization:
* http://nitweb.moz-code.org/doc/core::Array/lin#pthreads::redef_collections$core::Array
* http://nitweb.moz-code.org/doc/core::SimpleCollection::add_all/lin#core$CircularArray$SimpleCollection::add_all

Demo: http://nitweb.moz-code.org/

Fixes #2177

Pull-Request: #2489

6 years agoMerge: testmodel: what about docunits to test model-related services?
Jean Privat [Mon, 12 Jun 2017 20:39:27 +0000 (16:39 -0400)]
Merge: testmodel: what about docunits to test model-related services?

Just create standalone pre-constructed models already filled with entities that are exposed as attributes.
Then use these models to test various services.

In the prof-of-concept PR, I just added 2 simple docunits.

Pull-Request: #2488
Reviewed-by: Jean-Christophe Beaupré <jcbrinfo.public@gmail.com>

6 years agoMerge: lib/popcorn: introduce BoolValidator in popcorn::pop_validation
Jean Privat [Mon, 12 Jun 2017 20:39:13 +0000 (16:39 -0400)]
Merge: lib/popcorn: introduce BoolValidator in popcorn::pop_validation

A Boolean validator.

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

Pull-Request: #2478
Reviewed-by: Jean Privat <jean@pryen.org>

6 years agoMerge: More package.ini
Jean Privat [Mon, 12 Jun 2017 20:39:02 +0000 (16:39 -0400)]
Merge: More package.ini

package.ini file are not mandatory, so to convince people to use then, here is a new tool.

Pull-Request: #2485
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Jean-Christophe Beaupré <jcbrinfo.public@gmail.com>

6 years agotestmodel: what about docunits to test model-related services?
Jean Privat [Mon, 12 Jun 2017 14:37:07 +0000 (10:37 -0400)]
testmodel: what about docunits to test model-related services?

Just create standalone pre-constructed models already filled with entities that are exposed as attributes.
The use the same model to test various services.

Signed-off-by: Jean Privat <jean@pryen.org>

6 years agogamnit: if a texture fails to load, use the checker texture
Alexis Laferrière [Fri, 9 Jun 2017 14:48:09 +0000 (10:48 -0400)]
gamnit: if a texture fails to load, use the checker texture

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

6 years agogamnit: CheckerTexture with custom size and move up implementation
Alexis Laferrière [Fri, 9 Jun 2017 14:47:46 +0000 (10:47 -0400)]
gamnit: CheckerTexture with custom size and move up implementation

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

6 years agolib/popcorn: introduce BoolValidator in popcorn::pop_validation
Alexandre Terrasa [Mon, 12 Jun 2017 18:28:19 +0000 (14:28 -0400)]
lib/popcorn: introduce BoolValidator in popcorn::pop_validation

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agonitweb: classdefs and propdefs link directly into class / property linerarization...
Alexandre Terrasa [Mon, 12 Jun 2017 17:51:45 +0000 (13:51 -0400)]
nitweb: classdefs and propdefs link directly into class / property linerarization list

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agoMerge: lib/popcorn: use GetName for deserialization process
Jean Privat [Mon, 12 Jun 2017 17:43:46 +0000 (13:43 -0400)]
Merge: lib/popcorn: use GetName for deserialization process

First official use of the Goret<sup>&copy;</sup> approach.

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

Pull-Request: #2487

6 years agoMerge: lib/dot: rename `exemples` to `examples`
Jean Privat [Mon, 12 Jun 2017 17:43:45 +0000 (13:43 -0400)]
Merge: lib/dot: rename `exemples` to `examples`

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

Pull-Request: #2479

6 years agoadd 2 missing package.ini files
Jean Privat [Fri, 9 Jun 2017 15:58:16 +0000 (11:58 -0400)]
add 2 missing package.ini files

Signed-off-by: Jean Privat <jean@pryen.org>

6 years agonew script to ease the creation of `package.ini` files
Jean Privat [Fri, 9 Jun 2017 15:57:12 +0000 (11:57 -0400)]
new script to ease the creation of `package.ini` files

Signed-off-by: Jean Privat <jean@pryen.org>

6 years agoMerge: nitsmell : Add code smell detection
Jean Privat [Mon, 12 Jun 2017 12:44:25 +0000 (08:44 -0400)]
Merge: nitsmell : Add code smell detection

Adding code smell detection :

- Long class
- Long method parameter list
- Long size method
- Feature envy

Adding a visitor to analyse the contents of the methods

Pull-Request: #2445
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Jean-Christophe Beaupré <jcbrinfo.public@gmail.com>

6 years agonitweb: split mentity module into views
Alexandre Terrasa [Fri, 9 Jun 2017 21:20:09 +0000 (17:20 -0400)]
nitweb: split mentity module into views

Tabs are now reachable via url

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agomodelize_class: Simplify `collect_supertypes` by defining some variables
Jean-Christophe Beaupré [Fri, 9 Jun 2017 17:16:59 +0000 (13:16 -0400)]
modelize_class: Simplify `collect_supertypes` by defining some variables

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agomodelize_class: Extract supertype collection logic
Jean-Christophe Beaupré [Fri, 9 Jun 2017 17:09:50 +0000 (13:09 -0400)]
modelize_class: Extract supertype collection logic

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

6 years agonitweb: remove model module
Alexandre Terrasa [Fri, 9 Jun 2017 18:54:25 +0000 (14:54 -0400)]
nitweb: remove model module

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agonitweb: move metrics model to metrics module
Alexandre Terrasa [Fri, 9 Jun 2017 18:52:48 +0000 (14:52 -0400)]
nitweb: move metrics model to metrics module

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agonitweb: move users model to users module
Alexandre Terrasa [Fri, 9 Jun 2017 18:51:46 +0000 (14:51 -0400)]
nitweb: move users model to users module

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agonitweb: move ui-router config to users module
Alexandre Terrasa [Fri, 9 Jun 2017 18:50:30 +0000 (14:50 -0400)]
nitweb: move ui-router config to users module

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agonitweb: move grades model to grades module
Alexandre Terrasa [Fri, 9 Jun 2017 18:47:50 +0000 (14:47 -0400)]
nitweb: move grades model to grades module

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agonitweb: move ui-router config to grades module
Alexandre Terrasa [Fri, 9 Jun 2017 18:46:45 +0000 (14:46 -0400)]
nitweb: move ui-router config to grades module

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agonitweb: move doc-down model to doc-down module
Alexandre Terrasa [Fri, 9 Jun 2017 18:44:21 +0000 (14:44 -0400)]
nitweb: move doc-down model to doc-down module

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agonitweb: move ui-router configuration to doc-down module
Alexandre Terrasa [Fri, 9 Jun 2017 18:43:06 +0000 (14:43 -0400)]
nitweb: move ui-router configuration to doc-down module

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agonitweb: move entity state configuration to entity module
Alexandre Terrasa [Fri, 9 Jun 2017 18:33:28 +0000 (14:33 -0400)]
nitweb: move entity state configuration to entity module

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agomitweb: move entity model to entity module
Alexandre Terrasa [Fri, 9 Jun 2017 18:33:08 +0000 (14:33 -0400)]
mitweb: move entity model to entity module

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agonitweb: index use ui-router and views for tabs
Alexandre Terrasa [Fri, 9 Jun 2017 18:28:41 +0000 (14:28 -0400)]
nitweb: index use ui-router and views for tabs

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agonitweb: remove useless dependency from index to ngSanitize
Alexandre Terrasa [Fri, 9 Jun 2017 18:07:30 +0000 (14:07 -0400)]
nitweb: remove useless dependency from index to ngSanitize

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agonitweb: move index model to index module
Alexandre Terrasa [Fri, 9 Jun 2017 18:06:48 +0000 (14:06 -0400)]
nitweb: move index model to index module

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agonitweb: remove useless module injection from module index
Alexandre Terrasa [Fri, 9 Jun 2017 18:05:17 +0000 (14:05 -0400)]
nitweb: remove useless module injection from module index

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agonitweb: move index state configuration to index module
Alexandre Terrasa [Fri, 9 Jun 2017 18:04:19 +0000 (14:04 -0400)]
nitweb: move index state configuration to index module

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agonitweb: move anchorscroll configuration to main script
Alexandre Terrasa [Fri, 9 Jun 2017 18:02:30 +0000 (14:02 -0400)]
nitweb: move anchorscroll configuration to main script

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agonitweb: replace ngRouter by ui.router
Alexandre Terrasa [Fri, 9 Jun 2017 18:01:24 +0000 (14:01 -0400)]
nitweb: replace ngRouter by ui.router

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agonitweb: split css files
Alexandre Terrasa [Fri, 9 Jun 2017 05:49:29 +0000 (01:49 -0400)]
nitweb: split css files

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agolib/popcorn: use GetName for deserialization process
Alexandre Terrasa [Fri, 9 Jun 2017 17:30:25 +0000 (13:30 -0400)]
lib/popcorn: use GetName for deserialization process

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

6 years agomodelize_class: Continue supertype collection after an invalid supertype
Jean-Christophe Beaupré [Fri, 9 Jun 2017 17:09:14 +0000 (13:09 -0400)]
modelize_class: Continue supertype collection after an invalid supertype

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>