Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ci): add pr spell check #221

Merged
merged 10 commits into from
Jul 9, 2024
Merged

Conversation

liweijie0812
Copy link
Contributor

@liweijie0812 liweijie0812 commented Jul 5, 2024

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

📝 更新日志

  • fix(组件名称): 处理问题或特性描述 ...

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • Changelog 已提供或无须提供

@tencent-adm
Copy link
Member

tencent-adm commented Jul 5, 2024

CLA assistant check
All committers have signed the CLA.

@liweijie0812 liweijie0812 changed the base branch from main to develop July 5, 2024 02:41
@liweijie0812
Copy link
Contributor Author

错词

error: `containns` should be `contains`
  --> ./tdesign-component/analysis_options.yaml:137:8
    |
137 |     # 当containns方法的参数和可枚举的类型不同,不要触发可枚举类型的contains方法
    |         ^^^^^^^^^
    |
error: `focuse` should be `focus`
  --> ./tdesign-component/lib/src/components/stepper/td_stepper.dart:80:20
   |
80 |   final FocusNode _focuseNode = FocusNode();
   |                    ^^^^^^
   |
error: `focuse` should be `focus`
  --> ./tdesign-component/lib/src/components/stepper/td_stepper.dart:87:6
   |
87 |     _focuseNode.addListener(() {
   |      ^^^^^^
   |
error: `focuse` should be `focus`
  --> ./tdesign-component/lib/src/components/stepper/td_stepper.dart:88:13
   |
88 |       if (!_focuseNode.hasFocus) {
   |             ^^^^^^
   |
error: `focuse` should be `focus`
  --> ./tdesign-component/lib/src/components/stepper/td_stepper.dart:99:6
   |
99 |     _focuseNode.dispose();
   |      ^^^^^^
   |
error: `focuse` should be `focus`
  --> ./tdesign-component/lib/src/components/stepper/td_stepper.dart:221:6
    |
221 |     _focuseNode.unfocus();
    |      ^^^^^^
    |
error: `focuse` should be `focus`
  --> ./tdesign-component/lib/src/components/stepper/td_stepper.dart:268:35
    |
268 |                       focusNode: _focuseNode,
    |                                   ^^^^^^
    |
error: `Bage` should be `Bag`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:59:23
   |
59 |     required this.showBage,
   |                       ^^^^
   |
error: `Bage` should be `Bag`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:66:18
   |
66 |   final bool showBage;
   |                  ^^^^
   |
error: `Bage` should be `Bag`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:68:20
   |
68 |   /// 消息样式(未设置但showBage为true,则默认使用红点)
   |                            ^^^^
   |
error: `Bage` should be `Bag`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:90:32
   |
90 |           if (badgeConfig?.showBage ?? false) {
   |                                ^^^^
   |
error: `Bage` should be `Bag`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:456:26
    |
456 |     if (badgeConfig?.showBage ?? false) {
    |                          ^^^^
    |
error: `Bage` should be `Bag`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:522:39
    |
522 |             visible: badgeConfig?.showBage ?? false,
    |                                       ^^^^
    |
error: `pannel` should be `panel`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:583:7
    |
583 |   /// pannel圆角 默认0
    |       ^^^^^^
    |
error: `Pannel` should be `Panel`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:735:30
    |
735 |                     painter: PannelWithDownArrow(config: widget.config),
    |                              ^^^^^^
    |
error: `pannel` should be `panel`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:770:12
    |
770 | /// 带下箭头的展开pannel
    |                   ^^^^^^
    |
error: `Pannel` should be `Panel`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:771:7
    |
771 | class PannelWithDownArrow extends CustomPainter {
    |       ^^^^^^
    |
error: `Pannel` should be `Panel`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:774:3
    |
774 |   PannelWithDownArrow({
    |   ^^^^^^
    |
error: `pannel` should be `panel`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:785:9
    |
785 |     var pannelWidth = size.width;
    |         ^^^^^^
    |
error: `pannel` should be `panel`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:786:9
    |
786 |     var pannelHeight = size.height - (config?.arrowHeight ?? _kArrowHeight);
    |         ^^^^^^
    |
error: `pannel` should be `panel`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:789:53
    |
789 |         RRect.fromRectAndRadius(Rect.fromLTWH(0, 0, pannelWidth, pannelHeight), Radius.circular(config?.radius ?? 0.0)),
    |                                                     ^^^^^^
    |
error: `pannel` should be `panel`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:789:66
    |
789 |         RRect.fromRectAndRadius(Rect.fromLTWH(0, 0, pannelWidth, pannelHeight), Radius.circular(config?.radius ?? 0.0)),
    |                                                                  ^^^^^^
    |
error: `pannel` should be `panel`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:794:19
    |
794 |       var left = (pannelWidth - _kArrowWidth) / 2;
    |                   ^^^^^^
    |
error: `pannel` should be `panel`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:795:20
    |
795 |       var right = (pannelWidth + _kArrowWidth) / 2;
    |                    ^^^^^^
    |
error: `pannel` should be `panel`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:796:20
    |
796 |       var bottom = pannelHeight + _kArrowHeight;
    |                    ^^^^^^
    |
error: `pannel` should be `panel`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:798:17
    |
798 |         left = (pannelWidth - config!.arrowWidth!) / 2;
    |                 ^^^^^^
    |
error: `pannel` should be `panel`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:799:18
    |
799 |         right = (pannelWidth + config!.arrowWidth!) / 2;
    |                  ^^^^^^
    |
error: `pannel` should be `panel`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:802:18
    |
802 |         bottom = pannelHeight + config!.arrowHeight!;
    |                  ^^^^^^
    |
error: `pannel` should be `panel`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:805:25
    |
805 |       path.moveTo(left, pannelHeight);
    |                         ^^^^^^
    |
error: `pannel` should be `panel`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:806:19
    |
806 |       path.lineTo(pannelWidth / 2, bottom);
    |                   ^^^^^^
    |
error: `pannel` should be `panel`
  --> ./tdesign-component/lib/src/components/tabbar/td_bottom_tab_bar.dart:807:26
    |
807 |       path.lineTo(right, pannelHeight);
    |                          ^^^^^^
    |
error: `contet` should be `contest`, `content`, `context`
  --> ./tdesign-site/src/checkbox/README.md:111:23
    |
111 |         itemBuilder: (contet, index) {
    |                       ^^^^^^
    |
error: `contet` should be `contest`, `content`, `context`
  --> ./tdesign-site/src/checkbox/README.md:279:23
    |
279 |         itemBuilder: (contet, index) {
    |                       ^^^^^^
    |
error: `Conten` should be `Contain`
  --> ./tdesign-component/lib/src/components/dropdown_menu/td_dropdown_item.dart:83:18
   |
83 |   double? get minContenHeight =>
   |                  ^^^^^^
   |
error: `Conten` should be `Contain`
  --> ./tdesign-component/lib/src/components/dropdown_menu/td_dropdown_item.dart:85:18
   |
85 |   double? get maxContenHeight =>
   |                  ^^^^^^
   |
error: `Pannel` should be `Panel`
  --> ./tdesign-site/src/tab-bar/README.md:3258:20
     |
3258 |   Widget _expansionPannelTypeTabBar(BuildContext context) {
     |                    ^^^^^^
     |
error: `Conten` should be `Contain`
  --> ./tdesign-component/lib/src/components/dropdown_menu/td_dropdown_item.dart:120:38
    |
120 |     var maxContentHeight = widget.maxContenHeight != null
    |                                      ^^^^^^
    |
error: `Bage` should be `Bag`
  --> ./tdesign-site/src/tab-bar/README.md:3328:17
     |
3328 |             showBage: true,
     |                 ^^^^
     |
error: `Conten` should be `Contain`
  --> ./tdesign-component/lib/src/components/dropdown_menu/td_dropdown_item.dart:121:21
    |
121 |         ? widget.maxContenHeight!
    |                     ^^^^^^
    |
error: `Conten` should be `Contain`
  --> ./tdesign-component/lib/src/components/dropdown_menu/td_dropdown_item.dart:128:60
    |
128 |           constraints: BoxConstraints(minHeight: widget.minContenHeight ?? 0.0, maxHeight: maxContentHeight),
    |                                                            ^^^^^^
    |
error: `Bage` should be `Bag`
  --> ./tdesign-site/src/tab-bar/README.md:3373:17
     |
3373 |             showBage: true,
     |                 ^^^^
     |
error: `Bage` should be `Bag`
  --> ./tdesign-site/src/tab-bar/README.md:3420:17
     |
3420 |             showBage: true,
     |                 ^^^^
     |
error: `Conten` should be `Contain`
  --> ./tdesign-component/lib/src/components/dropdown_menu/td_dropdown_item.dart:200:22
    |
200 |     return widget.minContenHeight != null || widget.maxContenHeight != null
    |                      ^^^^^^
    |
error: `Bage` should be `Bag`
  --> ./tdesign-site/src/tab-bar/README.md:3469:17
     |
3469 |             showBage: true,
     |                 ^^^^
     |
error: `Conten` should be `Contain`
  --> ./tdesign-component/lib/src/components/dropdown_menu/td_dropdown_item.dart:200:56
    |
200 |     return widget.minContenHeight != null || widget.maxContenHeight != null
    |                                                        ^^^^^^
    |
error: `Conten` should be `Contain`
  --> ./tdesign-component/lib/src/components/dropdown_menu/td_dropdown_item.dart:203:38
    |
203 |                 minHeight: widget.minContenHeight ?? 0.0, maxHeight: widget.maxContenHeight ?? double.infinity),
    |                                      ^^^^^^
    |
error: `Conten` should be `Contain`
  --> ./tdesign-component/lib/src/components/dropdown_menu/td_dropdown_item.dart:203:80
    |
203 |                 minHeight: widget.minContenHeight ?? 0.0, maxHeight: widget.maxContenHeight ?? double.infinity),
    |                                                                                ^^^^^^
    |
error: `Conten` should be `Contain`
  --> ./tdesign-component/lib/src/components/dropdown_menu/td_dropdown_item.dart:204:30
    |
204 |             child: widget.maxContenHeight != null ? SingleChildScrollView(child: radios) : radios,
    |                              ^^^^^^
    |
error: `Bage` should be `Bag`
  --> ./tdesign-site/src/tab-bar/README.md:3516:17
     |
3516 |             showBage: true,
     |                 ^^^^
     |
error: `Bage` should be `Bag`
  --> ./tdesign-site/src/tab-bar/README.md:3599:7
     |
3599 | | showBage | bool | - | 是否展示消息 |
     |       ^^^^
     |
error: `Bage` should be `Bag`
  --> ./tdesign-site/src/tab-bar/README.md:3600:41
     |
3600 | | tdBadge | TDBadge? | - | 消息样式(未设置但showBage为true,则默认使用红点) |
     |                                                 ^^^^
     |
error: `pannel` should be `panel`
  --> ./tdesign-site/src/tab-bar/README.md:3667:26
     |
3667 | | radius | double? | - | pannel圆角 默认0 |
     |                          ^^^^^^
     |
error: `verticle` should be `vertical`
  --> ./tdesign-site/src/radio/README.md:26:11
   |
26 |   Widget _verticleRadios(BuildContext context) {
   |           ^^^^^^^^
   |
error: `contet` should be `contest`, `content`, `context`
  --> ./tdesign-site/src/radio/README.md:205:23
    |
205 |         itemBuilder: (contet, index) {
    |                       ^^^^^^
    |
error: `resouce` should be `resource`
  --> ./tdesign-site/site/plugin-tdoc/transforms.ts:9:11
  |
9 |     const resouceDir = path.dirname(file);
  |           ^^^^^^^
  |
error: `resouce` should be `resource`
  --> ./tdesign-site/site/plugin-tdoc/transforms.ts:26:37
   |
26 |       const demoPath = path.resolve(resouceDir, `./_example/${demoDirName}`);
   |                                     ^^^^^^^
   |
error: `Varialbes` should be `Variables`
  --> ./tdesign-site/site/docs/custom-theme.md:65:39
   |
65 | > 目前仅有部分组件支持自定义主题,支持的组件在其文档有陈列对应的 CSS Varialbes,可以访问 [tab-bar-item.less](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/tab-bar-item/tab-bar-item.less)
   |                                                                      ^^^^^^^^^
   |
error: `verion` should be `version`
  --> ./tdesign-site/script/generate-changelog.js:21:64
   |
21 |         newVersion = pkg.version.replace(/(\d+\.\d+\.)(\d+)/, (verion, $1, $2) => $1 + (Number($2) + 1));
   |                                                                ^^^^^^
   |
error: `writting` should be `writing`
  --> ./tdesign-site/script/prerender.mjs:57:30
   |
57 |     console.log('\x1b[32m', `writting ${url}... \n`);
   |                              ^^^^^^^^
   |
error: `Bage` should be `Bag`
  --> ./tdesign-component/example/assets/api/tab-bar_api.md:7:7
  |
7 | | showBage | bool | - | 是否展示消息 |
  |       ^^^^
  |
error: `Bage` should be `Bag`
  --> ./tdesign-component/example/assets/api/tab-bar_api.md:8:41
  |
8 | | tdBadge | TDBadge? | - | 消息样式(未设置但showBage为true,则默认使用红点) |
  |                                                 ^^^^
  |
error: `vritual` should be `virtual`
  --> ./tdesign-site/script/test/transform.js:1:9
  |
1 | // 由于开启 vritualHost=true 之后,selectComponent 无法获取,暂时在单测关闭 virtualHost
  |             ^^^^^^^
  |
error: `pannel` should be `panel`
  --> ./tdesign-component/example/assets/api/tab-bar_api.md:75:26
   |
75 | | radius | double? | - | pannel圆角 默认0 |
   |                          ^^^^^^
   |
error: `exmaple` should be `example`
  --> ./tdesign-site/CHANGELOG.md:169:6
    |
169 | * 修改 exmaple的main.dart
    |        ^^^^^^^
    |
error: `tne` should be `the`
  --> ./tdesign-component/example/ios/Runner/Base.lproj/Main.storyboard:9:25
  |
9 |         <scene sceneID="tne-QT-ifu">
  |                         ^^^
  |
error: `verticle` should be `vertical`
  --> ./tdesign-component/example/assets/code/radio._verticleRadios.txt:8
error: `verticle` should be `vertical`
  --> ./tdesign-component/example/assets/code/radio._verticleRadios.txt:2:11
  |
2 |   Widget _verticleRadios(BuildContext context) {
  |           ^^^^^^^^
  |
error: `Bage` should be `Bag`
  --> ./tdesign-component/example/assets/code/bottomTabBar._weakSelectIconTabBar.txt:12:17
   |
12 |             showBage: true,
   |                 ^^^^
   |
error: `Bage` should be `Bag`
  --> ./tdesign-component/example/assets/code/bottomTabBar._weakSelectIconTextTabBar.txt:12:17
   |
12 |             showBage: true,
   |                 ^^^^
   |
error: `contet` should be `contest`, `content`, `context`
  --> ./tdesign-component/example/assets/code/checkbox._passThroughStyle.txt:10:23
   |
10 |         itemBuilder: (contet, index) {
   |                       ^^^^^^
   |
error: `verticle` should be `vertical`
  --> ./tdesign-component/example/assets/code/checkbox._verticleCheckbox.txt:11
error: `verticle` should be `vertical`
  --> ./tdesign-component/example/assets/code/checkbox._verticleCheckbox.txt:2:11
  |
2 |   Widget _verticleCheckbox(BuildContext context) {
  |           ^^^^^^^^
  |
error: `contet` should be `contest`, `content`, `context`
  --> ./tdesign-component/example/assets/code/checkbox._checkAllSelected.txt:12:23
   |
12 |         itemBuilder: (contet, index) {
   |                       ^^^^^^
   |
error: `Bage` should be `Bag`
  --> ./tdesign-component/example/assets/code/bottomTabBar._buildCustomTopStyle.txt:14:17
   |
14 |             showBage: true,
   |                 ^^^^
   |
error: `contet` should be `contest`, `content`, `context`
  --> ./tdesign-component/example/assets/code/radio._passThroughStyle.txt:10:23
   |
10 |         itemBuilder: (contet, index) {
   |                       ^^^^^^
   |
error: `Pannel` should be `Panel`
  --> ./tdesign-component/example/assets/code/bottomTabBar._expansionPannelTypeTabBar.txt:24
error: `Pannel` should be `Panel`
  --> ./tdesign-component/example/assets/code/bottomTabBar._expansionPannelTypeTabBar.txt:2:20
  |
2 |   Widget _expansionPannelTypeTabBar(BuildContext context) {
  |                    ^^^^^^
  |
error: `Bage` should be `Bag`
  --> ./tdesign-component/example/assets/code/bottomTabBar._weakSelectTextTabBar.txt:10:17
   |
10 |             showBage: true,
   |                 ^^^^
   |
error: `resouce` should be `resource`
  --> ./tdesign-component/example/lib/base/intl_resouce_delegate.dart:6
error: `Desgin` should be `Design`
  --> ./tdesign-component/example/lib/main.dart:89:73
   |
89 |         ..putIfAbsent('/', () => (context) => const MyHomePage(title: 'TDesgin Flutter 组件库'));
   |                                                                         ^^^^^^
   |
error: `contet` should be `contest`, `content`, `context`
  --> ./tdesign-component/example/lib/page/td_checkbox_page.dart:136:23
    |
136 |         itemBuilder: (contet, index) {
    |                       ^^^^^^
    |
error: `contet` should be `contest`, `content`, `context`
  --> ./tdesign-component/example/lib/page/td_checkbox_page.dart:274:23
    |
274 |         itemBuilder: (contet, index) {
    |                       ^^^^^^
    |
error: `verticle` should be `vertical`
  --> ./tdesign-component/example/lib/page/td_radio_page.dart:33:48
   |
33 |           ExampleItem(desc: '纵向单选框', builder: _verticleRadios),
   |                                                     ^^^^^^^^
   |
error: `verticle` should be `vertical`
  --> ./tdesign-component/example/lib/page/td_radio_page.dart:60:11
   |
60 |   Widget _verticleRadios(BuildContext context) {
   |           ^^^^^^^^
   |
error: `contet` should be `contest`, `content`, `context`
  --> ./tdesign-component/example/lib/page/td_radio_page.dart:202:23
    |
202 |         itemBuilder: (contet, index) {
    |                       ^^^^^^
    |
error: `Pannel` should be `Panel`
  --> ./tdesign-component/example/lib/page/td_bottom_tab_bar_page.dart:147:34
    |
147 |               builder: _expansionPannelTypeTabBar,
    |                                  ^^^^^^
    |
error: `Pannel` should be `Panel`
  --> ./tdesign-component/example/lib/page/td_bottom_tab_bar_page.dart:555:20
    |
555 |   Widget _expansionPannelTypeTabBar(BuildContext context) {
    |                    ^^^^^^
    |
error: `Bage` should be `Bag`
  --> ./tdesign-component/example/lib/page/td_bottom_tab_bar_page.dart:616:17
    |
616 |             showBage: true,
    |                 ^^^^
    |
error: `Bage` should be `Bag`
  --> ./tdesign-component/example/lib/page/td_bottom_tab_bar_page.dart:653:17
    |
653 |             showBage: true,
    |                 ^^^^
    |
error: `Bage` should be `Bag`
  --> ./tdesign-component/example/lib/page/td_bottom_tab_bar_page.dart:694:17
    |
694 |             showBage: true,
    |                 ^^^^
    |
error: `Bage` should be `Bag`
  --> ./tdesign-component/example/lib/page/td_bottom_tab_bar_page.dart:773:17
    |
773 |             showBage: true,
    |                 ^^^^
    |

@Luozf12345 Luozf12345 merged commit 50bbc00 into Tencent:develop Jul 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants