From 25cbbc1e4429b6f1ed1dd7d6272c4729fe496516 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 22 Dec 2020 21:01:54 +0100 Subject: [PATCH] tools/check-md: skip CHANGELOG --- CHANGELOG.md | 15 +++++++-------- cmd/tools/check-md.v | 3 +++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f9cf6ba8e..8bee8b2d88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,19 +12,17 @@ It will be enabled by default in 0.3 https://v-wasm.now.sh - V binaries for Linux/Windows/macOS are now built and deployed automatically via GitHub Actions. - Smart casting for sumtypes and interfaces, including complex expressions: `if x.expr is int { println(x.expr + 1) }`. -- Smart casts for interfaces. -- A new `term.ui` module for building dynamic terminal UIs with an example editor written in it. - Clean and easy way to sort arrays: `users.sort(a.name > b.name)`. - A huge amount of `vfmt` fixes and improvements. It has now reached a point where it can be safely used on any V source file. -- A new CI job that runs `v fmt -verify` on the entire code base, a new command that makes sure the file +- A new CI job that runs `v fmt -verify` on the entire code base, a new command that makes sure the file/directory has been vfmt'ed. This ensures that all code submitted to the V project is formatted. - A new tool `v vet` for analyzing the project and finding potential bugs and errors. +- A new `term.ui` module for building dynamic terminal UIs with an example editor written in it. - Early iOS and Android support. - All missing ORM features from the old backend were brought back. - Magic `it` variable has been replaced with smart casts (the change is completely handled by vfmt). -- Explicit parentheses requirement in complex boolean expressions - Cross-compiling to Windows and Linux brought back. -- C2V can now generate wrappers. Example: https://github.com/medvednikov/libsodium. +- C2V can now generate wrappers. Example: https://github.com/medvednikov/libsodium. (C2V will be released by 0.3) - C++ compiler support: code, generated by the C backend can now by compiled by C++ compilers. - Short generics syntax: `foo(5)` instead of `foo(5)`. - Cached modules via `-usecache`. Faster compilation due to not needing to rebuild the entire vlib for @@ -36,15 +34,16 @@ each program. Will be enabled by default in 0.2.1. - Lots of documentation. The official language documentation grew 3 times in size. - `modules.vlang.io` is now generated automatically on every commit. - Builtin compile-time JSON serializer now supports `time.Time`. -- Fixes in type alise, to make them behave just like the types they alias. +- Fixes in type aliases, to make them behave just like the types they alias. - `array.contains(element)` is now generic. -- Lots of improvements to the JS backend and its type system. +- Lots of improvements in the JS backend and its type system. - Simpler and more constinent function arg syntax: `foo(a int, b int, c string)` instead of `foo(a, b int, c string)` - Lots of fixes and optimizations in the hashmap. - Lots of missing checks in the type checker were added (for example, checking the correct usage of public struct fields). - Mutability bug fixes - Taking the address of a map value is no longer allowed, like in Go. - Matrix multiplication. +- Explicit parentheses requirement in complex boolean expressions. - `println` was made even smarter, and can now handle complex types. - Precompiled text templates can now be used outside of vweb via `$tmpl()`. - Gitly, a big web application written in vweb has been released: https://github.com/vlang/gitly @@ -53,7 +52,7 @@ each program. Will be enabled by default in 0.2.1. - Webview module in V UI. - Binary enum flags. - `[export]` attribute to change exported function name (for example for calling from a C library). -- `unsafe` +- `unsafe` fixes and improvements. - Hundreds of other fixes, features, and tests (from now on the changelog will be updated right away as the feature/bug fix lands). diff --git a/cmd/tools/check-md.v b/cmd/tools/check-md.v index 30b20a5639..3342f4a5d8 100644 --- a/cmd/tools/check-md.v +++ b/cmd/tools/check-md.v @@ -70,6 +70,9 @@ fn md_file_paths() []string { if file.starts_with('./thirdparty') { continue } + if file.contains('CHANGELOG') { + continue + } files_to_check << file } return files_to_check