配置文件

profile    [ˈproʊfaɪl]  n.侧面; 外形,轮廓; 人物简介;  vt.描…的轮廓; 给…画侧面图;
inspection [ɪnˈspɛkʃən]  n.检验; 检查; 视察; 检阅; 
x
10
9

1
profile  [ˈproʊfaɪl]  n.侧面; 外形,轮廓; 人物简介;  vt.描…的轮廓; 给…画侧面图; 

2
inspection [ɪnˈspɛkʃən]  n.检验; 检查; 视察; 检阅; 

AS相关的配置文件基本都放在【\Users\Administrator\.AndroidStudio3.0\config】目录下
代码提示级别相关的配置文件放在【\config\inspection】目录下:
默认只有一个Default.xml配置文件,里面只配置了一个name:
<inspections profile_name="Default" version="1.0"><option name="myName" value="Default" />
</inspections>
1
<inspections profile_name="Default" version="1.0">

2
  <option name="myName" value="Default" />

3
</inspections>

我新建了一个profile,并更改了一些配置,文件内容变为:
<inspections profile_name="bqt" version="1.0"><option name="myName" value="bqt" /><inspection_tool class="AndroidLintAddJavascriptInterface" enabled="true" level="INFO" enabled_by_default="true" /><inspection_tool class="FieldCanBeLocal" enabled="true" level="INFO" enabled_by_default="true" />...
</inspections>
7
1
<inspections profile_name="bqt" version="1.0">

2
  <option name="myName" value="bqt" />

3
  <inspection_tool class="AndroidLintAddJavascriptInterface" enabled="true" level="INFO" enabled_by_default="true" />

4
  <inspection_tool class="FieldCanBeLocal" enabled="true" level="INFO" enabled_by_default="true" />

5
  ...

6
</inspections>

里面详细记录了你所有的修改点,所以,其实你只需保存这个配置文件即可。

一、修改 JAVA 设置

Declaration Redundancy 声明冗余

Declaration access can be weaker

Class structure

field can be local

二、修改 Android --> Lint 设置

Internationalization 国际化

Hardcoded硬编码 text 
Overlapping重叠items in RelativeLayout,比如下图的TV如果只有toRightOf没有toLeftOf,就可能出现控件重叠情况:
TextView Internationalization

Bidirectional Text 双向文字

Padding and margin symmetry 对称
Right-to-left text compatibility issues 从右到左文字兼容性问题
Using left/right instead of start/end attributes
Using RTL attributes without enabling RTL support 

Accessibility 无障碍

Image without contentDescription
Missing labelFor attribute

Security 安全

addJavascriptInterface Called
AllowBackup/FullBackupContent Problems 允许备份/完整的备份内容
The allowBackup attribute determines if an application's data can be backed up and restored. It is documented at http://developer.android.com/reference/android/R.attr.html#allowBackup
By default, this flag is set to true. When this flag is set to true, application data can be backed up and restored by the user using adb backup and adb restore.
1
The allowBackup attribute determines if an application's data can be backed up and restored. It is documented at http://developer.android.com/reference/android/R.attr.html#allowBackup 

2
By default, this flag is set to true. When this flag is set to true, application data can be backed up and restored by the user using adb backup and adb restore.

Usability 可用性

Missing support for Firebase App Indexing
Adds URLs to get your app into the Google index, to get installs and traffic to your app from Google Search. 
1
1
Adds URLs to get your app into the Google index, to get installs and traffic to your app from Google Search. 

Text size is too small

附件列表

代码提示级别设置 inspection相关推荐

  1. python没有代码提示怎么设置_Python Kite 使用教程 轻量级代码提示

    1: 概述 今天升级annacoda 插件 spyder (4.0.0 )的时候 提示安装kite ,这是什么玩意? 下载下来试一试? 原来:就是一个代码提示插件.. 说白了" 就是让开发者 ...

  2. eclipse linux 代码提示,Linux Eclipse代码提示功能设置(Java C/C++)

    最近在Linux下开发,由于长期使用Visual Studio 2010,对代码提示功能情有独钟,现在在Linux下,使用Eclipse做开发,当然免不了怀念Visual Studio强悍的代码提示, ...

  3. idea代码提示快捷键设置

    代码提示快捷键设置: keymap--Main Menu--Code--Completion--Basic 转载于:https://www.cnblogs.com/niwotaxuexiba/p/10 ...

  4. Eclipse 代码提示功能设置

    1.        解决实例化时自动补全不必要的单词问题 2.        以MyEclipse 6.5重新配图 鉴 于网上的批评之声甚大,我只想说明我的想法:这样的增强代码提示,最终是用来辅助我们 ...

  5. idea如何关闭代码提示,设置快捷键提示代码

    变秃第一天 目录 idea设置关闭代码提示 设置代码提示快捷键 idea设置关闭代码提示 idea:IntelliJ IDEA 2019.3.3 x64 file-->Settings---&g ...

  6. Eclipse代码提示功能设置及空格不输入提示代码设置

    文章目录 Eclipse代码自动提示 代码提示后Enter输入,空格和等号不能键入提示代码 Eclipse代码自动提示 打开Eclispe->Window->Preferences; Ja ...

  7. eclipse代码提示,高亮相同变量颜色设置

    eclipse代码提示 window→perferences→java→Editor→Content Assist→Auto Activation→Auto activation trigger fo ...

  8. html显示文件代码提示,代码提示和代码完成

    使用 Dreamweaver 的代码提示和代码完成功能,最大限度缩短编码时间. Dreamweaver 的智能代码完成或代码提示功能通过减少拼写和其他常见错误,使您可以快速插入和编辑代码. 您也可以使 ...

  9. 00.Sublime汉化、默认代码块、代码提示教程

    Sublime汉化.默认代码块.代码提示教程 文章目录 Sublime汉化.默认代码块.代码提示教程 设置中文教程 设置默认代码块教程 生成代码提示 设置中文教程 1.打开安装好的的sublime,选 ...

最新文章

  1. iOS开发使用Unwind Segue进行返回
  2. SET QUOTED_IDENTIFIER ON
  3. [IOI2008]Island
  4. Kubernetes 稳定性保障手册 -- 极简版
  5. vs2019中如何创建qt项目_VS2019创建新项目居然没有.NET Core3.0的模板?
  6. 新建了一个英文Blog
  7. HTML5实现文件断点续传
  8. LeetCode 15 二进制中1的个数
  9. Shodan新手入坑指南
  10. how to send blogs to wordpress through the windows live writer
  11. linux不解压情况下查看压缩包内文件的总行数、文件列表的数目
  12. SQL*Plus格式化查询结果
  13. JavaWeb开发框架——Spring
  14. 中标麒麟linux系统安装打印机_中标麒麟系统安装教程
  15. C++使用curl下载文件(post请求)
  16. 8卡gpu服务器是8个芯片,GPU服务器 4GPU 8GPU 运算卡
  17. iOS -显示隐藏文件
  18. Flutter图片裁剪
  19. 数据结构学习笔记-常用十大算法
  20. R7900P/R7960P/R8000P梅林固件

热门文章

  1. Atom 实用侧边栏插件
  2. springboot-静态资源配置原理
  3. 十分钟学习nginx
  4. 笔试训练第二次知识点汇总
  5. mybatis plug 只查id_mybatis-plugin的几种常用的方法
  6. 玩转用户标签体系,打造精细化运营底层能力 | 芒种训练营第一课
  7. 寻人 | 一个有趣的职业可能性,与你分享
  8. 好货日报邀请码54321软件的操作逻辑
  9. docker命令的组合使用
  10. 用vue.js写的一个瀑布流的组件