Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
blendb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
C3SL
blendb
Commits
5164752d
Commit
5164752d
authored
Nov 30, 2017
by
Lucas Fernandes de Oliveira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'issue/52' into 'master'
Issue
#51
: Add linter to .gitlabci.yml See merge request
!45
parents
d034968b
7dd980d1
Pipeline
#13699
passed with stage
in 51 seconds
Changes
6
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
7 deletions
+10
-7
.gitlab-ci.yml
.gitlab-ci.yml
+1
-0
src/adapter/postgres.ts
src/adapter/postgres.ts
+1
-1
src/core/engine.spec.ts
src/core/engine.spec.ts
+2
-2
src/util/graph.ts
src/util/graph.ts
+2
-2
test/postgres/fixture.ts
test/postgres/fixture.ts
+1
-1
tslint.json
tslint.json
+3
-1
No files found.
.gitlab-ci.yml
View file @
5164752d
...
...
@@ -19,6 +19,7 @@ run_tests:
script
:
-
mv config/ci_test.yaml.example config/test.yaml
-
npm test
-
npm run lint
tags
:
-
node
-
postgres
src/adapter/postgres.ts
View file @
5164752d
...
...
@@ -646,7 +646,7 @@ export class PostgresAdapter extends Adapter {
// Joins
let
conds
:
string
[]
=
[];
for
(
let
i
in
dimMap
)
{
for
(
let
i
of
Object
.
keys
(
dimMap
)
)
{
let
remainViews
=
dimMap
[
i
].
views
.
slice
();
let
dim
=
dimMap
[
i
].
dim
;
let
leftSide
=
this
.
buildColumn
(
dim
,
remainViews
.
shift
().
id
);
...
...
src/core/engine.spec.ts
View file @
5164752d
...
...
@@ -311,7 +311,7 @@ describe("engine class", () => {
"
==
"
:
FilterOperator
.
EQUAL
,
"
!=
"
:
FilterOperator
.
NOTEQUAL
};
for
(
let
op
in
operators
)
{
for
(
let
op
of
Object
.
keys
(
operators
)
)
{
const
strFilter
=
"
dim:0
"
+
op
+
"
0
"
;
const
clause
=
engine
.
parseClause
(
strFilter
);
expect
(
clause
).
to
.
be
.
an
(
"
object
"
);
...
...
@@ -328,7 +328,7 @@ describe("engine class", () => {
expect
(
clause
.
filters
[
0
].
operator
).
to
.
be
.
equal
(
operators
[
op
]);
}
for
(
let
op
in
operators
)
{
for
(
let
op
of
Object
.
keys
(
operators
)
)
{
const
strFilter
=
"
dim:2
"
+
op
+
"
0
"
;
const
clause
=
engine
.
parseClause
(
strFilter
);
expect
(
clause
).
to
.
be
.
an
(
"
object
"
);
...
...
src/util/graph.ts
View file @
5164752d
...
...
@@ -339,7 +339,7 @@ export class Graph {
let
queue
:
Vertex
[]
=
[
root
];
while
(
queue
.
length
>
0
)
{
let
v
:
Vertex
=
queue
.
shift
();
for
(
let
key
in
v
.
neighbors
)
{
for
(
let
key
of
Object
.
keys
(
v
.
neighbors
)
)
{
let
u
:
Vertex
=
this
.
verticeMap
[
key
];
if
(
this
.
canVisit
(
u
,
v
.
neighbors
[
key
],
clauses
))
{
// Mark all vertices visited by the search
...
...
@@ -414,7 +414,7 @@ export class Graph {
let
views
:
View
[]
=
[];
// Pick all views that contain the root vertex
for
(
let
i
in
root
.
neighbors
)
{
for
(
let
i
of
Object
.
keys
(
root
.
neighbors
)
)
{
views
=
views
.
concat
(
root
.
neighbors
[
i
].
filter
((
item
)
=>
{
return
item
.
isView
&&
this
.
passConstraints
(
clauses
,
item
.
view
.
clauses
);
...
...
test/postgres/fixture.ts
View file @
5164752d
...
...
@@ -138,7 +138,7 @@ export class Fixture {
for
(
let
i
=
0
;
i
<
rows
.
length
;
++
i
)
{
let
values
=
[];
let
keys
=
[];
for
(
let
key
in
rows
[
i
]
)
{
for
(
let
key
of
Object
.
keys
(
rows
[
i
])
)
{
keys
.
push
(
"
\"
"
+
key
+
"
\"
"
);
values
.
push
(
"
'
"
+
rows
[
i
][
key
]
+
"
'
"
);
}
...
...
tslint.json
View file @
5164752d
...
...
@@ -5,6 +5,8 @@
"object-literal-sort-keys"
:
false
,
"one-line"
:
false
,
"trailing-comma"
:
false
,
"interface-name"
:
false
"interface-name"
:
false
,
"max-line-length"
:
false
,
"member-ordering"
:
false
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment