jjzjj

html - Opengraph 元标记 og :type set to "product" errors (like button & URL linter/debug)

我们最近注意到我们的facebooklike按钮停止工作。为了调查,我通过Facebook的调试器(旧URLLint)工具运行了URL,它给了我这个错误:ObjectTypeNotAllowed:ObjectatURL'https://savingstar.com/coupons/boursin-cheese/4edfd63fec0f2532eb000106'oftype'og_products:product'isinvalidbecauseitthespecifiedfb:app_id'111777372238952'isnottheownerofspecifiedog:type.

python - 在 VS Code 中将 Python linter 与 Docker 一起使用

当Python和所有软件包都安装在Docker容器中时,我正在尝试让Pythonlinters在VSCode中工作。我以前没有使用过linter。但据我了解linter如何工作(至少在VSCode中),我需要将VSCode指向Python解释器并在需要时设置包的路径。如果一切都安装在Docker容器中,这将成为一个问题。我正在尝试仅使用Docker功能。我想出的是以下内容:将安装Python目录绑定(bind)到某个本地文件夹从该文件夹中选择VSCode中的Python解释器如果需要,以类似的方式为已安装的包添加目录(但我还没有达到这个阶段)我尝试使用Docker文档中的Django示

python - 在 VS Code 中将 Python linter 与 Docker 一起使用

当Python和所有软件包都安装在Docker容器中时,我正在尝试让Pythonlinters在VSCode中工作。我以前没有使用过linter。但据我了解linter如何工作(至少在VSCode中),我需要将VSCode指向Python解释器并在需要时设置包的路径。如果一切都安装在Docker容器中,这将成为一个问题。我正在尝试仅使用Docker功能。我想出的是以下内容:将安装Python目录绑定(bind)到某个本地文件夹从该文件夹中选择VSCode中的Python解释器如果需要,以类似的方式为已安装的包添加目录(但我还没有达到这个阶段)我尝试使用Docker文档中的Django示

html - Facebook Linter 显示 og :type as webpage when it is defined as company

我有一个公司网页,我也添加了一个Facebook“赞”按钮。我已经为FB和OG定义了namespace,并添加到我所有的元标签中——我的代码如下。网址是www.akascia.com.但是,当我通过Facebooklinter运行网站时,我得到以下结果:应该修复的警告ExtraneousProperty:Objectsofthistypedonotallowpropertiesnamedfb:page_id.ExtraneousProperty:Objectsofthistypedonotallowpropertiesnamedog:email.ExtraneousProperty:O

javascript - VSCode Linter ES6 ES7 Babel linter

如何使用VisualStudiocode根据babel/ES7stage-0规则对JavaScript文件进行lint?我只需要lint代码。我已经有webpack转译Js文件了。 最佳答案 我如何进行:全局安装eslint:npminstall-geslint安装babel-eslint:npminstall--save-devbabel-eslint安装eslint-plugin-react:npminstall--save-deveslint-plugin-react在您的根目录中创建.eslintrc文件。这是我的配置:{"

javascript - 解决文档的 linter 错误 no-undef

我正在使用airbnb扩展来检查我的React项目。现在,在我的index.js中我有:importReactfrom'react';importReactDOMfrom'react-dom';importAppfrom'./App';ReactDOM.render(,document.getElementById('root'),);linter说:no-undef'document'isnotdefined.atline8col3我该如何解决这个问题? 最佳答案 有很多方法可以解决/绕过这个问题。两种关键方法是将document

来自 linter 的 goconst 警告

我正在使用Atom开发我的Go应用程序。Atom中的Linter报告了一个奇怪的警告,我不明白这是怎么回事。我应该永远忽略警告,还是有其他方法可以实现?错误:警告goconst3次“GET”出现在:routes_pages.go:384:8routes_pages.go:443:7routes_pages.go:536:7(goconst)198:8详细信息:我在文件“app.go”中有路由:a.Router.HandleFunc("/login",a.PageLogin)a.Router.HandleFunc("/register",a.PageRegister)a.Router.H

python - 错误消息 "Linter pylint is not installed"

我想在MicrosoftVisualStudioCode中运行Python代码,但报错:Linterpylintisnotinstalled我安装了:VisualStudioCodePython扩展Python3python如何安装Pylint? 最佳答案 通过在终端上输入whichpylint来检查Pylint的安装路径。你会得到类似的东西:/usr/local/bin/pylint复制它。转到preferences选项卡中的VisualStudioCode设置并找到相应的行"python.linting.pylintPath":

ruby - 如何在 visual studio code 中使用 ruby​​-linter?

我是ruby和visualstudiocode的新手。我已经安装了ruby和ruby-debug-ide,我已经可以在vscode中运行或调试ruby​​了。现在我想安装ruby-linterextension,但它不起作用。例如,当我编写Random.r时,它没有显示任何预期为rand的内容,任何人都可以帮助我,非常感谢。 最佳答案 我建议您安装rubyextension在VisualStudioCode上并按照文档中的说明进行设置,它在Windows和Linux上都能正常工作,前提是你安装了Ruby。可以使用ruby_debug