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:
3636 - cargo install cargo-update || echo "cargo-update already installed"
3737 - cargo install cargo-travis || echo "cargo-travis already installed"
3838 - 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
4043
4144script :
4245 # Clippy must be run first, as its lints are only triggered during
@@ -46,7 +49,7 @@ script:
4649 - travis-cargo clippy -- --all-targets --all-features -- -D warnings
4750 - travis-cargo build
4851 - travis-cargo test
49- - travis-cargo fmt -- -- --check
52+ - travis-cargo --only nightly fmt -- -- --check --config-path <(echo 'license_template_path = "HEADER"')
5053
5154after_success :
5255 - 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+
113#![ warn( clippy:: all) ]
214
315use 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+
113#![ warn( clippy:: all) ]
214
315use 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+
113use crate :: dialect:: Dialect ;
214
315#[ 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+
113use crate :: dialect:: Dialect ;
214
315#[ 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+
113///! This module defines
214/// 1) a list of constants for every keyword that
315/// 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+
113mod ansi_sql;
214mod generic_sql;
315pub 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+
113use crate :: dialect:: Dialect ;
214
315#[ derive( Debug ) ]
You can’t perform that action at this time.
0 commit comments