English 中文(简体)
Tell pydev将整个一揽子计划排除在分析之外?
原标题:Tell pydev to exclude an entire package from analysis?

今天,我的任务是从我的杰夫的贾戈项目中删除微小红X。 最重要的是,这涉及解决与牛羊的进口问题。

http://south.a.aeracode.org/“rel=“noretinger”>South用于数据库迁移。 南方(如果你不了解的话)会产生on模块,而牛奶牛也一样。 我不想 since开南方的法典,因为它产生了。

是否有办法指示发展中国家将某些一揽子计划排除在分析之外? 除整个模块外,如<代码>#@ Un DefinVariable? 我很想无视称为“移民”的一揽子计划。

最佳回答

在南方,我在以下模板中添加了“#@PydevCodeAnalysisIgnore”的内容:South/ management/datamigration.py-South/ management/schemamigration.py。 不要让我忽视整个一揽子计划,而是为我的目的服务。

问题回答

是的,在你想要忽视的每份文件一开始,你就可以把<条码>#@PydevCodeAnalysisIgnore摆在桌面上,但这意味着,你会重新与你所认为的最佳做法保持一致。 我更喜欢改变我的项目环境,以便:

  1. some troublesome patterns are ignored by Eclipse (by adding to Preferences -> PyDev -> Editor -> Code Analysis -> Undefined)
  2. some troublesome files are ignored by Eclipse (by adding an exclude filter to Project Properties -> Resource -> Resource Filters -> Add Filter...)

在你的特殊情况下,我有同样的问题,决定将南方移民排除在Eclipse项目之外。 在我需要编辑这些自动生成的档案的少数情况下,我没有使用Eclipse。

UPDATE: One other option is to right click on your project and select PyDev -> Remove error markers -- but don t do this if there are any errors that you don t want hidden!

我制定了许多法典。 为了避免PyDev的申诉,我把这些模块放在下面(现金文字):

for file in `find gen -name  *.py `; do
    mv $file $file.bak
    echo  #@PydevCodeAnalysisIgnore  > $file
    cat $file.bak >> $file
    rm $file.bak
done

尽管与这一问题没有直接联系,因为从分析中解脱个人移民档案,但PyDev在法典分析中建立起来,使我成为Windows上的真正主人,而同一项目和环境在MacOS没有问题。 由此,我要谈谈如何对某些资源进行可分的分析。 该项目中有许多部分,使用Eclipse->(夹)——> 房地产——> 资源-> Filter(排斥)甚至没有帮助。

由于除使用PyLint外,建筑时间必然会缓慢。 YMMV。





相关问题
Where can I find an actively developed lint tool for Ruby?

Most of the code I write is in Ruby, and every once in a while, I make some typo which only gets caught after a while. This is irritating when I have my scripts running long tasks, and return to find ...

SourceMonitor xml dump to database

Is there a library or a tool that could parse the xml dump of SourceMonitor and save it in database? SourceMonitor is a great tool, but I d like to have better visualization and statistics-over-time ...

Getting code statistics from big projects

I m interested in code statistics tools. Specifically I need to get statistics on Java EE code, but any code analyzer would do. Should I start creating one of my own or is there some project that you ...

热门标签