File tree Expand file tree Collapse file tree 24 files changed +282
-11
lines changed Expand file tree Collapse file tree 24 files changed +282
-11
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,10 @@ before_script:
36
36
- cargo install cargo-update || echo "cargo-update already installed"
37
37
- cargo install cargo-travis || echo "cargo-travis already installed"
38
38
- cargo install-update -a # updates cargo-travis, if the cached version is outdated
39
- - rustup component add clippy rustfmt
39
+ - rustup component add clippy
40
+ # The license_template_path setting we use to verify copyright headers is
41
+ # only available on the nightly rustfmt.
42
+ - rustup toolchain install nightly && rustup component add --toolchain nightly rustfmt
40
43
41
44
script :
42
45
# Clippy must be run first, as its lints are only triggered during
@@ -46,7 +49,7 @@ script:
46
49
- travis-cargo clippy -- --all-targets --all-features -- -D warnings
47
50
- travis-cargo build
48
51
- travis-cargo test
49
- - travis-cargo fmt -- -- --check
52
+ - travis-cargo --only nightly fmt -- -- --check --config-path <(echo 'license_template_path = "HEADER"')
50
53
51
54
after_success :
52
55
- cargo coveralls --verbose
Original file line number Diff line number Diff line change
1
+ // Licensed under the Apache License, Version 2.0 (the "License");
2
+ // you may not use this file except in compliance with the License.
3
+ // You may obtain a copy of the License at
4
+ //
5
+ // http://www.apache.org/licenses/LICENSE-2.0
6
+ //
7
+ // Unless required by applicable law or agreed to in writing, software
8
+ // distributed under the License is distributed on an "AS IS" BASIS,
9
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ // See the License for the specific language governing permissions and
11
+ // limitations under the License.
Original file line number Diff line number Diff line change
1
+ // Licensed under the Apache License, Version 2.0 (the "License");
2
+ // you may not use this file except in compliance with the License.
3
+ // You may obtain a copy of the License at
4
+ //
5
+ // http://www.apache.org/licenses/LICENSE-2.0
6
+ //
7
+ // Unless required by applicable law or agreed to in writing, software
8
+ // distributed under the License is distributed on an "AS IS" BASIS,
9
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ // See the License for the specific language governing permissions and
11
+ // limitations under the License.
12
+
1
13
#![ warn( clippy:: all) ]
2
14
3
15
use simple_logger;
Original file line number Diff line number Diff line change
1
+ // Licensed under the Apache License, Version 2.0 (the "License");
2
+ // you may not use this file except in compliance with the License.
3
+ // You may obtain a copy of the License at
4
+ //
5
+ // http://www.apache.org/licenses/LICENSE-2.0
6
+ //
7
+ // Unless required by applicable law or agreed to in writing, software
8
+ // distributed under the License is distributed on an "AS IS" BASIS,
9
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ // See the License for the specific language governing permissions and
11
+ // limitations under the License.
12
+
1
13
#![ warn( clippy:: all) ]
2
14
3
15
use sqlparser:: dialect:: GenericSqlDialect ;
Original file line number Diff line number Diff line change 1
- # We use rustfmt's default settings to format the source code
1
+ # We use rustfmt's default settings to format the source code
Original file line number Diff line number Diff line change
1
+ // Licensed under the Apache License, Version 2.0 (the "License");
2
+ // you may not use this file except in compliance with the License.
3
+ // You may obtain a copy of the License at
4
+ //
5
+ // http://www.apache.org/licenses/LICENSE-2.0
6
+ //
7
+ // Unless required by applicable law or agreed to in writing, software
8
+ // distributed under the License is distributed on an "AS IS" BASIS,
9
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ // See the License for the specific language governing permissions and
11
+ // limitations under the License.
12
+
1
13
use crate :: dialect:: Dialect ;
2
14
3
15
#[ derive( Debug ) ]
Original file line number Diff line number Diff line change
1
+ // Licensed under the Apache License, Version 2.0 (the "License");
2
+ // you may not use this file except in compliance with the License.
3
+ // You may obtain a copy of the License at
4
+ //
5
+ // http://www.apache.org/licenses/LICENSE-2.0
6
+ //
7
+ // Unless required by applicable law or agreed to in writing, software
8
+ // distributed under the License is distributed on an "AS IS" BASIS,
9
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ // See the License for the specific language governing permissions and
11
+ // limitations under the License.
12
+
1
13
use crate :: dialect:: Dialect ;
2
14
3
15
#[ derive( Debug ) ]
Original file line number Diff line number Diff line change
1
+ // Licensed under the Apache License, Version 2.0 (the "License");
2
+ // you may not use this file except in compliance with the License.
3
+ // You may obtain a copy of the License at
4
+ //
5
+ // http://www.apache.org/licenses/LICENSE-2.0
6
+ //
7
+ // Unless required by applicable law or agreed to in writing, software
8
+ // distributed under the License is distributed on an "AS IS" BASIS,
9
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ // See the License for the specific language governing permissions and
11
+ // limitations under the License.
12
+
1
13
///! This module defines
2
14
/// 1) a list of constants for every keyword that
3
15
/// can appear in SQLWord::keyword:
Original file line number Diff line number Diff line change
1
+ // Licensed under the Apache License, Version 2.0 (the "License");
2
+ // you may not use this file except in compliance with the License.
3
+ // You may obtain a copy of the License at
4
+ //
5
+ // http://www.apache.org/licenses/LICENSE-2.0
6
+ //
7
+ // Unless required by applicable law or agreed to in writing, software
8
+ // distributed under the License is distributed on an "AS IS" BASIS,
9
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ // See the License for the specific language governing permissions and
11
+ // limitations under the License.
12
+
1
13
mod ansi_sql;
2
14
mod generic_sql;
3
15
pub mod keywords;
Original file line number Diff line number Diff line change
1
+ // Licensed under the Apache License, Version 2.0 (the "License");
2
+ // you may not use this file except in compliance with the License.
3
+ // You may obtain a copy of the License at
4
+ //
5
+ // http://www.apache.org/licenses/LICENSE-2.0
6
+ //
7
+ // Unless required by applicable law or agreed to in writing, software
8
+ // distributed under the License is distributed on an "AS IS" BASIS,
9
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ // See the License for the specific language governing permissions and
11
+ // limitations under the License.
12
+
1
13
use crate :: dialect:: Dialect ;
2
14
3
15
#[ derive( Debug ) ]
You can’t perform that action at this time.
0 commit comments